News for hackers. Stuff that matters.
Re:Creating a Collaborative Editor by cyborgx7 on Friday June 14, 2019 @04:46AM (#20181420)
My Bachelor Thesis was implementing an operational transformation algorithm for tree structures (JSON objects) and evaluate it. Always thought about going back to it and build it into a usable application.
Re:Creating a Collaborative Editor by kba on Friday June 14, 2019 @10:02AM (#20183058)
You may find ShareDB[1] interesting – it's a library that does exactly that.

>ShareDB is a realtime database backend based on Operational Transformation (OT) of JSON documents. It is the realtime backend for the DerbyJS web application framework.

And now a selfplug:

We're using ShareDB to create collaborative DOM in Webstrates[2]. The tl;dr is that every DOM change you make gets synchronized to all other connected clients and the document (including full version history of every single DOM change) gets saved.

Creating a collaborative editor in Webstrates is a simple as creating a new webstrate[3], opening Devtools and adding `contenteditable` to the body element.

[1] https://github.com/share/sharedb, [2] https://github.com/Webstrates/Webstrates, [3] https://demo.webstrates.net/frontpage/

Re:Creating a Collaborative Editor by AnthonBerg on Friday June 14, 2019 @07:41AM (#20182139)
I think you would find willing collaborators! <3

Cool thesis. Pretty significant job :)

Re:Creating a Collaborative Editor by cyborgx7 on Friday June 14, 2019 @09:13AM (#20182656)
The algorithm already existed I just implemented it in js with a node server.
Re:Creating a Collaborative Editor by AnthonBerg on Friday June 14, 2019 @11:03AM (#20183561)
Still! :)