Enable multiple users to edit documents simultaneously with live cursor tracking, conflict‑free merging, and in‑line comments.
// Initialize collaboration
const doc = new KBDocument('project-plan');
doc.enableCollaboration({
token: USER_TOKEN,
onUpdate: (data) => renderChanges(data)
});