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

Lobsters Hottest Products

Summary

Mads Kristiansen details the one-month public build of Officve, an open-source office suite whose spreadsheet (Lort) now runs fully in-browser, with every line of code written by Claude Code and validated against an Excel-derived test oracle of ~4,800 real documents.

<p><a href="https://lobste.rs/s/gapf8s/race_for_officve_open_source_office_suite">Comments</a></p>
Original Article
View Cached Full Text

Cached at: 11/27/26, 08:35 AM

# The race for Officve: an open-source office suite in one month Source: [https://officve.madskristiansen.com/blog/race-for-officve](https://officve.madskristiansen.com/blog/race-for-officve) 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](https://officve.madskristiansen.com/app/), 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](https://github.com/madskristiansen/officve/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: checkresultsingle formulas, inputs from cached values \(807 workbooks\)99\.80% of 46,087whole workbooks recomputed from constants only99\.58% of 46,087 cellsformulas 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% overallMost 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\*2`picks the cell in your own row\. But a*computed*array, like the result of`FREQUENCY`or`ROW\(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`""\+1`is`\#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`MATCH`back into an O\(n²\) scan\. The`?`is a wildcard in exact\-match lookups\. Now only the wildcard keys get scanned\. - **Hashing`f64`bit 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\-row`VLOOKUP`sheet went from quadratic to linear after adding a proper finaliser\. - **Table column names match across`\\r\\n`and`\\n`\.**A formula can say`Table\[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`\.xlsx`but 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](https://github.com/madskristiansen/officve)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](https://github.com/madskristiansen/officve/issues/new/choose)with the file \(or a stripped\-down copy\)\. Those are exactly the bugs this approach is good at fixing\. — Mads

Similar Articles

officve

Lobsters Hottest

Version 0.1.0 of 'Lort', an open-source Excel-like spreadsheet that runs in the browser and on Windows, has been released. It supports 200+ formulas, .xlsx importing, and fast evaluation, but saving, charts, and collaboration are still under construction.

Euro-Office comes to your desktop with the Nextcloud Office Desktop app

Hacker News Top

Nextcloud released the production-ready Nextcloud Office Desktop app, a free and open-source office suite powered by Euro-Office that works across Windows, macOS, and Linux. It supports offline editing, real-time co-editing via Nextcloud Hub, local fonts, digital signatures, and high compatibility with Microsoft Office and open document formats.

Tiny Little Office

Hacker News Top

Tiny Little Office 推出一套以链接为核心的在线办公工具集,包含文字处理、大纲、演示、表格、绘图、日历等 10 款应用,并提供 llms.txt 说明如何让 AI 代理以链接形式生成和嵌入文档。