gaurang.dev

urlfs and the Verification Bottleneck

2026-10-28

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:

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:

⇒ 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.

all posts =>