SuperDoc v2
A new DOCX engine under the same superdoc package. Documents open, render, edit, and save through their OOXML parts.

SuperDoc v1 edited a DOCX by converting it into a ProseMirror document, then converting it back to OOXML on export. Every Word feature had to fit the editor's schema first. Anything the schema could not represent had to be approximated on the way in and rebuilt on the way out.
SuperDoc v2 removes that conversion. The new DOCX engine parses the package's parts (content, styles, numbering, relationships, media, headers, footers) into editable document state. The layout engine paginates that state, the browser paints it, and save writes your edits back into the OOXML package. The DOM is an output, not the document format.
Same package, same entry point
You install superdoc, as before. The package always runs the v2 engine, with no runtime switch and no fallback to v1.
npm install superdocThe root integration is unchanged: the SuperDoc class, superdoc/style.css, the document input, and the
onReady lifecycle.
import { SuperDoc } from 'superdoc';
import 'superdoc/style.css';
const superdoc = new SuperDoc({
selector: '#editor',
document: '/contract.docx',
onReady: () => console.log('Ready'),
});If your v1 code only mounted the editor, waited for it to be ready, and exported, most of it keeps working. Code that
reached into ProseMirror state, plugin keys, or the legacy converter entry point has no v2 equivalent, because the model it
described is gone. Document reads and edits go through the Document API on superdoc.activeEditor.doc.
What changes when you upgrade
- The React wrapper moved.
@superdoc-dev/reactis the v1 wrapper. The v2 wrapper is@superdoc/react, first published on August 11. - Collaboration rooms are not compatible. A v2 editor cannot join a v1 room. Rooms need their own migration.
- The engine has its own license. The open-source editor stays under AGPLv3. The DOCX engine ships as
@superdoc/docx-engine, a compiled package under a proprietary license, andsuperdocinstalls it as a dependency.
Migrate with an agent
The migration guide walks through each change with the v1 and v2 code side by side, and includes a prompt you can give a coding agent to do the mechanical parts. Documentation for v1 stays available at docs-v1.superdoc.dev.