selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Obscura logo

Self-host Obscura

v0.2.7

Rust headless browser engine for scraping and AI agents

BetaOpen SourceApache-2.0
Updated3 hours ago
LanguageRust
Setup difficultyEasy
Stars
35 000
Port
9222 (Default WebSocket port of the obscura serve CDP server)
Docker
h4ckf0r0day/obscura
Install with Docker

What is Obscura?

Obscura alternatives

All self-hosted alternatives to Headless Chrome →

Should you self-host Obscura?

Obscura scores 80/100 on selfhost.directory (how scoring works) and ranks #3 of 16 in Web Scraping. It has 35 000 GitHub stars, +5 916 in the last 30 days.

It shipped 12 stable releases in the past year. The latest, v0.2.7, came out on 13 November 2026. New versions land roughly every 2 weeks.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Rust.

Its closest alternative on selfhost.directory is Lightpanda (84/100, 42 012 stars). It scores higher overall, so compare the two before you pick. See Obscura vs Lightpanda side by side.

Features

  • Chrome DevTools Protocol server
  • Cookie and session handling
  • HTTP / SOCKS5 proxy support
  • Markdown / text extraction
  • MCP server for AI agents
  • Native rendering engineLong-tail CSS, some Web APIs, media playback and compositor effects may still differ from Chromium.
  • Parallel scraping
  • PDF Export
  • Puppeteer / Playwright compatibility
  • Real JavaScript execution
  • Screenshots
  • SSRF protection for private networks
  • Stealth / anti-detect fingerprintingRequires a -stealth build; enabled with the global --stealth flag.
  • Tracker blocking3,520 domains on the blocklist; can be turned off with OBSCURA_BLOCK_TRACKERS.

Obscura README

Obscura

Obscura

h4ckf0r0day%2Fobscura | Trendshift

How to install Obscura

Install Obscura with Docker

Environment variables
OBSCURA_CDP_TOKEN

docker run -d --name obscura -p 127.0.0.1:9222:9222 h4ckf0r0day/obscura

Distroless runtime image (uid 65532, no shell, ~57 MB compressed). Publish only to host loopback; -p 9222:9222 exposes it on every interface.

How to configure Obscura

  • OBSCURA_ALLOW_PRIVATE_NETWORKAllow fetches to loopback, RFC1918, link-local and other private addresses that are blocked by default for SSRF protection; DNS-rebinding safe. Per-process equivalent: --allow-private-network.

    values: 1, true, yes, on

  • OBSCURA_NAV_TIMEOUT_MS30000Hard ceiling on a single navigation; applies to Page.navigate and the CLI fetch command.
  • OBSCURA_NAV_CHAIN_LIMIT10How many documents a navigation chain may load, the first navigation included; stops pages that reset location on every load.
  • OBSCURA_SCRIPT_DEADLINE_MS30000Soft deadline for the complete page script-execution phase (classic scripts and ES modules), also used as a hard V8 watchdog budget.
  • OBSCURA_MODULE_BUDGET_MS3000Per-module loading and evaluation budget for modules that enhance an already-rendered page.

Obscura releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Web Scraping

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…