Skip to main content

Documentation Index

Fetch the complete documentation index at: https://superdoc-caio-sd-2929-configurable-toolbar.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

By the end of this page you’ll have a working DOCX editor in your app: load a Word file, edit it, export it back as .docx.
Using an AI coding agent? Run npx @superdoc-dev/create in your project. It writes an AGENTS.md with SuperDoc-specific instructions and MCP setup. Then see Use SuperDoc with AI for the full path picker.

1. Install

npm install superdoc

2. Render the editor

<div id="editor" style="height: 100vh"></div>

<script type="module">
  import { SuperDoc } from 'superdoc';
  import 'superdoc/style.css';

  const superdoc = new SuperDoc({
    selector: '#editor',
  });
</script>
That’s a blank editor. Give it a document.

3. Load a document

Pass a URL, a File from an input, or a Blob from your API to document.
new SuperDoc({
  selector: '#editor',
  document: '/files/contract.docx',
});
Tracked changes, tables, images, headers/footers: all working.

4. Export it

Default superdoc.export() triggers a browser download. To upload to your backend instead, ask for the raw Blob:
await superdoc.export();
For HTML, JSON, or Markdown output, see Import and export.

What are you building?

You want to…Start here
Embed Word editing in a web appThis page (already done)
Build a custom toolbar/sidebarCustom UI
Use SuperDoc’s built-in toolbar/commentsBuilt-in UI
Edit DOCX from backend codeDocument Engine SDK or CLI
Let Claude/Cursor edit DOCX filesAI > MCP
Add real-time collaborative editingCollaboration

What’s next

Custom UI

Build your own React toolbar, comments sidebar, and review panel

Document Engine

Programmatic DOCX editing from Node, Python, CLI, or AI agents

Framework guides

React, Vue, Nuxt, Angular, Laravel, Vanilla JS

Examples

Working demos on GitHub