EngineeringApril 13, 2026·1 min read

Real-time Collaboration in docx-js-editor

docx-js-editor now supports real-time collaboration with Yjs.

@eigenpal/docx-js-editor@0.0.34 adds real-time collaboration via Yjs. Live cursors, presence, comment sync, and tracked-change attribution across browsers — works with y-webrtc, y-partykit, @liveblocks/yjs, @hocuspocus/provider, or any Yjs provider.

Try it → click Collaborate, share the URL.

Three new props

<DocxEditor
  document={createEmptyDocument()}
  externalContent
  externalPlugins={plugins}        // ySyncPlugin, yCursorPlugin, yUndoPlugin
  comments={comments}              // controlled, mirrored to a Y.Array
  onCommentsChange={setComments}
/>

externalContent hands the document off to Yjs. Tracked changes sync as part of the PM tree. Comments use the controlled API because their thread metadata lives outside the doc.

Where to go next