1
0
Fork
You've already forked peercal-web
0
No description
  • JavaScript 99.4%
  • HTML 0.6%
2024年07月27日 16:16:27 +02:00
controllers let there be code 2024年07月27日 16:16:27 +02:00
lib let there be code 2024年07月27日 16:16:27 +02:00
tests let there be code 2024年07月27日 16:16:27 +02:00
views let there be code 2024年07月27日 16:16:27 +02:00
.gitignore let there be code 2024年07月27日 16:16:27 +02:00
.npmrc let there be code 2024年07月27日 16:16:27 +02:00
app.js let there be code 2024年07月27日 16:16:27 +02:00
config.default.json let there be code 2024年07月27日 16:16:27 +02:00
index-dev.html let there be code 2024年07月27日 16:16:27 +02:00
LICENSE let there be code 2024年07月27日 16:16:27 +02:00
package.json let there be code 2024年07月27日 16:16:27 +02:00
README.md let there be code 2024年07月27日 16:16:27 +02:00
scrot.png let there be code 2024年07月27日 16:16:27 +02:00

peercal-web

A p2p calendar for the browser.

Test

NOTE Very much a work in progress. You will not be able to do much yet but to flip between months.

Goals

  • Simplicity: Clean design with only a minimum of features
  • Decentralized event data via hyperdrive and hyper:// links
  • Support for iCalendar format (.ics files) - RFC5545

Usage

Get the code, install and run:

$ git clone https://github.com/peercal/peercal-web.git
$ cd peercal-web
$ npm install
$ npm start

Open the browser at http://localhost:7777.

Instances

Some examples of running instances:

Build

Running npm run build will result in a public/ folder with static content that you can serve with a web server of your choice.

Configuration

There's a default configuration in config.default.json that can be overridden by providing your own config.json. The following can be configured:

feeds

Array of hardcoded read only calendar feeds, which can't be deleted by the user. Useful to define for your own organization where you want your users to always have a particular set of feeds available.

Each item in the array can have the following properties:

  • url (string, required) A hyper:// address to the feed
  • background (string, optional) The background color of the feed
  • color (string, optional) The text color of the feed

swarmOpts

Configuration object passed to hyperswarm-web for bootstrapping websocket and webrtc connections. It has the following properties:

  • bootstrap (array of strings, required) List of hyperswarm-web servers

License

Licensed under GPL-3.0-or-later, see LICENSE file for details.