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:
| check | result |
|---|---|
| single formulas, inputs from cached values (807 workbooks) | 99.80% of 46,087 |
| whole workbooks recomputed from constants only | 99.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:
- Implicit intersection only applies to ranges. In a normal (non-array) formula,
=A1:A10*2picks the cell in your own row. But a computed array, like the result ofFREQUENCYorROW(A1:A9), is evaluated element by element even in Excel 2007. So=SUM(IF(FREQUENCY(x,x)>0,1))counts distinct values without Ctrl+Shift+Enter. <v/>is not "no value". It's a cached empty string, and""+1is#VALUE!. Treating it as missing broke 480 formulas in one loan template.ROUND(2.675, 2)is 2.68 in Excel. Binary floating point says 2.67. Excel rounds the 15-significant-digit decimal representation, so we do too.- A company called "Guess?" turned a hash-indexed
MATCHback into an O(n²) scan. The?is a wildcard in exact-match lookups. Now only the wildcard keys get scanned. - Hashing
f64bit patterns of whole numbers with an Fx-style hasher puts every key in the same bucket, because the low 40 bits are zero and the multiply keeps them. A 100k-rowVLOOKUPsheet went from quadratic to linear after adding a proper finaliser. - Table column names match across
\r\nand\n. A formula can sayTable[Also LONG\r\nBUT TWO LINES]while the table's own column name uses\n. - The 1900 leap-year bug is alive, so day 60 is February 29, 1900. And POI's date-format test file uses the Mac 1904 date system, which cost an hour of confusion.
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
- Saving. Lort reads
.xlsxbut can't write it yet. This is next. - Charts, pivot tables, conditional formatting, data validation.
- Real-time collaboration (designed for, not built).
- Ord, the word processor: the test harness is ready, the engine isn't.
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