examples/collaborative-document/README.md
A shared text editor that uses Rivet Actors with Yjs for real-time CRDT sync and presence.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/collaborative-document
npm install
npm run dev
The coordinator creates document actors and tracks IDs, while each document actor stores Yjs state in KV storage and broadcasts updates.
src/actors.tsfrontend/App.tsxsrc/server.tsRead more about coordinator actors, events, actions, and KV storage.
MIT