h4ckf0r0day/obscura
Rust/V8 headless browser for agent automation and capture without Chromium
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Obscura is an independent Rust headless browser, not an MCP wrapper around Chromium. Its Cargo workspace separates networking (obscura-net), request policy (obscura-ssrf), DOM, JavaScript, browser orchestration, and rendering into distinct crates. The engine fetches documents and resources, executes page scripts in embedded V8, and uses its own layout and paint engine for visual output. Private-network checks apply at DNS resolution as well as to direct requests.
The three entry points suit different deployment patterns: obscura fetch and scrape for shell and batch jobs, obscura serve for a CDP WebSocket endpoint, and obscura mcp for agent clients. CDP covers page navigation and lifecycle, runtime evaluation, DOM queries, input, and browser contexts. That lets existing Puppeteer and Playwright code reuse familiar calls, but the implemented method set is the compatibility boundary, not the Chromium API as a whole.
Key Capabilities & Differentiators
The CLI can extract rendered HTML, text, and links, evaluate JavaScript, emit an NDJSON resource inventory, or return the original response content. CDP adds browser interaction and can pause matching main-document requests before transport, allowing test code to supply a response without contacting the origin. This interception scope should not be mistaken for arbitrary subresource coverage.
Rendering-enabled builds support viewport and full-page screenshots, activity-driven screencasting, and raster PDF export. Layout and painting cover flex, grid, tables, SVG, Canvas2D, and other common page features. Example page-load measurements are 51 ms for static HTML, 84 ms for JavaScript with XHR and fetch, and 78 ms for dynamic scripts. These are example timings, not throughput or latency guarantees for concurrent capture or production SPAs.
Trade-offs & Limitations
Compared with headless Chromium driven by the same client libraries, Obscura removes the Chromium runtime dependency but replaces it with an independent implementation of Web APIs, rendering, and CDP. Long-tail CSS, compositor effects, media playback, and font rasterization can differ, so passing a navigation check is not enough to establish screenshot or workflow parity. Standard builds also omit WebGL, and the preview is not a substitute for broad graphics compatibility.
The operational cost depends on the workload. V8 heap use, page complexity, rendered output size, and worker concurrency all affect memory requirements. The default 30-second script execution budget protects workers from long-running pages but can cut off a slow SPA before it initializes. Evaluate navigation deadlines together with script budgets, and load-test the pages you actually intend to run before setting concurrency or worker recycling thresholds.
Hardware & Deployment Guide
Standard binaries run without Chrome or Node.js; existing Node-based automation clients keep their own runtime. Manual installs should keep obscura and obscura-worker together for parallel scraping. Linux release binaries target glibc 2.35 or newer, and the x86-64 Windows package needs its bundled runtime DLLs beside the executables. Source builds require current stable Rust and V8 compilation. Feature selection changes native prerequisites: the standard rendering build uses rustls, while the optional wreq/BoringSSL build needs CMake, Clang, and libclang/LLVM development libraries.
The Docker image is about 57 MB compressed and runs on distroless/cc:nonroot as UID 65532. Publish CDP on host loopback, set OBSCURA_CDP_TOKEN, and make any mounted storage directory writable by that UID. v0.2.6 improved main-document interception and frame navigation; v0.2.7 added CDP connection storage isolation and improved iframe automation; v0.2.8 fixed Canvas2D compositing and introduced a separate Linux x86-64 WebGL 1 preview that requires bubblewrap and unprivileged user namespaces.
obscura mcp serves agent clients; obscura serve exposes CDP for Puppeteer and Playwright.scrape uses the bundled obscura-worker; multi-worker CDP serving supports recycling by connection count or RSS.Self-hosted MCP agents, authorized extraction from known sites, and recurring capture jobs whose page and CDP requirements you can test in advance.
You need Chromium-equivalent rendering, full protocol and browser API coverage, reliable media playback, or production WebGL beyond the preview's limits.
Quick Start & Installation
# Linux x86_64 curl -LO https://github.com/h4ckf0r0day/obscura/releases/latest/download/obscura-x86_64-linux.tar.gz tar xzf obscura-x86_64-linux.tar.gz ./obscura fetch https://example.com --eval "document.title" # Linux ARM64 (aarch64) curl -LO https://github.com/h4ckf0r0day/obscura/releases/latest/download/obscura-aarch64-linux.tar.gz tar xzf obscura-aarch64-linux.tar.gz # NixOS nix-env -iA nixpkgs.obscura # macOS Apple Silicon curl -LO https://github.com/h4ckf0r0day/obscura/releases/latest/download/obscura-aarch64-macos.tar.gz tar xzf obscura-aarch64-macos.tar.gz # macOS Intel curl -LO https://github.com/h4ckf0r0day/obscura/releases/latest/download/obscura-x86_64-macos.tar.gz tar xzf obscura-x86_64-macos.tar.gz
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| obscura ★ | 38.8k | +1k | Rust | Apache-2.0 | Rust/V8 headless browser for agent automation and capture without Chromium |
| WrenAI | 18.5k | +66 | Python | — | An MCP-ready semantic engine that gives AI agents governed SQL and dashboard wor |
| cua | 34.1k | +973 | Rust | MIT | Rust-backed sandboxes and cross-OS desktop controls for computer-use agents |
| browser-use | 122.7k | +477 | Python | MIT | Python REPL and CDP for adaptive browser automation |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/h4ckf0r0day/obscura.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about obscura
How do MCP clients, Puppeteer, and Playwright connect?
obscura as the executable and mcp as its argument. For Puppeteer or Playwright, run obscura serve and connect over CDP. Playwright's chromium.connectOverCDP is the client entry point; Obscura still renders pages with its own engine.Does Obscura need a GPU, and how should I size the host?
Can a commercial team self-host or redistribute Obscura?
When should I use Obscura instead of headless Chromium?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy