Plain-text notes several people edit at once. Each note is one Durable Object, which orders every edit and passes it on to the other editors over WebSockets.
How it works
- Conflict strategy: how two people typing at once end up with the same text.
- The note room: the Durable Object behind a note, its storage, and hibernation.
- Wire protocol: the messages on the socket.
Decisions
- 0001 One sequencer per note: the room is the only place edits are ordered.
- 0002 Drop inserts inside a concurrent delete: the one rule that keeps the transform small.
Guides
- Running it locally: run it on your machine, open two tabs, and watch the edits cross.