New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@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

A browser-based DOCX template editor with variable insertion support

Source
npmnpm
Version
0.3.1
Version published
Maintainers
1
Created
Source

DOCX JS Editor

npm version npm downloads license Live Demo Documentation

docx-editor

Open-source WYSIWYG DOCX editor for the browser. No server required. Live demo | Documentation

DOCX JS Editor screenshot

  • WYSIWYG editing with Word fidelity — formatting, tables, images, hyperlinks
  • Track changes (suggestion mode) with accept/reject
  • Comments with replies, resolve/reopen, scroll-to-highlight
  • Realtime collaboration with Yjs
  • Internationalization (i18n) - community-contributed translations welcome
  • Plugin system
  • Client-side only, zero server dependencies

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.

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

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 30 Apr 2026

Related posts