Minimal browser collaboration example for Coaction and @coaction/yjs.
It demonstrates:
- Binding two Coaction stores to separate
Y.Docinstances - Relaying Yjs updates between peers like a provider would
- Keeping local Coaction actions and remote Yjs updates in sync
- Disconnecting and reconnecting peers to see CRDT state merge
pnpm install
pnpm devFrom the repository root, you can validate it as a standalone example with:
pnpm --dir examples/yjs-collaboration --ignore-workspace install
pnpm --dir examples/yjs-collaboration --ignore-workspace build