Sulat.com / Writing on AISaturday, December 5, 2026
Enter →
Agent Engineering/5 December 2026

tinybrowser is a headless browser in one 18 MB binary

tinybrowser swaps Chromium for a Rust engine in one 18 MB binary that speaks CDP. I benchmarked it against headless Chromium and had seven models drive it with Playwright.

3D tinybrowser logo block in a server room, with glowing teal lines linking it to a floating browser window
Illustration: Sulat, featuring the tinybrowser logo

At a glance

  • tinybrowser is a headless browser in one 18.7 MB binary that speaks the Chrome DevTools Protocol, so Playwright drives it with no Chromium underneath.
  • It idled at about 30 MB against about 169 MB for headless Chromium, but pages loaded 2 to 9 times slower and plain JavaScript ran 2.5 to 14 times slower.
  • It passed 42 of my 51 checks against 51 for Chromium, and failed on request interception, WebSocket, WebGL, crypto.subtle and service workers, among others.
  • Reusing one tab fails after about 55 page loads in version 0.0.16, while opening a new tab per task stayed flat across 120 loads.
  • Seven models drove it through five tasks and 34 of 35 runs passed, with every pelican they drew rendering almost the same as it does in Chromium.

tinybrowser is a headless browser written in Rust that ships as one 18.7 MB binary. It opens a Chrome DevTools Protocol port, so Playwright and Puppeteer connect to it the way they connect to Chrome. I installed version 0.0.16, benchmarked it against headless Chromium on the same box, ran a 51-check compatibility test, and had seven models drive it through five tasks.

The launch post from @ericc_ch.

What it is

The engine is assembled from parts that already exist: Stylo for CSS, Taffy for layout, Blitz for painting, html5ever for parsing and QuickJS-ng for JavaScript. The project credits Servo, Chromium, Firefox, QuickJS, Obscura, Kitesurf and Blitz. QuickJS has no JIT, and that choice explains most of what follows.

Stack diagram: a script talks over one loopback port to the tinybrowser binary built on Stylo, Taffy, Blitz and QuickJS-ng
One binary holds the whole engine, with no Chromium underneath.

Starting it takes one command. The daemon prints a loopback URL, and the same port answers CDP, W3C WebDriver and WebDriver BiDi.

Code
npm install tinybrowser playwright-core
npx tinybrowser daemon start --profile demo
Terminal showing tinybrowser daemon start returning JSON with a loopback port, then /json/version reporting tinybrowser 0.0.16
One command starts the daemon, and it answers like Chrome.

There’s also a WebAssembly build that runs the engine inside a page or in Node. The project’s own site uses it to paint a live demo without an iframe. That build is 11.3 MB, about 4.5 MB gzipped. It has no CDP or WebDriver port, so Playwright can’t drive it. In Node it booted in about 200 ms and rendered an 800 by 600 screenshot in about 130 ms.

tinybrowser project site header reading tinybrowser running directly in your browser with demo tabs
The project site runs the Wasm build in the page.

Footprint is the win

The tinybrowser binary is 18.7 MB. Chromium’s headless shell binary is 217 MB, and the shell’s whole directory is 296 MB. At idle, tinybrowser held about 30 MB of memory against about 169 MB for Chromium. After my run they sat at about 43 MB and about 198 MB. A daemon started in about 50 ms, and Chromium took 100 to 120 ms to launch and open a page.

Hand-drawn bars: tinybrowser 18.7 MB on disk and 30 MB idle memory against Chromium headless shell 217 MB and 169 MB
It ships about 12 times smaller and idles about 6 times lighter.

Speed is the cost

I served a small shop from the same machine and loaded each page 15 times in a fresh tab, three runs per browser. The medians are below. The gap grows with page weight, and the 4,000-node page took almost nine times as long.

Hand-drawn bars of page load times in milliseconds for tinybrowser against Chromium across four pages, tinybrowser slower
It’s slower everywhere, and the gap widens as pages get heavier.

Raw JavaScript shows the missing JIT directly. I timed four small scripts inside the page.

