|
|
|
|
|
by 6gvONxR4sf7o
695 days ago
|
|
The big yjs problem for me is the documentation. A few of the most important sections are just “todo” placeholders, like the “how to write a provider” section. It’s great at first, but woefully underdocumented if you want to use it in a way that doesn’t have off the shelf support, and the code is tough to parse (for me at least). Same with subdocuments. I wanted to use it with Lexical a while back, and yjs plugin was too tightly coupled too a single data model and was too complicated to DIY. |
|
The best way to manage is starting with a raw empty doc, defind all the keys, then update that with a custom blob.
Once you have this doc on your clients, its just a matter of applying the latest updates.
But yeah, Yjs has an eccentric code structure which is impossible to parse without understanding the ops rrquired.
Id look at indexeddb and webrtc plugins