Sync engine - Liveblocks Yjs
Liveblocks Yjs is a realtime sync engine designed for building collaborative text editors such as Notion and Google Docs. Liveblocks permanently stores Yjs data in each room, handling scaling and maintenance for you.
If you’re using Tiptap, BlockNote, or Lexical, we recommend using our Text Editor plugins instead. These are alternatives to Yjs, with extra features specifically created for those editors. Yjs is intended for other editors, or for completely custom solutions.
Y.Doc
Y.Doc is the core data structure used by
Yjs. It is a JSON-like object that represents the state of a collaborative
document. It is used to store the content of the document, and to synchronize it
between clients. In Liveblocks, get the current room’s Y.Doc with
getYjsProviderForRoom.
Shared types in Yjs are CRDT-backed
data structures (like maps, arrays, and text) stored inside a Y.Doc that
automatically synchronize and merge changes across multiple clients without
conflicts.
Text and code editor integrations
Liveblocks Yjs integrates with popular text and code editors such as Slate, Monaco, and CodeMirror. Check our get started guides for more information on different editors.
Get started with text editor integrations