hn • r/hackernews
Comment on: Lies I was told about collaborative editing, Part 2: Why we don't use Yjs
I remember reading Part 1 back in the day, and this is also an excellent article.I’ve spent 3+ years fighting the same problems while building DocNode and DocSync, two libraries that do exactly what you describe.DocSync is a client-server library that synchronizes documents of any type (Yjs, Loro, Automerge, DocNode) while guaranteeing that all clients apply operations in the same order.
It’s a lot more than 40 lines because it handles many things beyond what’s described here. For example:It’s local-first, which means you have to handle race conditions.Multi-tab synchronization works via Broad