Testtinybrowser (ms)Chromium (ms)
fib(30)130 to 1409 to 15
Sort 200,000 numbers165 to 20538 to 71
Join 100,000 strings25 to 299 to 12
Parse 20,000 JSON objects71 to 9513 to 21
Screenshot of a dashboard75 to 10541 to 51
Ranges across three runs.

What breaks

My compatibility test has 51 checks: 20 for automation, 29 for the web platform and 2 over HTTPS. Chromium passed all 51 and tinybrowser passed 42. Filling forms, selecting, ticking, clicking, role locators, cookies, accessibility snapshots, full-page screenshots and waiting for the network to go idle all worked. The nine failures are in the diagram.

Checklist of nine failed checks for tinybrowser out of 51, including page.route, WebSocket, WebGL and crypto.subtle
Nine checks fail, and none of them is forms, clicks or screenshots.

The one that bites agents is request interception: Playwright’s page.route doesn’t work. The project’s own Web Platform Tests dashboard says the same thing from the other side. Its weak areas include WebCrypto, service workers, WebRTC, WebGL, streams and IndexedDB, which sits at 23%. Its strong areas include DOM nodes at 94.9%, flexbox at 89% and CSS 2 at 90%.

tinybrowser Web Platform Tests dashboard showing 70.4% of subtests passing and a rising history chart
The project’s own test dashboard puts it at 70.4% of subtests.

Both browsers loaded example.com and Wikipedia over HTTPS. I read the certificate issuers with OpenSSL through the same proxy, and they were the real authorities: Cloudflare TLS Issuing ECC CA 3 for example.com and Let’s Encrypt for Wikipedia.

One tab runs out of memory

This is a real bug in 0.0.16. A tab that keeps navigating grows by 4 to 5 MB per page load and never gives it back. A 4,000-node page failed on its 56th load with out-of-memory errors at about 405 MB, and the catalog page failed around its 59th at about 323 MB. Once a tab was exhausted, other tabs in the same daemon hit allocation failures too until I restarted it.

The workaround is cheap. I opened a new tab, loaded a page and closed it, 120 times in a row. Memory stayed flat at 25 to 27 MB with no failures. Agents that open one tab and reuse it for a long session will hit the wall, and agents that open a tab per task won’t.

Hand-drawn infographic: one reused tab fails after about 55 loads, a new tab per task stays steady
Open a new tab per task and the memory stays flat.

Seven models drive it

I used opencode as the harness and gave each model the same five tasks with a clean folder, tinybrowser and Playwright installed, and a ten-minute limit. The models were Kimi K3.1 Pro, DeepSeek V4.1 Flash, Claude Haiku 5.5, GPT-6.1 Terra, Gemini 4 Neon, MiniMax M4 and GLM 5.4. A small script checked every answer against the known result.

Every prompt opens with the same paragraph. The profile name changed per run, and the pelican prompt leaves out the sentence about the shop.

Code
tinybrowser 0.0.16 and playwright-core are already installed in this folder. Start the browser with `npx tinybrowser daemon start --profile {PROFILE}` and drive it with Playwright over CDP, using `chromium.connectOverCDP(url)` and `browser.contexts()[0].pages()[0]`. A demo shop is running at http://127.0.0.1:8099. Stop your daemon when you're done.

Task 1 reads a JavaScript-rendered catalog.

Code
Open the catalog page at http://127.0.0.1:8099/catalog. Find the cheapest product that is in stock and list every sold-out product. Write answer.json shaped like {"cheapest_in_stock":{"name":"","price":0},"sold_out":["",""]}.

Task 2 fills in a form.

Code
Check out at http://127.0.0.1:8099/form as Hana Rua ([email protected]), size L, with gift wrap ticked. Write the confirmation code the site shows to answer.json as {"code":""}.

Task 3 pages through a table.

Code
The orders table at http://127.0.0.1:8099/orders?page=1 has five pages reachable through its Next link. Add up the Total column over every order on all five pages. Write answer.json as {"rows":0,"total":0}.

