The document engine for DOCX files.
Renders, edits, and automates .docx files in the browser, headless on the server, and within AI agent workflows.
Self-hosted. Open source. Works with React, Vue, and vanilla JS.
## Quick start
```bash
npm install superdoc
```
### React
```bash
npm install @superdoc-dev/react
```
```tsx
import { SuperDocEditor } from '@superdoc-dev/react';
import '@superdoc-dev/react/style.css';
function App() {
return (
console.log('Ready!')}
/>
);
}
```
See the [@superdoc-dev/react README](packages/react/README.md) for full React documentation.
### Vanilla JavaScript
```javascript
import 'superdoc/style.css';
import { SuperDoc } from 'superdoc';
const superdoc = new SuperDoc({
selector: '#superdoc',
toolbar: '#superdoc-toolbar',
document: '/sample.docx',
documentMode: 'editing',
});
```
Or use the CDN:
```html
```
For all available options and events, see the [documentation](https://docs.superdoc.dev) or [SuperDoc.js](packages/superdoc/src/core/SuperDoc.js).
## Features
- **Real DOCX, not rich text** — Built on OOXML. Real pagination, section breaks, headers/footers. Not a contenteditable wrapper with export bolted on.
- **Self-hosted** — Runs entirely in the browser. Your documents never leave your servers.
- **Any framework** — React, Vue, Angular, Svelte, vanilla JS. One component, zero lock-in.
- **Real-time collaboration** — Yjs-based CRDT. Multiplayer editing with comments, tracked changes, and automatic conflict resolution.
- **Headless document engine** — Server-side SDK and CLI for programmatic DOCX workflows.
- **Dual licensed** — AGPLv3 for community use. [Commercial license](https://www.superdocportal.dev/get-in-touch) for proprietary deployments.
## Examples (this workspace)
React-focused starters and demos for local engine development:
| Example | |
|---------|--|
| [React](examples/getting-started/react) | [Next.js](examples/getting-started/nextjs) |
| [Headless toolbar (MUI)](examples/advanced/headless-toolbar/react-mui) | [Headless toolbar (shadcn)](examples/advanced/headless-toolbar/react-shadcn) |
| [Custom UI demo](demos/editor/custom-ui) | |
[Browse examples](examples/) · [Browse demos](demos/)
## Documentation
[docs.superdoc.dev](https://docs.superdoc.dev) — installation, integration guides, collaboration setup, API reference, and more.
## Roadmap
See the [SuperDoc roadmap](https://github.com/superdoc-dev/superdoc/issues/1982) for what's coming next. DOCX import/export fidelity is always a top priority.
## Contributing
Check the [issue tracker](https://github.com/superdoc-dev/superdoc/issues) for open issues, or read the [Contributing Guide](CONTRIBUTING.md) to get started. Bug reports with reproduction .docx files are especially valuable.
## Community
- [Discord](https://discord.com/invite/b9UuaZRyaB) — Chat with the team and other contributors
- [Email](mailto:q@superdoc.dev) — Reach the team directly