Note: current development is happening in the braid-work/toomim-braidjs repo.
These libraries upgrade your website to the braid protocol, which adds synchronization to HTTP.
This makes web programming much easier, and gives you the following magical features for free:
- Collaborative editing
- Offline-mode (and resilience to network disconnects)
- Peer-to-peer networking
- Delta-compressed network updates
- Shareable synchronized state across websites
We intentionally keep this readme short. Read more about braid at https://braid.news!
This version isn't released just yet! It has bugs.
The current release is at https://github.com/invisible-college/statebus. The
name is changing from statebus
to braidjs
with version 7.
Roadmap to release:
- Rename
fetch
&save
->get
&set
- Rename
statebus
->braidjs
- Change JSON encoding
- Remove recursion in
set
- Incorporate the Sync9 pruning peer-to-peer CRDT
- Disk persistence
- New API
- New network protocol
- New ES6 Proxy implementation
- Rename
key
->link
Read the instructions at https://braid.news/tutorial
sync9.js # The sync algorithm and data structures
braid.js # A nice API to read, write, control, and react to state changes
client.js # Support for web browsers
server.js # Support for nodejs servers
Be sure to run the tests in extras/tests.js. You can just run:
npm test
...at the command line.