Example of yjs used to share an editable network graph with vis-network

vis-network is an npm module for creating, editing and visualising network graphs (i.e. networks of nodes and links). I have put together a simple example, y-vis-network, of how one can use vis-network in combination with yjs to allow such graphs to be edited collaboratively, with several users all editing the graph simultaneously. The example builds on an existing example bundled with vis-network and only required about 40 lines of code to be added.

The example can be found at https://github.com/micrology/y-vis-network.git

2 Likes

Awesome, thanks for sharing!