DOCX Editor 1.x
WYSIWYG .docx editor and OOXML toolkit for the web. React and Vue adapters over a shared ProseMirror-based core. Apache 2.0.
Packages
| Package | What's in it |
|---|---|
@eigenpal/docx-editor-core | Document tree, OOXML parser/serializer, ProseMirror schema. Framework-agnostic. The React and Vue adapters depend on this. |
@eigenpal/docx-editor-react | <DocxEditor> plus hooks for history, find/replace, autosave, clipboard. Toolbar, dialogs, plugin host. |
@eigenpal/docx-editor-vue | Vue 3 adapter. Same <DocxEditor>, hooks become composables. Beta in 1.0. |
@eigenpal/docx-editor-agents | DocxReviewer (headless), live-editor bridge, AI SDK adapters, MCP server. 14 tools. |
@eigenpal/docx-editor-i18n | Locale data. Ships en, pl, de, pt-BR, he, tr, zh-CN. |
All five are Apache 2.0. The agents package was AGPL-3.0 in 0.x; see the migration guide if you tracked the license.
Which package do I need?
React app. Install -react. It pulls in -core and -i18n.
npm install @eigenpal/docx-editor-reactVue 3 app. Same shape, swap the adapter.
npm install @eigenpal/docx-editor-vueServer-side parsing or batch review. Use -core for the document tree and -agents for DocxReviewer.
npm install @eigenpal/docx-editor-core @eigenpal/docx-editor-agentsAdd an AI agent to an existing editor. Layer -agents on top of -react or -vue.
npm install @eigenpal/docx-editor-agentsExpose tools over MCP. Same install. The MCP server is the /mcp subpath of -agents.
Render an editor (React)
import { DocxEditor } from "@eigenpal/docx-editor-react";
import "@eigenpal/docx-editor-react/styles.css";
export default function App() {
return <DocxEditor documentBuffer={null} />;
}documentBuffer={null} mounts an empty document. Pass an ArrayBuffer to load a .docx. See Installation for Next.js, Vite, Remix, Astro, Vue specifics.
Where to next
- Installation, per-framework setup
- Migration: 0.x → 1.x
- API reference, every published subpath, generated from the d.ts
- Realtime collaboration: Yjs
- Plugins
- Examples, interactive demos