← back to the officve homepage  |  try Lort  |  source on GitHub

The race for Officve: an open-source office suite in one month

November 27, 2026 · day 1 of ~28 · šŸ finish line: Christmas

Officve is an attempt to build a complete office suite, a spreadsheet (Lort) and a word processor (Ord), as open source, in one month, in public. Today the spreadsheet works. You can open it in your browser, drop an .xlsx on it, and get your formulas, fonts, colours and borders back. Ord starts next.

How it's built, upfront: every line of code so far was written by Claude Code, an AI coding agent, with me steering: what to build, what matters, what's wrong. That's part of the experiment. Can an agent build software as big as an office suite if you give it a strong enough way to check its own work? Most of this post is about that checking.

Bug reports and feature requests go to GitHub issues. The same agent triages them and fixes the relevant ones.

The stack

The engines are Rust. The UI is TypeScript with Solid, drawing the grid on a canvas. The same engine compiles to WebAssembly for the browser (277 KB gzipped) and runs inside a Tauri window for the desktop app (a 2 MB Windows installer). There's one engine and no server: your spreadsheet never leaves your machine.

Don't trust it, measure it against Excel

The interesting problem isn't writing a formula parser. It's knowing whether you're right. Excel's behaviour is the spec, and much of it isn't written down anywhere. So the first thing built was a test corpus: about 4,800 real .xlsx/.docx files from the test suites of Apache POI, LibreOffice, the Open XML SDK and others.

The trick for spreadsheets: when Excel saves a file, it stores its computed value next to every formula. Every Excel-saved workbook is therefore an answer key. The oracle (crates/lort-oracle) re-evaluates every formula and compares:

checkresult
single formulas, inputs from cached values (807 workbooks)99.80% of 46,087
whole workbooks recomputed from constants only99.58% of 46,087 cells
formulas we can evaluate at all (the rest use unsupported functions)92.5%
number formats vs Excel's TEXT() (Apache POI's format tests)100% dates, times, General, text, conditions; 72.8% overall

Most of the remaining mismatches are in the test files themselves, not the engine: circular references, stale caches, and #NAME? values cached by Excel versions that didn't have a function yet. The biggest real gap is OLAP CUBE* functions, which need a live data connection.

For the word processor, the same idea needs one more step. The harness drives real Word to export each test document to PDF, extracts every text line with its position, and scores a layout engine on identical line breaks, page counts and positions. LibreOffice gets 77.4% of lines broken exactly like Word on our corpus. That's the bar Ord has to beat.

Things Excel does that nobody tells you

The oracle's failure lists drove most of the work. Some favourites:

Performance

100000 rows, 300001 formulas
  first full recalc                   771 ms
  edit that dirties 100k VLOOKUPs     231 ms
  edit an unreferenced cell           0.01 ms

Dependencies are tracked per area, and identical areas are shared: 100,000 lookups over A:B are one entry. Each area fires once per recalc, and exact-match lookups get a per-recalc hash index. The first version took 269 seconds on the same sheet. The benchmark existed only because a corpus file was slow.

What doesn't work yet

The race

The goal is a full open-source office suite by Christmas, around four weeks from today. The plan, roughly: saving and charts for Lort, Ord's layout engine measured against Word, then collaboration and a self-hostable sync server. Progress will show up on GitHub and on this site, and it will be measured with the same numbers as above, so you can see what's actually done.

If it breaks on your file, open an issue with the file (or a stripped-down copy). Those are exactly the bugs this approach is good at fixing.

— Mads


← back to the homepage