Back to docsRecipe

Doc collab editing

Real-time collaborative document editing inside Meridian — multiple cursors, presence awareness, and conflict-free merges powered by CRDTs.

Overview

Meridian's doc editor supports simultaneous editing by multiple users. Each participant sees remote cursors, selections, and changes as they happen. The underlying CRDT engine ensures that edits converge without locking or manual conflict resolution.

Step 1 — Create a shared doc

From the workspace sidebar, click New Doc and select Shared. Invite collaborators by email or copy the share link. Anyone with the link can join and edit in real time.

Step 2 — Understand presence

Colored cursors show who is typing and where. A presence panel in the top-right corner lists active collaborators. Hover over a cursor to see the user's name and last activity.

Step 3 — Resolve conflicts

Meridian uses Yjs CRDTs under the hood. Edits are merged automatically. If two users modify the same word simultaneously, the last-writer-wins strategy applies. No dialog boxes, no interruptions.

Step 4 — Offline edits

Changes made while offline are queued locally and synced when connectivity returns. A subtle indicator in the status bar shows sync state: green for live, yellow for pending, red for disconnected.

Pro tip

Use Cmd/Ctrl + Shift + P to open the command palette and toggle presence visibility without leaving the editor.