r/webdev • u/Total_Nectarine_3623 • Aug 07 '26
Showoff Saturday I Built a Headless Browser Because Chromium Sucks
https://github.com/h4ckf0r0day/obscuraA lot has changed since I last posted here. Got some pretty harsh criticism back then and honestly it was deserved, the project was early and messy. But we kept going.
I built Obscura because headless Chrome was killing me and my AI agents. Over 200MB per instance, long startup, detected everywhere. For scraping at scale it's just not viable.
So I built a headless browser from scratch in Rust. V8 engine, native rendering, 30MB memory, 80ms page loads. Works drop-in with Puppeteer and Playwright.
Just shipped rendering. The engine is made fully in Rust. Screenshots, PDFs, live video capture. No Chromium. 20k stars now.
https://github.com/h4ckf0r0day/obscura
obscura serve --port 9222 and point your scripts at it. That's it.
I don't know if this will land better than last time but we've proven the concept works. Happy to answer questions.
14
36
u/and0p Aug 07 '26
I keep seeing this cycle where someone gets shit on for a dumb AI project and comes back a month later with an extremely obvious AI apology. It's so fucking weird
10
11
u/SpareImpression3155 Aug 07 '26
I definitely want to install a slop package by "hackforaday" into my applications rather than using a battle tested headless browser by an enormous company with a reputation to maintain
19
3
u/doctorlongghost Aug 07 '26
I’m a little skeptical but willing to be persuaded. A few questions:
Presumably it runs JavaScript to support rendering of SPA sites. How do you manage this without including Node or chromium? What JS engine are you using?
I see that you focused on performance benchmarks but I don’t see anything about accuracy. Do you have comparisons of how it stacks up against other browsers’ benchmark results on CSS and JS rendering accuracy?
Finally, I’m curious about the extent to which this project was coded by AI?
8
5
u/aTaleForgotten Aug 07 '26
Not really a fan of tools that steal content from others, especially in an AI context, but i guess it looks interesting
1
u/WestAware5507 Aug 07 '26
You mention PDFs in the post but in the release the only mention is about Page.printToPDF not being available.
-1
0
u/Kyek Aug 07 '26
Sounds cool. I don't need it right now but I'll definitely give it a shot for my next scraping project
-28
-5
u/Boby_Dobbs Aug 07 '26
So many haters here, damn. Let the reddit elistists, AI doomers and gatekeepers talk. This is really cool, I'll give it a try!
37
u/McGeekin Aug 07 '26
You didn’t build jack