Retrieved article excerpt
Open article · Retrieved 2026-11-18T17:23:04.649345+00:00
[Blog](https://recursiveai.org/blog/)
# What my software factory built: 30 libraries, from a database engine to a game engine
My software factory built 30 libraries, from a SQLite-compatible database to a game engine and a GPU stack, and it keeps them maintained. I run it by myself.
November 18, 2026·Kurtis Welch
My software factory builds the kind of software I’d expect a specialist team to spend a long time on, and it keeps that software maintained after it ships. So far that’s a SQLite-compatible database engine, a game engine on deterministic physics, a GPU stack with its own shader compiler, and readers and writers for Word, Excel and PowerPoint files. I run it by myself.
There are 30 libraries in all. 28 reached 1.0 between early October and mid-November, and together they’re nearly 1.9 million lines of handwritten library code. They’ve had 241 releases so far, and 183 of those were on libraries already past 1.0. They’re C# on NuGet, and oneyaml also ships in Rust and Go.
## What it built
### Documents and the web
[OnePdf](https://recursiveai.org/onepdf/) · Complexity 5/5 ⓘ · Innovation 1/5 ⓘ
Read, repair, edit, sign and fill PDFs, and write PDF/A and accessible PDF/UA.
[OneDocument](https://recursiveai.org/onedocument/) · Complexity 5/5 ⓘ · Innovation 2/5 ⓘ
Read, edit, recalculate and write Word, Excel and PowerPoint files, and render them to PDF.
[OneHtml](https://recursiveai.org/onehtml/) · Complexity 4/5 ⓘ · Innovation 3/5 ⓘ
Parse and edit HTML like a browser, and check pages for accessibility without one.
[OneRender](https://recursiveai.org/onerender/) · Complexity 5/5 ⓘ · Innovation 3/5 ⓘ
Lay out and render HTML and CSS to pixels or tagged PDF, without a browser.
[OneFont](https://recursiveai.org/onefont/) · Complexity 4/5 ⓘ · Innovation 1/5 ⓘ
Load fonts and shape text in any script, with bidi and line breaking.
[OneImage](https://recursiveai.org/oneimage/) · Complexity 4/5 ⓘ · Innovation 1/5 ⓘ
Decode, edit, convert and resize images, from PNG and JPEG to layered PSD.
### Data and formats
[OneLite](https://recursiveai.org/onelite/) · Complexity 5/5 ⓘ · Innovation 1/5 ⓘ
Embed a SQLite-compatible database that reads and writes the same files as sqlite3.
[OneIndex](https://recursiveai.org/oneindex/) (preview) · Complexity 3/5 ⓘ · Innovation 1/5 ⓘ
Run full-text, vector and hybrid search in-process, or in the browser.
[OneArchive](https://recursiveai.org/onearchive/) · Complexity 4/5 ⓘ · Innovation 1/5 ⓘ
Compress and unpack zip, 7z, tar and other archives, with the same bytes everywhere.
[OneMail](https://recursiveai.org/onemail/) · Complexity 4/5 ⓘ · Innovation 2/5 ⓘ
Read, write and convert mail stores, Outlook PST included, and send and fetch mail.
[OneCrypto](https://recursiveai.org/onecrypto/) (preview) · Complexity 4/5 ⓘ · Innovation 1/5 ⓘ
Load keys and certificates, validate certificate paths, and sign and encrypt with OpenPGP.
[oneyaml](https://recursiveai.org/oneyaml/) · Complexity 3/5 ⓘ · Innovation 2/5 ⓘ
Load, dump and edit YAML in place in Rust, Go and C#, keeping comments.
[OneContact](https://recursiveai.org/onecontact/) · Complexity 4/5 ⓘ · Innovation 1/5 ⓘ
Parse and normalize phone numbers, emails, URLs, addresses and names, and find them in pages.
[OneDiff](https://recursiveai.org/onediff/) · Complexity 3/5 ⓘ · Innovation 2/5 ⓘ
Diff and merge text like git, and redline changes between PDFs, digital or scanned.
### AI and ML
[OneModel](https://recursiveai.org/onemodel/) · Complexity 5/5 ⓘ · Innovation 3/5 ⓘ
Run and train ONNX models in pure C#, on CPU, GPU or in the browser.
[OneNlp](https://recursiveai.org/onenlp/) · Complexity 4/5 ⓘ · Innovation 1/5 ⓘ
Tokenize, tag, parse and extract entities from text, and train the models in C#.
[OneSpeech](https://recursiveai.org/onespeech/) · Complexity 3/5 ⓘ · Innovation 1/5 ⓘ
Transcribe, time and diarize speech with Whisper and other open models, in .NET.
[OneOcr](https://recursiveai.org/oneocr/) · Complexity 4/5 ⓘ · Innovation 3/5 ⓘ
Read text, tables and invoice fields from scans and PDFs.
[OneLlm](https://recursiveai.org/onellm/) · Complexity 3/5 ⓘ · Innovation 1/5 ⓘ
Call Anthropic, OpenAI and Gemini models through one API, and run agents as files.
[OneModelContext](https://recursiveai.org/onemodelcontext/) · Complexity 3/5 ⓘ · Innovation 1/5 ⓘ
Serve tools to AI agents over MCP, or connect to MCP servers, with OAuth.
### Languages, GPU and media
[OneEcma](https://recursiveai.org/oneecma/) · Complexity 5/5 ⓘ · Innovation 2/5 ⓘ
Run JavaScript inside .NET under limits, with error reports that explain the failure.
[OneShader](https://recursiveai.org/oneshader/) · Complexity 4/5 ⓘ · Innovation 3/5 ⓘ
Compile HLSL to Vulkan, Metal and WebGPU shaders as part of `dotnet build`.
[OneGpu](https://recursiveai.org/onegpu/) · Complexity 4/5 ⓘ · Innovation 2/5 ⓘ
Run compute and ML kernels on Vulkan, Metal or WebGPU from pure C#.
[OneAudio](https://recursiveai.org/oneaudio/) · Complexity 4/5 ⓘ · Innovation 1/5 ⓘ
Decode, encode, mix and resample audio, measure loudness, and play it on devices.
[OneMedia](https://recursiveai.org/onemedia/) · Complexity 4/5 ⓘ · Innovation 1/5 ⓘ
Remux, trim, tag, repair and package video and audio files without re-encoding.
### Games and simulation
[OneGame](https://recursiveai.org/onegame/) · Complexity 5/5 ⓘ · Innovation 5/5 ⓘ
Let AI agents build, run, test, inspect and change games through commands, with no editor.
[OneMath](https://recursiveai.org/onemath/) · Complexity 4/5 ⓘ · Innovation 3/5 ⓘ
Compute sin, exp, pow and more correctly rounded, the same bits on every machine.
[OnePath](https://recursiveai.org/onepath/) · Complexity 4/5 ⓘ · Innovation 2/5 ⓘ
Find paths on grids, graphs and navmeshes, build the navmeshes, and steer crowds.
[OnePhysics](https://recursiveai.org/onephysics/) · Complexity 5/5 ⓘ · Innovation 4/5 ⓘ
Simulate 2D and 3D rigid bodies, cloth, soft bodies, fluids and vehicles, bit-identical everywhere.
[OneScope](https://recursiveai.org/onescope/) · Complexity 3/5 ⓘ · Innovation 4/5 ⓘ
Scrub, fork and compare runs of a deterministic simulation, recorded or live.
Close
## A few up close
### OneGame
[OneGame](https://recursiveai.org/onegame/) is a C# game engine with no editor. A game is plain C# plus text assets. Roslyn source generators write each entity’s change tracking, codecs, deltas and snapshots, and analyzers turn the engine’s rules into compile errors: synced state is fixed-point and only changes through commands, and view code never writes it.
Clients and servers run the same stack, so state syncs between processes with prediction, authority transfer and drift detection. It runs on Windows, Linux, macOS, Android, iOS and the web, and a CLI and an MCP control protocol let an agent build, run, inspect and replay a game from a terminal. It sits directly on nine of the factory’s other libraries.
The repo carries [sample games](https://recursiveai.org/research/building-onegame/), and CI runs them on Linux and Windows. Solitaire and Lanterns come out with the same state hash on both in every scenario.
### OnePhysics
OneGame’s physics comes from [OnePhysics](https://recursiveai.org/onephysics/), deterministic 2D and 3D physics written from first principles: rigid bodies and joints, ropes, cloth, soft bodies, fracture, particle fluids, shallow water, vehicles and ragdolls, with byte-exact snapshot and restore for rollback netcode.
Determinism is the hard part. Ordinary `Math.Sin` can return different bits on different platforms, and in a simulation one different bit compounds until the two worlds diverge. So OnePhysics does its math through [OneMath](https://recursiveai.org/onemath/), which is correctly rounded and checked against an exact stage on all four billion float inputs. CI hashes the world every step: 165 of 165 scenarios give identical hashes on Linux x64 and arm64, macOS arm64 and Windows x64, under JIT, on eight threads and NativeAOT, and in the browser. In 2D it’s also at or ahead of Box2D.NET on every scene at every thread count.
### The GPU stack
[OneShader](https://recursiveai.org/oneshader/) is an HLSL compiler written in C#. It emits SPIR-V for Vulkan, Metal Shading Language and WGSL for WebGPU, and generates the C# bindings for each shader; DXC, spirv-val and naga validate its output in CI.
[OneGpu](https://recursiveai.org/onegpu/) is a pure C# GPU layer over Vulkan 1.3, Metal and browser WebGPU. It used to be part of OneGame. When [OneModel](https://recursiveai.org/onemodel/), the ONNX runtime, needed the GPU too, I said “Fine, move it to onegpu,” and it became its own library, with ML kernels for GEMM, flash-style attention, convolution and RNNs.
OneModel now runs seven ONNX models on it on an RTX 4070, every row within 1.5× of ONNX Runtime’s WebGPU provider, with the same results on llvmpipe, RADV and an Apple M2 under Metal. OneGpu 1.0, OneModel 1.3 and OneGame 2.0 then shipped in dependency order within about 15 hours.
### OneLite
[OneLite](https://recursiveai.org/onelite/) is a SQLite 3.53.4-compatible database engine in managed C#: the database file format, the rollback journal and WAL, SQL semantics, FTS3/4/5, R\*Tree and SQLCipher 4 pages, with an ADO.NET provider and an EF Core adapter.
Compatible here means the files, in both directions. A database the sqlite3 shell wrote reads identically in OneLite, and files OneLite writes pass sqlite3’s `integrity_check`. The WAL test runs 10,000 interleaved commits between OneLite and live sqlite3 processes on the same database, and it stays consistent from both sides. sqlite3 is a black box to the team; nobody reads SQLite’s source.
SQLite’s own sqllogictest passes all but one of nearly six million records, and on that one SQLite 3.53.4 raises the same integer overflow.
### OneDocument
[OneDocument](https://recursiveai.org/onedocument/) reads and writes Word, Excel and PowerPoint in the OOXML formats from a 6,730-page standard, plus RTF and ODF. It also reads the old binary DOC, XLS and PPT, and it comes with a formula engine and rendering to tagged PDF.
The hard part is losing nothing. An OOXML file is a package of parts, and a save has to keep every part exactly, including the ones the library has no reason to touch. OneDocument opened and saved 4,900 real-world files without changes, and all 111,239 of their parts came out byte-identical.
Then real Office judges the output. Desktop Word, Excel and PowerPoint on my laptop open what it writes, all 104 of the authoring and revision documents included, and the formula engine runs against Excel’s own recalculation.
## They’re built on each other
21 of the 30 depend on others in the set. The documents side shows it best: OneDocument renders through OneRender, and OneRender is built on four more of the factory’s libraries.
OneDocument’s dependency stack
OneDocument
OneRender
OneHtml
OnePdf
OneImage
OneFont
What OneDocument pulls in. Each box is its own library with its own releases, and OneImage also uses OneFont.
OneDocument’s 1.0 day, Friday, November 6, shows what that means in practice. Three libraries under it shipped what it needed first. OneRender added the tagged-PDF roles OneDocument needed, OnePdf fixed a PDF/UA failure OneDocument found two layers down, and OneImage fixed a crash OneDocument’s fuzzer found.
Anything the agents need from me goes on a projects board on my phone. A request to release is a Ship card: the evidence for the release and a Ship button. All three fixes were on NuGet before OneDocument’s Ship card reached me, and I tapped Ship about ten minutes after it arrived. No team edits another team’s repo; a team that needs something from a library below it asks that library’s team through the project manager.
## How the factory runs
Each library starts with a planner agent that designs it through multiple-choice questions, one at a time. A project manager agent answers them for me unless only I can, and every design