Skip to content

About

Native OOXML engines in Rust - DOCX, XLSX & PPTX editing, rendering and real-time collaboration, compiled to WASM for the web.

Topics

Resources

Contributing

Security policy

Stars

293 stars

Watchers

2 watching

Forks

Latest commit

 

History

1,140 Commits

Folders and files

Repository files navigation

BetterOffice: the open-source office suite, built on native OOXML engines in Rust

Rust-native OOXML engines with collaboration and agent editing at the core.
WebAssembly for browsers. Headless APIs for servers. Native Rust where you need it.

license npm downloads crates.io downloads PyPI downloads betteroffice.dev

Features

  • 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.

Try it out, or explore the docs for setup, APIs, and format support.

Packages

Documents — .docx

package registry what it does
betteroffice-docx crates.io typed Rust API for opening, editing, laying out, and saving DOCX documents
@betteroffice/docx npm framework-free .docx editor core: parsing, CRDT editing, and page layout in Rust through WebAssembly
@betteroffice/docx-react npm drop-in React .docx editor
betteroffice-docx PyPI Python API for reading, editing, laying out, and rasterizing DOCX documents

Spreadsheets — .xlsx

package registry what it does
betteroffice-xlsx crates.io typed Rust API for opening, editing, calculating, rendering, and saving XLSX workbooks
@betteroffice/xlsx npm framework-free spreadsheet core powered by the Rust engine through WebAssembly
@betteroffice/xlsx-react npm drop-in React spreadsheet editor
betteroffice-xlsx PyPI Python API for opening, recalculating, styling, rendering, and saving XLSX workbooks

Presentations — .pptx

package registry what it does
betteroffice-pptx crates.io typed Rust API for opening, editing, rendering, and saving PPTX presentations
@betteroffice/pptx npm framework-free .pptx editor core: slide model, masters, editing, and rendering in Rust through WebAssembly
@betteroffice/pptx-react npm drop-in React .pptx editor
betteroffice-pptx PyPI Python API for reading, editing, saving, and laying out PPTX presentations

Diagrams (.vsdx, source preview)

VSDX packages build from this repository; see the VSDX guide.

Agent tools

@betteroffice/agents lets agents search, read, edit and preview DOCX, XLSX and PPTX files through a TypeScript SDK or the betteroffice-mcp server.

What to install for which language, with a first example each: npm, crates.io, PyPI.

Benchmarks

Generated by the Benchmarks action; per-document results are on the benchmarks site.

DOCX

Page agreement is reported separately from SSIM.

BetterOffice (3a49caad)LibreOffice (26.2.3.2)
Exact page counts63/6344/63
Absolute page error057
SSIM0.85190.7694
Scored/total63/6363/63
Render time (avg)430 ms773 ms
Parse success100.00%100.00%

PPTX

BetterOffice (3a49caad)LibreOffice (26.2.3.2)
SSIM0.91700.9030
Scored/total103/103103/103
Render time (avg)159 ms1351 ms
Parse success100.00%100.00%

XLSX

BetterOffice (3a49caad)LibreOffice (26.2.3.2)
SSIM0.76610.6892
Scored/total207/208195/208
Recalc accuracy99.60%85.87%
Recalc time (avg)64 ms405 ms
Parse success100.00%100.00%

For how scores, timings and coverage are measured, see the benchmark methodology.

Structure

  • crates/ — the Rust engines
  • packages/ — the TypeScript editor packages
  • bindings/ — the Python bindings
  • e2e/ — browser tests, corpus scenarios, and the shared test harness
  • apps/web — betteroffice.dev (Next.js on Cloudflare Workers)
  • apps/demo — editor playground
  • apps/docs — documentation

Development

bun install
bun run dev:demo     # editor playground; builds the wasm bundles on first run
bun run dev          # betteroffice.dev site (no wasm needed)
bun run dev:docs     # documentation site
bun run rust:check   # fmt + clippy + tests for the engines

Run bun run test:e2e:browser for headless browser tests of all three editors. The E2E guide also covers pinned corpus scenarios, cross-SDK checks, and operation profiles.

Use the Office visual quality harness to export Word, PowerPoint, and Excel references, compare local renders, or refresh the fidelity scores with the manual action.

Contributing

Contributions are welcome. We ask for a one-time signature of the Contributor License Agreement on your first pull request (corporate version).

License

Apache-2.0 — third-party attribution in THIRD-PARTY-NOTICES.md.

About

Native OOXML engines in Rust - DOCX, XLSX & PPTX editing, rendering and real-time collaboration, compiled to WASM for the web.

Topics

Resources

Contributing

Security policy

Stars

293 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages