🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

@eigenpal/docx-js-editor

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eigenpal/docx-js-editor

DEPRECATED: renamed to @eigenpal/docx-editor-react. A browser-based DOCX editor. Migration guide: https://www.docx-editor.dev/docs/latest/migration

latest
Source
npmnpm
Version
0.5.3
Version published
Weekly downloads
18K
20.95%
Maintainers
1
Weekly downloads
 
Created
Source

⚠️ @eigenpal/docx-js-editor is deprecated. It has been renamed to @eigenpal/docx-editor-react, with breaking API changes (component renames, a removed prop, new i18n imports), so it is not a drop-in find/replace. This 0.x line receives critical fixes only.

Install the new package: npm install @eigenpal/docx-editor-react, then follow the migration guide before upgrading.

DOCX Editor — .docx in, .docx out. Open source, agent ready, client-side.

npm version npm downloads license Demo Documentation

Open-source WYSIWYG .docx editor for React with canonical OOXML, tracked changes, and real-time collaboration. Agent-ready. Live demo | Documentation

Quick Start

npm install @eigenpal/docx-js-editor
import { useRef } from 'react';
import { DocxEditor, type DocxEditorRef } from '@eigenpal/docx-js-editor';
import '@eigenpal/docx-js-editor/styles.css';

function Editor({ file }: { file: ArrayBuffer }) {
  const editorRef = useRef<DocxEditorRef>(null);
  return <DocxEditor ref={editorRef} documentBuffer={file} mode="editing" onChange={() => {}} />;
}

Next.js / SSR: Use dynamic import — the editor requires the DOM.

DOCX JS Editor screenshot

Packages

PackageDescription
@eigenpal/docx-js-editorReact UI — toolbar, paged editor, plugins. Install this.
@eigenpal/docx-editor-vueVue.js scaffold — contributions welcome

Plugins

import { DocxEditor, PluginHost, templatePlugin } from '@eigenpal/docx-js-editor';

<PluginHost plugins={[templatePlugin]}>
  <DocxEditor documentBuffer={file} />
</PluginHost>;

See the plugin documentation for the full plugin API.

Development

bun install
bun run dev        # localhost:5173
bun run build
bun run typecheck

A live preview of main is auto-deployed at latest.docx-editor.dev — useful for trying out changes before they ship to npm.

Examples: Vite | Next.js | Remix | Astro | Vue

Documentation | Props & Ref Methods | Plugins | Architecture

Contributing

Contributions welcome. See CONTRIBUTING.md for setup, tests, and the one-time CLA signature.

Translations

LocaleLanguageCoverage
enEnglish100%
deGerman100%
plPolish100%
pt-BRPortuguese (Brazil)100%

Help translate the editor into your language! See the full i18n contribution guide.

bun run i18n:new de      # scaffold German locale
bun run i18n:status      # check translation coverage

Commercial Support

[!TIP] Questions or custom features? Email docx-editor@eigenpal.com.

Keywords

docx

FAQs

Package last updated on 31 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts