Obscura

Obscura

Lightweight headless browser written in Rust

Description

Run browser agents or scrape at scale and headless Chrome is usually the first thing to give out: 200 MB per instance, two seconds to start, and the server drowns in memory once you open enough of them. Obscura starts over with Rust and V8 to build a headless browser with no Chromium. The project reports about 30 MB of memory, about 85 ms page loads and near-instant startup.

It speaks the Chrome DevTools Protocol, so existing Puppeteer and Playwright scripts connect by changing the endpoint. The new release adds a native renderer for screenshots, live screencasts and PDF export without Chrome installed. Cloudflare built the first prototype of its agent-first browser Kitesurf by porting Obscura to Workers. Apache 2.0, with prebuilt binaries for Linux and macOS.

Features



Real JavaScript: pages run on V8, so dynamically rendered sites return full content.

CDP compatible: a drop-in replacement for headless Chrome with Puppeteer, Playwright or coding-agent toolchains.

Native rendering: screenshots, live page screencasts and PDF export from the built-in renderer.

Lightweight: about 30 MB of memory and a ~70 MiB binary, so one machine runs many more instances.

Anti-detection: built-in fingerprint masking and automation hiding, with separate stealth builds.

One-line fetch: obscura fetch <url> --eval "document.title" opens a page and evaluates a script from the command line.