# BetterOffice

The open-source office suite. High-fidelity editing and real-time collaboration for people and agents, on Rust engines that run anywhere.

- [Demos](https://demo.betteroffice.dev)
- [Documentation](https://docs.betteroffice.dev)
- [GitHub](https://github.com/openooxml/betteroffice)
- [Blog](https://betteroffice.dev/blog.md)
- [Full index for agents](https://betteroffice.dev/llms.txt)

Used by: [OpenCode](https://opencode.ai), [T3 Code](https://t3.codes), [atira](https://atira.ai), [Ketryx](https://www.ketryx.com) and others.

## One suite, four editors

Every editor edits the file itself, with no conversion on open or save.

- **Documents** (`.docx`, available) — Redline a contract with your team while an agent proposes the next clause. [Demo](https://demo.betteroffice.dev/docx)
- **Spreadsheets** (`.xlsx`, available) — Build a quarterly budget and watch every dependent formula update as you edit. [Demo](https://demo.betteroffice.dev/xlsx)
- **Slides** (`.pptx`, available) — Rework a pitch deck in the browser and hand it back as a real .pptx. [Demo](https://demo.betteroffice.dev/pptx)
- **Diagrams** (`.vsdx`, from source) — Update a process map's shape data and drop it into a Word or PowerPoint report.

## Features

Every BetterOffice editor runs on Rust engines, from opening and editing files to layout and rendering. The same engines run in your browser, on your servers and inside agent workflows.

- **Documents, spreadsheets, and slides.** Open, edit, render, and save DOCX, XLSX and PPTX files with high fidelity. Native OOXML editing preserves untouched file parts losslessly when round-tripping.
- **Agent editing with human review.** Review attributed agent edits through tracked changes, inline diffs, and before-and-after previews. Accept or reject changes directly in the editor.
- **Real-time collaboration.** People and agents edit the same file together, with live cursors and selections. Concurrent changes merge automatically, and offline edits sync when peers reconnect.
- **Undo and redo.** Navigate editing history and undo accepted agent proposals as a single step.
- **Embed or automate.** Drop React editors into your app, build on the framework-free JavaScript cores, or use Rust and Python APIs for headless processing and agent workflows.
- **Open source and self-hostable.** Apache-2.0 licensed, with control over your document storage, deployment, and collaboration infrastructure.

[All features](https://docs.betteroffice.dev/docs)

## Benchmarks

Generated by the [Benchmarks action](https://github.com/openooxml/betteroffice/actions/workflows/visual-fidelity.yml); per-document results are on the [benchmarks site](https://benchmarks.betteroffice.dev). For how scores, timings and coverage are measured, see the [benchmark methodology](https://github.com/openooxml/betteroffice/blob/main/scripts/office-quality/README.md).

### Documents (.docx)

- **Visual similarity**, SSIM against Word, 0 to 1 (higher is better): BetterOffice 0.8519, LibreOffice 0.7694
- **Exact page counts**, documents with Word's page count (higher is better): BetterOffice 63/63, LibreOffice 44/63

- **Render time**, average per document (lower is better): BetterOffice 430 ms, LibreOffice 773 ms

All results:

| | BetterOffice ([3a49caad](https://github.com/openooxml/betteroffice/commit/3a49caad7db3114258669913e6eda9a066c50dd8)) | LibreOffice (26.2.3.2) |
| --- | ---: | ---: |
| Exact page counts | 63/63 | 44/63 |
| Absolute page error | 0 | 57 |
| SSIM | 0.8519 | 0.7694 |
| Scored/total | 63/63 | 63/63 |
| Render time (avg) | 430 ms | 773 ms |
| Parse success | 100.00% | 100.00% |

### Spreadsheets (.xlsx)

- **Visual similarity**, SSIM against Excel, 0 to 1 (higher is better): BetterOffice 0.7661, LibreOffice 0.6892
- **Formula accuracy**, results matching Excel after recalculation (higher is better): BetterOffice 99.60%, LibreOffice 85.87%

- **Recalculation time**, average per workbook (lower is better): BetterOffice 64 ms, LibreOffice 405 ms

All results:

| | BetterOffice ([3a49caad](https://github.com/openooxml/betteroffice/commit/3a49caad7db3114258669913e6eda9a066c50dd8)) | LibreOffice (26.2.3.2) |
| --- | ---: | ---: |
| SSIM | 0.7661 | 0.6892 |
| Scored/total | 207/208 | 195/208 |
| Recalc accuracy | 99.60% | 85.87% |
| Recalc time (avg) | 64 ms | 405 ms |
| Parse success | 100.00% | 100.00% |

### Slides (.pptx)

- **Visual similarity**, SSIM against PowerPoint, 0 to 1 (higher is better): BetterOffice 0.9170, LibreOffice 0.9030

- **Render time**, average per presentation (lower is better): BetterOffice 159 ms, LibreOffice 1351 ms

All results:

| | BetterOffice ([3a49caad](https://github.com/openooxml/betteroffice/commit/3a49caad7db3114258669913e6eda9a066c50dd8)) | LibreOffice (26.2.3.2) |
| --- | ---: | ---: |
| SSIM | 0.9170 | 0.9030 |
| Scored/total | 103/103 | 103/103 |
| Render time (avg) | 159 ms | 1351 ms |
| Parse success | 100.00% | 100.00% |

BetterOffice [3a49caad](https://github.com/openooxml/betteroffice/commit/3a49caad7db3114258669913e6eda9a066c50dd8), LibreOffice 26.2.3.2

[Per-document results](https://benchmarks.betteroffice.dev)

### Agent edits

Same model, 288 graded runs, two toolsets. An edit counts only if the requested change is there and nothing else in the file moved.

- **Documents** (.docx): BetterOffice MCP 76/96, Generic file tools 43/96
- **Spreadsheets** (.xlsx): BetterOffice MCP 94/96, Generic file tools 49/96
- **Slides** (.pptx): BetterOffice MCP 92/96, Generic file tools 84/96

[Method, tasks and fixtures](https://github.com/openooxml/betteroffice#evals)

## People and agents, one document

The document itself is a CRDT: every editor — every person, every AI agent — is a peer on the same data structure, and concurrent edits merge in the engine. Agents don't get a sidebar; they get a cursor, with the same undo and the same tracked-changes attribution as any co-author.

[Collaboration guide](https://docs.betteroffice.dev/docs/collaboration)

- **People.** Live co-editing over any WebSocket relay. Offline edits converge on reconnect.
- **Agents.** An agent edits through the same operations as a person, and human review is suggesting mode — accept or reject tracked changes, not a diff dialog.

## Ships as components, not iframes

The DOCX, XLSX and PPTX editors install from npm and render inside your app — no embeds, no external services, documents never leave the page.

See the [package guide](https://docs.betteroffice.dev/docs/packages) for supported runtimes and fonts, and [release notes](https://github.com/openooxml/betteroffice/releases) for version-specific changes.

One install line per ecosystem:

- **JavaScript** (`npm install @betteroffice/docx-react`) — Published React editors and framework-free cores for DOCX, XLSX and PPTX. [npm](https://www.npmjs.com/org/betteroffice), [guide](https://docs.betteroffice.dev/docs/javascript)
- **Rust** (`cargo add betteroffice-docx`) — The same engines natively, for servers, CLIs and agent pipelines. [crates.io](https://crates.io/search?q=betteroffice), [guide](https://docs.betteroffice.dev/docs/rust)
- **Python** (`pip install betteroffice-xlsx`) — Published DOCX, XLSX and PPTX packages, with installation and examples in the Python guide. [PyPI](https://pypi.org/project/betteroffice-xlsx), [guide](https://docs.betteroffice.dev/docs/python)

- [`@betteroffice/agents`](https://www.npmjs.com/package/@betteroffice/agents) — Tools for agents to search, read, edit and preview DOCX, XLSX and PPTX files, through a TypeScript SDK or a local MCP server.
- [`@betteroffice/docx`](https://www.npmjs.com/package/@betteroffice/docx) — Framework-free DOCX core: parsing, CRDT editing, page layout and rendering on the Rust engine.
- [`@betteroffice/docx-react`](https://www.npmjs.com/package/@betteroffice/docx-react) — The DOCX editor and viewer as a drop-in React component.
- [`@betteroffice/xlsx`](https://www.npmjs.com/package/@betteroffice/xlsx) — Framework-free spreadsheet core: parsing, formula calculation and rendering on the Rust engine.
- [`@betteroffice/xlsx-react`](https://www.npmjs.com/package/@betteroffice/xlsx-react) — The spreadsheet editor and viewer as a drop-in React component.
- [`@betteroffice/pptx`](https://www.npmjs.com/package/@betteroffice/pptx) — Framework-free slides core: parsing, editing and rendering on the Rust engine.
- [`@betteroffice/pptx-react`](https://www.npmjs.com/package/@betteroffice/pptx-react) — The slides editor and viewer as a drop-in React component.

## From the blog

- [BetterOffice vs docx-editor.dev](https://betteroffice.dev/blog/betteroffice-vs-docx-editor.md), October 24, 2026: Milliseconds vs seconds. About 40 ms a page vs about half a second a page. Put the kettle on.
- [BetterOffice vs Univer](https://betteroffice.dev/blog/betteroffice-vs-univer.md), October 24, 2026: Week 54 in January, the number 1 in fourth place, 9:00 AM at #VALUE!. Welcome to Univer Standard Time.

[All posts](https://betteroffice.dev/blog.md) · [Atom feed](https://betteroffice.dev/blog/feed.xml)

## The future is yours to edit.

[Try it out](https://demo.betteroffice.dev), or [explore the docs](https://docs.betteroffice.dev) for setup, APIs, and format support.
