Apache-2.0 · Embeddable · Local-first

The open-source document engine for your product.

Word-grade editing, PDF import and AI agents in one Apache-2.0 engine that runs in the browser with no server. The ONLYOFFICE alternative you can embed, brand and ship without a licence gate.

  • Apache-2.0, no licence gate
  • No server needed to open or edit
  • Ready for AI agents over MCP
editor.html?demo=1 Open full screen

Opens and saves

  • DOCX
  • ODT
  • RTF
  • PDF
  • TXT
  • HTML
  • Markdown

RTF opens; PDF opens as an editable document; HTML and Markdown are export formats.

Why teams switch

Everything an office editor does. None of the lock-in.

vs ONLYOFFICE Docs

Apache-2.0, not AGPL

Embed it in a closed product, rebrand it and change any part of the interface. No document server to run, and no licence to unlock customisation.

vs Google Docs and Microsoft 365

Your documents stay yours

Opens, edits and saves on the device. No account, no upload, works offline, and collaboration only when your host connects a relay.

vs paid document SDKs

Layout and loss reports, open source

Its own pagination engine, real-text PDF and page images, and a report of anything a round trip could not keep. Without a per-seat licence.

What the engine draws today

fullpartialEvery grade
  • Paragraphs & text
  • Headers & footers
  • Tables
  • Lists & numbering
  • Tracked changes
  • Comments
  • Footnotes & endnotes
  • Sections, columns & page setup
  • Math (OMML)
  • Charts
  • Bookmarks & hyperlinks
  • Fonts, fallback & color glyphs
  • Bidi, RTL & CJK grid
  • Drop caps
Why OpenDoc

A document runtime, not a web-editor wrapper.

The document itself is the source of truth. The canvas is a rendering surface; UI, storage, authentication, and network policy stay yours.

Own the document model

DOCX parses into a typed, editable model instead of being flattened into browser markup.

  • Semantic import and export
  • Byte-identical save of unedited packages
  • Unsupported data retained or reported

Deterministic layout

One Rust pipeline shapes, paginates, hit-tests, and renders across every host.

  • Engine-owned caret and selection geometry
  • Tables, sections, columns, floats, math
  • Backend-neutral display list

Bring your own product

Every edit routes through a closed command set with undo. Everything around it is yours.

  • No mandatory UI framework
  • No required cloud service
  • Browser, native, and headless targets
Today

What it does today.

Shipped and in the editor now, from PDF import to agent tools.

PDF in, editable out

Open a PDF and get a real document back: paragraphs, headings, lists and tables rebuilt from the page, the way Google Docs opens one.

  • Flowing document by default, exact page layout on request
  • Opt-in text recognition for scanned pages
  • Edits saved back into the original PDF when the layout allows

Built for agents

One capability registry gives every editing command an agent twin, so AI tools reach the same features a person does.

  • An MCP server for Claude, Cursor and any MCP client
  • WebMCP tools inside the browser editor, opt-in
  • AI edits arrive as tracked changes a person accepts

Review and protection

Track, compare and protect a document the way Word does.

  • Simple markup, All markup, No markup and Original views
  • Protect document, with Word-compatible passwords
  • Comments, replies and tracked changes with a review gate

Tables and references

Tables and references with the controls a long document needs.

  • Banded styles, text to table and back, split, nested tables, cell text direction
  • Tables of contents with styles and leaders, and tables of figures
  • Footnote and endnote settings, and conversion between them

Writing

The small things that make typing feel right.

  • AutoCorrect: capitals, replacements, dashes, links, non-breaking spaces
  • Language per selection, with spell check in each language
  • Word count, page borders, breaks, Page X of Y in headers and footers

Pictures, shapes and charts

Objects you can place, style and arrange.

  • Charts from a type picker, in line or floating
  • Picture crop, fit and reset, and Save as picture
  • Align and distribute, shape outlines, gradients and arrows
Collaboration

Write together, on the same transactions.

Co-editing is operational transformation over the engine's own transactions, so a remote edit runs through the same commands, checks and undo as a local one. The relay is optional and yours to host; one person editing alone needs none of it.

  • Remote carets and selections, drawn from engine geometry
  • Share links through your host, as invitations rather than grants
  • A refused edit never silently replaces your work: recovery keeps a copy
  • Convergence fuzzed with three real clients through the production relay

Experimental Host authentication and storage are integration work, and labels name participants by number.

Architecture

One engine. Clear boundaries.

Document semantics live inside OpenDoc. Product policy lives inside your host. That line is the whole design, so it is drawn rather than described.

Read the architecture
Embeddable

Drop it into your product. Keep the product.

A framework-free custom element, with roles and a capability contract resolved before the frame's first navigation, so an embed cannot be talked out of the mode it was given. Brand colours and chrome regions are yours to set.

SDK

Documents in code, with the API you already know.

Create, read, edit, template, convert and render documents from JavaScript, Python, Java, Rust or the command line. Each language gets the names of the library it replaces (docx-js, docxtemplater, mammoth, python-docx, Apache POI), and one engine underneath lays the pages out, writes real-text PDF and reports what a save would lose.

Evidence, not promises

Fidelity you can check.

What is supported, how it was measured, and where the gaps still are — including the ones we have not closed.

Page-count parity Measured 2026-07-27
4 / 5

corpus documents matching LibreOffice's page count exactly; worst delta +2. A manual measurement, not yet a CI gate.

Construct familyRenderedEditable
Paragraphs & textFullFull
TablesPartialFull
Tracked changesPartialPartial
Vertical & rotated textPartialPartial
All 28 construct families
Design principle Loss-aware
“Preserved or reported — never silently dropped.”

Content the engine does not understand is carried through untouched or named in a compatibility report. Of 28 graded families, 21 round-trip in full.

How they render today
  • 8 fully
  • 17 partially
  • 1 kept, not drawn
  • 2 not yet
Developer first

Clone it. Run it. Inspect the engine.

No account, no hosted backend. Every pull request runs the same gates you can run locally.

Putting the editor in your own page has its own guide: Embed the editor.

  1. Clone the repositoryApache-2.0 and source-first.
  2. Run the quality gatesBuild, test, lint, docs, and WebAssembly.
  3. Open a real DOCXIn the browser editor, or embed the runtime.
quickstart
$ git clone https://github.com/CasualOffice/opendoc.git
$ cd opendoc
$ cargo test --workspace --all-features --locked

# run the browser editor locally
$ ./webapp/build.sh
$ ./webapp/serve.py
Delivery

Where it is, and where it is going.

Shipped, active, and planned are kept separate, so a pre-release reads as a status rather than a promise.

Shipped

Loss-aware DOCX

Semantic import and export, and byte-identical save of unedited packages.

Shipped

Deterministic layout

Paragraphs, tables, sections and columns, floats with text wrap, and math.

Shipped

PDF import and agents

PDF opens as an editable document, and an MCP server gives agents the editor's own commands.

In progress

AI assistant and plugins

Bring your own model over open standards, and sandboxed plugins anyone can build.

In progress

SDKs for JavaScript, Python and Java

Read, write, convert and render documents headless, with APIs that feel familiar.

In progress

Editing to Word parity

Comments, tracked changes, and every editing surface held to the Word and Docs standard.

Experimental

Real-time collaboration

Shipped behind an optional relay: presence, Share links, safe recovery, host-attested participants and a shared version history. Relay TLS, authentication and a published relay image are still to come.

Not yet: hyphenation · floating tables. Full roadmap

Open a document. Inspect the engine.

No account required for the demo. No opaque hosted backend.