New

docx-editor 1.x has shipped. Vue support, i18n, agents. Read the migration guide →

Getting Started

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

PackageWhat's in it
@eigenpal/docx-editor-coreDocument 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-vueVue 3 adapter. Same <DocxEditor>, hooks become composables. Beta in 1.0.
@eigenpal/docx-editor-agentsDocxReviewer (headless), live-editor bridge, AI SDK adapters, MCP server. 14 tools.
@eigenpal/docx-editor-i18nLocale 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-react

Vue 3 app. Same shape, swap the adapter.

npm install @eigenpal/docx-editor-vue

Server-side parsing or batch review. Use -core for the document tree and -agents for DocxReviewer.

npm install @eigenpal/docx-editor-core @eigenpal/docx-editor-agents

Add an AI agent to an existing editor. Layer -agents on top of -react or -vue.

npm install @eigenpal/docx-editor-agents

Expose 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