RebodocsOpen source · MIT · v0.13.0

NewChinese text, and an interface in Chinese

The document editor you build into your app.

A word processor for the browser, compatible with Word files. Open, edit and save .docx with tracked changes, versions, collaboration, templates and PDF — in packages you take one at a time.

Get startedTry it below

The DOCX editor as a React component, or as headless hooks, with everything it needs inside.

By the numbers

Lines where Word puts them
97.9%
Across 23 documents measured against Word’s own PDFs
Automated tests
737
In 7 packages and demos, all passing
Tools for an assistant
45
Read, edit, review and save .docx through MCP
A PDF of 30 pages
77 ms
Made in Node, its fonts inside it
Live demo

This is the editor. Type in it.

Open your own .docx from the menu, type “/” for commands and “{{” for variables, fill the template from the side panel, track changes or restrict editing from Review, save a version and compare it, export to PDF. Nothing leaves the browser.

receipt.docx

Opening the document…

Same document, your own UI → see it built with headless hooks

Features

An editor you can trust with real documents.

  • Works with .docx files

    Reads and writes DOCX, its layout measured line by line against Word. What it does not understand, it keeps; tables and pictures copied in Word paste whole.

  • Templates

    Text in double braces is a variable — typing “{{” lists the ones you fill. Fill them from the editor, from code or from the command line.

  • Real-time collaboration

    Several people at once, visible cursors, undo that is yours alone; your backend says who edits and who only watches.

  • Fill-in forms

    Restrict a document to the areas meant to be filled; the rest is read-only, in Word too. Tab goes from one blank to the next.

  • Commands with “/”

    Type “/” for headings, lists, tables, pictures and signatures — plus your own commands, from text, HTML or code.

  • Tracked changes

    Insertions and deletions marked and signed by author until someone accepts or rejects them.

  • Versions

    Your app stores the versions; the editor shows the differences word by word.

  • Whole documents

    Sections, footnotes and endnotes, text boxes, tab stops, tables and vertical text.

  • Chinese and other languages

    Chinese lines break between characters, never before “。” or “,”, and justify between them; the interface speaks English, Spanish and Chinese.

  • Spell checking

    Words spelled wrong get a red wave and suggestions, from the Hunspell dictionaries you give, checked in a worker.

  • Fonts that travel

    TrueType or OpenType embedded in the PDF and, when they are TrueType and the license allows, in the DOCX.

  • PDF without a browser

    The same engine runs in Node and produces PDFs with selectable text, tagged for screen readers.

  • Phone and desktop

    Pinch to zoom, plus a Tauri app that opens and saves .docx on disk.

  • Accessible

    What happens is told to screen readers, everything works from the keyboard, and high contrast is kept.

  • Your style

    Use the built-in UI, or your own with unstyled hooks and Tailwind.

  • AI assistants

    Claude works on the real document through an MCP server, or a chat beside the editor.

For developers

It feels like part of your app — because it is.

It mounts in your page, uses your fonts and your language, and hands you the file when someone saves. Where documents live and who can open them stays your app’s business.

Read the guide
'use client';
import { DocsEditor } from '@rebodocs/react';

export default function Contract({ file }: { file: Uint8Array }) {
  return (
    <DocsEditor
      docx={file}
      name="contract.docx"
      locale="en"
      onSave={(docx) => upload(docx)}
    />
  );
}
Packages

Take what you need.

Six packages on npm. The engine has no DOM, so the same core renders PDFs in Node. See them on npm →

PackageWhat it doesRuns in
@rebodocs/core
v0.13.0
The engine: document model, DOCX import and export, page layout, PDF and templates.No DOM
@rebodocs/editor
v0.13.0
A DOCX editor for the browser: pages, caret and selection, toolbar, menu, side panel and status bar.No framework
@rebodocs/react
v0.13.0
The DOCX editor as a React component, or as headless hooks, with everything it needs inside.React
@rebodocs/viewer
v0.13.0
A DOCX document only to read: its pages read only, a bar to zoom and print, and its first page as a thumbnail.Read only
@rebodocs/collab
v0.13.0
Real-time collaboration: the change format, the room server and its browser client.Realtime
@rebodocs/mcp
v0.13.0
Tools for an AI assistant to read and edit DOCX: an MCP server for Claude Desktop and other clients, and Claude in a chat beside the editor.MCP
Where it stands

737

automated tests passing

measured against Word, line by line

Tested, measured, and published on npm.

Its own word processor, with its own engine, that opens and saves .docx files. In the 23 documents measured against Word, 97.9% of the lines fall where Word puts them, and the work goes on to reach all of them. Open source under MIT.

Get startedWhat’s checked, what’s missing →