My main goal with this project was to see how good current models actually are at writing software. Standard web apps are pretty easy for models now, so I wanted to pick something a bit lower level and see where they struggle.
I built urlfs using Gemini 3.8 Flash High in Antigravity.
⇒ What I was trying to do
The idea is simple, even if a bit weird: run a WebAssembly program in the browser and store its entire filesystem inside the URL.
When you run a program or edit a file, urlfs packs the files together, compresses them, and saves them into the URL hash (#...) in the address bar. If you copy that link and open it somewhere else, you get the exact same files and state back. There is no server and no database. Everything lives in the browser and the link itself.
⇒ How I approached it
I wanted the whole thing to be a single HTML file with no external dependencies. To make it actually work, it needed a few pieces:
- A WASI (Preview 1) runtime inside a Web Worker so WebAssembly programs can read arguments, edit files, and print to a terminal.
- A small binary format that packs all files (skipping
/tmp), compresses them withdeflate-raw, and encodes them into the URL hash. - A WebAssembly bytecode builder in JavaScript, so the built-in demos are created directly as
.wasmbinaries without needing Rust or Emscripten. - Four demos to test it out: a counter, a CLI text processor, a logger that keeps
/tmpout of the URL, and a BusyBox-like shell with 30 basic Linux commands (ls,cat,cp,mv,grep,tail,stat,df,free,ps,base64, etc.).
The code quickly grew to a few thousand lines, and I was not going to read every line of generated WebAssembly bytecode by hand. So I focused on automated tests to check each part:
test_wire_format.jschecks that packing and unpacking files preserves everything and leaves out/tmp.test_all_demos.jsvalidates the generated.wasmbinaries and runs the standalone demos in Node.test_in_chrome.jsopensindex.htmlin headless Chrome, runs the demos and BusyBox commands, edits files in the UI, and reloads from a copied URL hash to make sure state persists.
⇒ What I ended up with
It works. Everything bundles into a single index.html file (about 160 KB). You can run the demos, edit files or inspect the .wasm binary in the workbench, use the shell, and copy the URL to share your state. You can try it using the online preview or look at the code on GitHub.
What surprised me most was how well the model held everything together. I expected it to start making up function names, mess up memory offsets, or fall apart once the code grew past a few thousand lines. That didn't really happen. It built the WASI host, the bytecode builder, and all 30 BusyBox commands in raw WebAssembly instructions while keeping the overall design consistent.
⇒ What I learned
The hardest part of the project was not writing the code, it was verifying it.
Even when the model got almost everything right, real bugs still showed up in edge cases. For example, the app passed all local tests in Chrome, then broke when opened through GitHub's HTML preview proxy because the proxy rewrote the script tags. You only catch things like that by testing in the same setup people actually use.
When a model can generate thousands of lines of working code in minutes, your job changes. You spend a lot less time typing code and a lot more time figuring out how to test it. Without good automated checks, you just end up with a lot of code you cannot really trust.