Host and scale your Yjs application in minutes

Liveblocks is the world’s most advanced platform for Yjs. Build, host, and scale your Yjs application with zero configuration, no maintenance required.

Companies of all sizes and industries use Liveblocks

Liveblocks Yjs -
Supercharged Yjs developer experience

Liveblocks Yjs is a realtime sync engine designed for collaborative text editors such as Notion and Google Docs.

import { createClient } from "@liveblocks/client";import LiveblocksProvider from "@liveblocks/yjs";import * as Y from "yjs";
const client = createClient({ publicApiKey: "pk_prod_xxxxxxxxxxxxxxxxxxxxxxxx",});
const room = client.enter("your-room-id", { initialPresence: {} });const doc = new Y.Doc();
const provider = new LiveblocksProvider(room, doc);
function TiptapEditor({ doc, provider }: EditorProps) { const editor = useEditor({ extensions: [ StarterKit.configure({ // The Collaboration extension comes with its own history handling history: false, }), // Register the document with Tiptap Collaboration.configure({ document: doc, }), CollaborationCursor.configure({ provider: provider, }), ], }) return <EditorContent editor={editor} />}

Add collaboration to your product today

We use cookies to collect data to improve your experience on our site. Read our Privacy Policy to learn more.