examples/collaborative-document-vercel/README.md
Note: This is the Vercel-optimized version of the collaborative-document example. It uses the
hono/verceladapter and is configured for Vercel deployment.
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