# Repository Briefing: h4ckf0r0day/obscura
> Source: https://repoforai.com/repo/h4ckf0r0day/obscura (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/h4ckf0r0day/obscura
- **Official Docs / Website**: https://obscura.sh
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Rust
- **License**: Apache-2.0
- **Engineering Health**: A+ (98/100 · Maintenance 35/35 · Adoption 23/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.2.8 (2026-11-30) — https://github.com/h4ckf0r0day/obscura/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP, CLI, API
- **Momentum**: 38,813 ★ total (+75 24h / +1,022 7d) · 3,125 forks
- **Topics**: `antidetect`, `antidetect-browser`, `browser`, `browser-automation`, `cdp`, `headless`, `playwright`, `puppeteer`, `rust`
- **When to Use**: Best for: Self-hosted MCP agents, authorized extraction from known sites, and recurring capture jobs whose page and CDP requirements you can test in advance. Skip if: You need Chromium-equivalent rendering, full protocol and browser API coverage, reliable media playback, or production WebGL beyond the preview's limits.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Engine: Embedded V8 executes page JavaScript, while a separate Rust renderer produces visual output without a Chromium process.
- Integration: `obscura mcp` serves agent clients; `obscura serve` exposes CDP for Puppeteer and Playwright.
- Capture: Rendering-enabled builds support full-page screenshots, activity-driven CDP screencasts, and raster PDF export.
- Network and sessions: Private-network requests are blocked by default with DNS-resolution checks; v0.2.7 added CDP connection storage isolation.
- Parallel operation: `scrape` uses the bundled `obscura-worker`; multi-worker CDP serving supports recycling by connection count or RSS.
- Build boundary: Standard archives omit WebGL; the v0.2.8 Linux x86-64 WebGL 1 preview is packaged separately.
```

## Quick Start / Clone
```bash
# 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
```
