superdoc/docx-editor

SuperDoc - Build AI agents that work with DOCX (DOCX Editor, DOCX Agent SDK)

What it solves

SuperDoc provides a way to render and edit DOCX files directly in the browser without converting them to HTML. It solves the problem of maintaining document structure (like pagination, headers, and footers) during editing and ensures that changes are written back to the original XML format.

How it works

It uses an OOXML-backed document model that reads files progressively and renders bounded windows. This allows it to function without a browser DOM and synchronize content and package state through a single collaboration model. It provides a unified Document API available via browser, Node.js, Python, CLI, and an MCP server.

Who it’s for

It is designed for developers building browser-based document editors, as well as those creating AI agents that need to programmatically manipulate DOCX files using high-level operations rather than raw XML.

Highlights

  • DOCX-native editing: Edits are written directly to the XML, preserving pagination, sections, and tables.
  • Agent-ready: Provides a structured API for AI agents to perform document operations.
  • Collaborative: Supports suggestions, comments, track changes, and real-time collaboration via Yjs.
  • Multi-language support: Includes SDKs for Node.js and Python, a CLI, and an MCP server.

Related

  • Project
  • Dispatch
  • Project
  • Dispatch
  • Project