Skip to content

Comment threads overlaid on the canvas

Comments need anchors, permissions, and notifications—often layered atop CRDT doc state. This demo shows overlay UI with Liveblocks; adapt auth to your tenant model.

Export comments alongside geometry for audit trails.

Interactive demo

Use liveblocks Yjs implementing comments overlay.

ts
import { createClient } from '@liveblocks/client';
import { getYjsProviderForRoom } from '@liveblocks/yjs';

const client = createClient({
    throttle: 16,
    publicApiKey: 'pk_dev...',
});
const { room, leave } = client.enterRoom('my-room-id', {
    initialPresence: { cursor: null },
});

const yProvider = getYjsProviderForRoom(room);
const yDoc = yProvider.getYDoc();

Released under the MIT License.