News for hackers. Stuff that matters.
Re:Peritext: A CRDT for Rich-Text Collaboration by gklitt on Tuesday November 23, 2021 @07:23PM (#29325470)
(Author here)

Yjs is an impressive project and probably the most production-ready text CRDT library out there today.

One of our goals was to write down a clear spec for how a rich text CRDT should behave separately from any particular algorithm, as a resource for people working on tools in this space.

In the process we also found some examples where we felt Yjs didn’t maximally preserve intent. One of them is documented in the paper in the section about control characters, and Peritext handles that case differently.

Also, as an implementation note, our prototype sends incremental changes to the Prosemirror editor, whereas I believe yjs sends changes that replace the entire document, which can break the behavior of other plugins [1].

[1]: https://discuss.prosemirror.net/t/offline-peer-to-peer-colla...

Re:Peritext: A CRDT for Rich-Text Collaboration by skavi on Tuesday November 23, 2021 @08:38PM (#29326043)
Do you feel you’ve been able to solve some of the issues [0] the Xi editor project had with collaborative editing via CRDT?

[0]: https://github.com/xi-editor/xi-editor/issues/1187#issuecomm...

Re:Peritext: A CRDT for Rich-Text Collaboration by bhl on Tuesday November 23, 2021 @11:28PM (#29326923)
Are there plans to make Peritext production-ready like Yjs, or is this more of a sketch for people to build their own collaborative rich text editor integrations?
Re:Peritext: A CRDT for Rich-Text Collaboration by gklitt on Wednesday November 24, 2021 @09:55AM (#29330543)
Eventually we plan to integrate this algorithm into the Text type of Automerge [1], which is a more production-ready CRDT.

[1]: https://github.com/automerge/automerge