Task 4 is the pelican, which tests SVG rendering.

Code
Write pelican.html, a single self-contained page with an inline SVG of a pelican riding a bicycle and no external files. Render it with tinybrowser (serve it over http from a local port, or load it with setContent) and save a 1200x800 screenshot as pelican.png.

Task 5 needs interception, which the browser can’t do, so the model has to find another way.

Code
Make the catalog page at http://127.0.0.1:8099/catalog show a single product called Mocked priced $1.00 instead of the real ones, without changing the server. Then save a screenshot as mocked.png and write answer.json as {"first_card_text":""} with the text of the first product card.
ModelTask 1 (s)Task 2 (s)Task 3 (s)Task 4 (s)Task 5 (s)
Claude Haiku 5.51916264155
DeepSeek V4.1 Flash15152034failed
GPT-6.1 Terra22253724767
Gemini 4 Neon3277539366
Kimi K3.1 Pro353973192352
GLM 5.4574351600206
MiniMax M41764683265259
Wall-clock seconds per run. Every cell except one passed the checker.
Grid of seven models by five tasks with ticks, and one cross for DeepSeek on the mock-the-catalog task
Thirty-four of 35 runs passed.

The reading and form tasks were easy for everyone, and Claude and DeepSeek finished them in under 30 seconds. Gemini’s first form script hung on page.waitForNavigation() before it recovered. MiniMax took nearly three minutes on the catalog read.

All seven pelicans rendered. GLM was still working when the ten-minute limit cut it off, and its screenshot was already saved, so it counts as a pass. I also loaded the same seven pelican pages in headless Chromium. Fewer than a third of a percent of pixels differed noticeably in the worst case, so tinybrowser draws inline SVG like Chromium does.

Seven cartoon pelicans on bicycles, each drawn by a different model and rendered by tinybrowser at 1200 by 800
Seven pelicans, each screenshotted by tinybrowser.

The pelicans run Claude, DeepSeek, Gemini and GLM along the top, then Kimi, MiniMax and GPT-6.1 Terra along the bottom.

The mock task split the field. Six models got the catalog showing one product called Mocked. The runs I read for Claude, Gemini and MiniMax all gave up on page.route and used page.addInitScript to override fetch before the page ran. MiniMax’s log explains why: tinybrowser announces each request with Fetch.requestPaused but rejects the follow-up fulfillRequest and continueRequest calls with an invalid interception ID.

Kiwi Goods catalog page showing a single product card called Mocked priced $1.00, in stock
The mocked catalog, captured by tinybrowser.

DeepSeek failed this task, and the reason is about the harness more than the browser. opencode refuses file access outside the run’s folder, and a refusal ended the run. On its first try DeepSeek went to write a script in /tmp. On its second and third it went looking for the checker script in the folder above. GLM’s first run ended the same way and its second passed, which is the run in the table. DeepSeek’s three runs all ended at about ten seconds.

Terminal listing the mock-the-catalog results for seven models, six passing and DeepSeek failing
The checker’s verdict on the mock task.

Where it fits

It suits agents that read pages, fill forms and take screenshots on pages you control, particularly where memory and image size matter: many parallel browsers on one box, small containers, or a browser shipped inside another tool. It doesn’t suit anything that needs interception, WebSocket, WebGL, service workers or time zones other than UTC, or heavy client-side JavaScript where a 3 to 14 times slower engine adds up.

Lightpanda, a headless browser written in Zig, is the better-known alternative in this space. I couldn’t download its binary in this environment, so it isn’t in these numbers. The project’s site lists Obscura and Kitesurf among its inspirations.

How I tested

Everything ran on one Linux VM with 4 vCPUs (Intel Xeon at 2.10 GHz, one thread per core, under KVM), 15 GiB of memory, a 252 GB disk, Ubuntu 24.04 and kernel 6.18. The shop server, the load generator and both browsers shared that machine, so absolute times are only comparable within this piece. The Chromium in every comparison is its headless shell. Memory is proportional set size read from the process.

Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.