2026

Rebodocs

A Word (.docx) editor for the browser, with an engine of its own.

Rebodocs
Client
Open source project (MIT)
My role
Sole creator
Year
2026
Status
Open source · v0.12

Context

Web document editors either can't open a real Word file properly, or depend on a third-party service that keeps your files. I needed to edit contracts inside my own systems (CRM, legal SaaS) and have the file come out exactly as in Word. Rebodocs is that editor: your application stores the files and decides who gets in.

Metrics

737
Automated tests
6
npm packages
45
MCP tools for AI

Technical decisions

Own engine, no contenteditable

Document model, line breaking, pagination, caret, selection and DOCX reader/writer written from scratch. No ProseMirror, no editing library; the engine's only dependency is `fflate`. Whatever the editor doesn't understand is kept untouched in the file.

Measured against Word, line by line

Pages are laid out by Word's rules, and a command compares every test document against the PDF Word produces. Every layout change is validated with numbers, not by eye.

One engine, any runtime

`@rebodocs/core` never touches the DOM: it runs in the browser, Node, Deno, Bun and Workers. The same layout produces the PDF on the server without a browser, and templates are filled from an API or the command line.

Stack

TypeScriptReactNode.jsWebSocketsMCPClaude APIVitestTauri

Next project

ReboFiles →

A file drive you build into your app, on your own storage.