SuperDoc (online demo) is an open source document editor bringing Microsoft Word capabilities to the web with real-time collaboration, extensive formatting options, and easy integration. Self-hostable with Vanilla JS, React, Vue, and more (code examples).
- π Microsoft Word compatible: View and edit DOCX documents with great import/export, advanced formatting, comments, and tracked changes
- π οΈ Easy to integrate: Open source, can be self-hosted, seamlessly integrates with React, Vue, vanilla JavaScript, and more
- π₯ Real-time collaboration: Features multiplayer editing, live updates, commenting, sharing, and revision history
- π Extensible architecture: Modular design makes it easy to extend, brand, and customize
- β Dual licensed: Available under AGPLv3 for community use and Commercial license for enterprise deployments
npm install @harbour-enterprises/superdoc
Or install with CDN
<link rel="stylesheet" href="https://unpkg.com/@harbour-enterprises/superdoc/dist/style.css" />
<script type="module" src="https://unpkg.com/@harbour-enterprises/superdoc/dist/superdoc.umd.js"></script>
import '@harbour-enterprises/superdoc/style.css';
import { SuperDoc } from '@harbour-enterprises/superdoc';
// For CDN use - `SuperDocLibrary.SuperDoc`
const superdoc = new SuperDoc({
selector: '#superdoc',
toolbar: '#superdoc-toolbar',
document: '/sample.docx', // URL, File or document config
documentMode: 'editing',
pagination: true,
rulers: true,
onReady: (event) => {
console.log('SuperDoc is ready', event);
},
onEditorCreate: (event) => {
console.log('Editor is created', event);
},
});
For a list of all available properties and events, see the documentation or refer to SuperDoc.js
Visit our documentation site and code examples. Key topics include:
- Installation
- Integration guides
- Collaboration setup
- Advanced customization
- Best practices
We love contributions! Here's how you can help:
- Check our issue tracker for open issues
- Fork the repository and create a feature/bugfix branch
- Write clear, documented code following our style guidelines
- Submit a PR with detailed description of your changes
See our Contributing Guide for more details.
- Discord - Join our community chat
- GitHub Discussions - Ask questions and share ideas
- Team email - Get help from our team
- Open Source: GNU Affero General Public License v3.0
- Commercial: Enterprise License
- Marijn Haverbeke and the community behind ProseMirror - which we built on top of to make SuperDoc possible
- Tiptap and the many amazing editors of the web - from which we draw inspiration
- These wonderful projects that SuperDoc uses: Yjs, FontAwesome, JSZip, and Vite
Created and actively maintained by Harbour and the SuperDoc community