Blog post preview
December 4, 2026

Real-time collaboration diagram editor built with JointJS+ and Liveblocks

In collaborative workspaces, people expect to work in the same document at the same time. Claude Cowork, Google Docs, and Figma are perfect examples, where users can watch each other's cursors, inputs, and changes as they happen. Our newest demo showcases how to bring this live collaborative workflow to diagrams.

Playbook is a live board where a team can map their processes together. It's built with JointJS+ for React and Liveblocks, and the essential part that syncs changes between them is only a few lines of code.

Check the JointJS Liveblocks integration docs page to see a live demo side-by-side, or open the real-time collaboration demo with JointJS and Liveblocks, then paste its address into a second tab to see both sides in action.

About the JointJS Playbook demo

Playbook is a simple process designer where you join a board, pick your department, and build a flow from triggers, steps, approvals, and notes cards. The sample board follows an inbound lead from a website form through enrichment and qualification to a booked call.

The editing is fluid and intuitive, precisely as you’d expect from a JointJS diagram. You can drag a card from the palette, connect it port to port, rename it in place, move it around, and even resize it. 

At the same time, the live collaborative experience allows you to see other people working on the board in real time:

  • Live cursors show each person's department, name, and current activity.
  • Card frames put a colored outline and name tag on the card someone is editing.
  • Shared drafts show connections as they’re created, and cards other users are dragging onto the canvas from the palette.
  • An activity feed logs every card and connection, next to the list of people who are online.

All of this ensures that the collaborative experience is seamless, and users don’t have to coordinate manually about who’s doing what, as it’s all perfectly clear and evident on the board itself.

How this demo keeps the diagram in sync with Liveblocks

The most challenging part of collaborative apps is usually the sync between backend and the UI. If the diagram library keeps its own copy of the model, you’re forced to maintain two sources of truth and the integration code between them.

That’s why Playbook has only one source of truth. The Liveblocks room is the document, and all edits flow from storage to board. To illustrate it, here’s the simplified source:

const cells = toCells(cards, flows, peerDrafts, myDraft);

<Diagram cells={cells} onIncrementalCellsChange={saveCellChanges}>
    <Paper renderElement={PlaybookCard} />
</Diagram>

JointJS reports only the cells that the user changes, and Liveblocks syncs them to the canvas. Cards are stored field by field, so two people editing different parts of one card don’t have to worry about losing their work.

While a card is dragged, its position is saved on every pointer move, so everyone on the team can watch the card move fluidly instead of seeing it jump abruptly. Live cursor positions and user tags are always live and current.

The intuitive part is that the diagram always shows exactly what's in the list of cells that are passed to the diagram and nothing more. If a user draws a connection that already exists, it won’t be saved, and as it’s no longer in the list, it will disappear from the canvas automatically, and you don’t have to manually write code to delete it.

Everything else is built in JointJS+ for React. The cards are regular React components, and the drag-and-drop palette, resize handles, pan and zoom, and keyboard handling come directly from the library, so it’s all smooth, user-friendly, performant, and accessible. 

Also note that you’re not tied to Liveblocks. You can configure the diagram to pull data from whichever store you want to use.

Use Playbook in your projects, from workflow builders to shared whiteboards

Playbook demo is focused on the business processes, but you can reuse this pattern for any use cases where you want multiple people to edit one model, from workflow builders, customer journey maps, shared whiteboards for operations, sales and support teams, and more. 

If your product has a diagram in it, your users will ask to work on it together, collaboratively, live, so now you know that there’s a simple way to handle this using JointJS.

Happy diagramming!

Authors
Blog post author
Zoran Jambor
Developer Advocate at JointJS. Founder of CSS Weekly. Interested in developer tooling and workflows.
No items found.
Stay in the loop

Speed up your development with a powerful library