Self-host Obscura
v0.2.7Rust headless browser engine for scraping and AI agents
- Stars
- 35 000
- Port
- 9222 (Default WebSocket port of the obscura serve CDP server)
h4ckf0r0day/obscuraWhat is Obscura?
Obscura is a browser engine built in Rust without any UI, aimed at automation software rather than at people browsing pages: it executes real JavaScript through an embedded V8 and serves the Chrome DevTools Protocol, so existing Puppeteer or Playwright scripts can point at it instead of headless Chrome. One CLI covers several jobs - fetching a single page (dumping HTML, text, links, Markdown or the raw response body, evaluating expressions, taking PNG screenshots), scraping many URLs at once through parallel workers, running a persistent CDP WebSocket server, and exposing an MCP server over stdio or HTTP for agent clients such as Claude Desktop and Cursor. Rendering is an independent engine shipped with both the release tarballs and the container, giving CSS layout and paint, full-page captures, live screencasting and raster PDF output with no Chromium process, although long-tail CSS, some Web APIs and media playback can still differ from Chrome. Stealth builds add per-session fingerprint randomization, a believable navigator.userAgentData and a blocklist covering thousands of tracker domains; requests to private addresses are refused by default as SSRF protection and re-enabled with --allow-private-network. Running it yourself means a downloaded binary, the h4ckf0r0day/obscura container, Nix or the AUR package - no Chrome, Node.js or database required. The engine is Apache-2.0 and, in the project's own words, fully featured with nothing gated; a hosted Obscura Cloud is only announced and waitlisted.
Obscura alternatives
LightpandaOpen-source, self-hosted headless browser written in Zig for scraping, crawling and AI agents; serves CDP and WebDriver BiDi on port 9222 for Puppeteer and Playwright.CompareLightpanda with Obscura
auto-browserSelf-hosted, open-source MCP control plane for a shared Playwright Chromium, where an agent browses and a person can grab the live desktop mid-task, keeping saved logins.Compareauto-browser with Obscura
BrowserOS neoA self-hosted, open-source Chromium browser for your AI agents: one-click Chrome login import, parallel agent tabs, and full session replay, all running locally.CompareBrowserOS neo with Obscura
browserlessSelf-hosted headless browser deployment in Docker. Connects with Puppeteer or Playwright for web scraping, automation, and testing.Comparebrowserless with Obscura
binhex-official-byparrSelf-hosted, open-source API that drives a stealth headless browser to earn valid Cloudflare and other anti-bot cookies, and can fetch pages for Open WebUI's web loader.Comparebinhex-official-byparr with Obscura
steelSelf-hosted browser API giving AI agents control over real Chrome via standard automation tools, handling sessions, proxies, and anti-detection.Comparesteel with Obscura
invisible_dotsAn open-source self-hosted AI agent platform where each Dot gets a QEMU virtual machine with persistent Linux desktop and browser automation.Compareinvisible_dots with Obscura
maxunSelf-hosted and open-source web data platform: build scrape, crawl, extract, search and monitor robots in a no-code recorder or with an API, SDK, CLI or MCP.Comparemaxun with Obscura
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
How to install Obscura
Install Obscura with Docker
OBSCURA_CDP_TOKENdocker 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.
Install Obscura with Linux
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 --version
x86_64 and aarch64 (ARM64) archives; each release archive also contains obscura-worker, keep both in the same directory.
Install Obscura with Windows
Download the .zip from the releases page and extract it manually.
Run obscura.exe --version after extracting.
Install Obscura with macOS
curl -LO https://github.com/h4ckf0r0day/obscura/releases/latest/download/obscura-aarch64-macos.tar.gz tar xzf obscura-aarch64-macos.tar.gz ./obscura --version
Apple Silicon and Intel archives. Gatekeeper warning: xattr -d com.apple.quarantine ./obscura.
Install Obscura with Arch Linux
yay -S obscura-browser
AUR package.
Install Obscura with NixOS
nix-env -iA nixpkgs.obscura
Install Obscura with Linux (Build from Source)
git clone https://github.com/h4ckf0r0day/obscura.git cd obscura
Rendering
cargo build --release -p obscura-cli --bins --features render
Stealth builds also compile BoringSSL, so they need CMake, Clang and libclang/LLVM development libraries. No Chrome, Node.js or other runtime dependencies.
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_MS=30000Hard ceiling on a single navigation; applies to Page.navigate and the CLI fetch command.OBSCURA_NAV_CHAIN_LIMIT=10How many documents a navigation chain may load, the first navigation included; stops pages that reset location on every load.OBSCURA_SCRIPT_DEADLINE_MS=30000Soft deadline for the complete page script-execution phase (classic scripts and ES modules), also used as a hard V8 watchdog budget.OBSCURA_MODULE_BUDGET_MS=3000Per-module loading and evaluation budget for modules that enhance an already-rendered page.
Obscura releases & version history
v0.2.7
This release improves iframe automation, form handling, session history, and browser robustness. It adds opt-in MCP web search, fixes rendering hangs and process aborts, isolates CDP connection storage, and repairs Windows runtime packaging. 87 commits since v0.2.6.
Highlights
• Iframe automation uses the correct document and evaluation world. Child-frame evaluation, remote objects, uploads, and owner-frame metadata now follow the frame that owns them. Playwright iframe locators can resolve their content frames (#1479 (#1479), #1498 (#1498), #1502 (#1502)).
• Back and Forward preserve live document state. Same-document history traversal moves the cursor without duplicating entries or reloading the document. Identical-URL entries remain distinct, and replacements preserve forward history (#1577 (#1577)).
• Forms, selects, and tables support more existing automation. Native ownership determines which controls belong to a form, which options belong to a select, and which rows and cells belong to a table. Live collections and legacy mutation APIs are implemented (#1485 (#1485), #1488 (#1488)).
• Several crash and hang paths are fixed. Grid sizing stops when floating-point redistribution cannot progress. Invalid grid spans, malformed CSS imports, short SVG viewBox values, and deeply nested documents no longer trigger the repaired abort paths.
• MCP gains opt-in web search. The new web_search tool uses Keenable to find pages that agents can then open with browser_navigate. Deep-document and nested-table Markdown extraction also avoid repeated work (#1445 (#1445), #1493 (#1493)).
• Windows archives include required runtime dependencies. Packaging resolves and bundles the required Visual C++ runtime DLLs and checks the extracted distribution (#1492 (#1492)).
Behavior changes
• Noninteractive confirm() now returns false instead of automatically accepting the action. alert() remains nonblocking and prompt() returns null. Client-controlled synchronous dialogs remain unsupported (#1475 (#1475)).
• Each CDP connection receives an independent copy-on-write localStorage snapshot of the server’s startup profile and a fresh IndexedDB store. Changed localStorage keys merge back into the persistent profile when the connection closes. Embeddable persistent context copies continue sharing their configured live profile stores (#1478 (#1478)).
Security
• The privileged deno_core bootstrap alias is removed from page and frame globals (#1429 (#1429)).
• Newly created profile directories use owner-only permissions on Unix. Cookie files use mode 0600, and failed cookie saves produce an error log. Existing directory permissions are preserved; Windows directories inherit their parent’s ACL. Profile contents remain plaintext (#1512 (#1512), #1549 (#1549)).
• CDP WebSocket connections accept the endpoint’s own HTTP Origin by default. Other origins require OBSCURA_CDP_ALLOWED_ORIGINS. Native clients without an Origin remain supported, and Host validation and bearer authentication remain enforced (#1501 (#1501)).
• File uploads validate the target input, node identity, and owning frame before reading local files. Invalid or retired handles return protocol errors. Local file access still requires explicit opt-in (#1477 (#1477)).
• Imported public-suffix cookies receive exact-host scope instead of being silently discarded. SameSite validation and cookie-prefix restrictions remain enforced (#1550 (#1550)).
• History URL validation uses the committed document URL rather than a queued Location destination, preventing pending navigation from changing the origin used by history updates (#1577 (#1577)).
CDP and automation
• Child-frame evaluations and function calls execute in the selected frame’s V8 realm. Remote objects and property-derived handles retain their producing evaluation world. Released, retired, and cross-world handles are rejected instead of being redirected into the main document (#1498 (#1498)).
• DOM.describeNode and DOM.getOuterHTML preserve remote-node ownership. Frame owner elements report live child frameId metadata through document responses and child-node events (#1479 (#1479), #1502 (#1502)).
• DOM selector queries stay within the requested subtree, support :scope, and report invalid selectors and node IDs as protocol errors. Explicit shadow-root queries do not pierce unrelated trees (#1481 (#1481)).
• Lifecycle subscriptions replay the current document’s completed lifecycle state, allowing clients to attach after loading without waiting for events that already happened (#1418 (#1418)).
• Page.navigateToHistoryEntry preserves the runtime, history state, and popstate behavior when traversing within the live document (#1577 (#1577)).
• Discovery requests are routed by their request-target path. Header values, query values, and endpoint prefixes no longer change endpoint selection. Discovery URLs also accept trailing slashes (#1549 (#1549), #1570 (#1570)).
MCP and extraction
• Set OBSCURA_WEB_SEARCH=keenable to enable web_search. Enabling it sends search queries to Keenable. The integration supports the public endpoint and optional KEENABLE_API_KEY, with bounded responses and result limits (#1445 (#1445)).
• Search limits accept integer-valued JSON numbers such as 5.0, while preserving defaults and clamping.
• Markdown extraction bounds recursive traversal and uses an explicit stack for deeper subtrees. Nested tables reuse converted cell output instead of recursively converting the same content again. CLI Markdown output, LP.getMarkdown, and MCP share the repair (#1493 (#1493)).
• MCP cookie and storage-state imports retain public-suffix host cookies with exact-host delivery (#1550 (#1550)).
Networking and page lifecycle
• Native GET and POST navigation preserve the initiating document when deriving Origin, Referer, Fetch Metadata, and cookie context. Redirects retain origin/site taint and progressively reduced referrers. Native stealth POST uses the selected stealth transport (#1486 (#1486)).
• Eligible Last-Modified subresources use age-adjusted heuristic cache freshness, capped at 24 hours. Explicit cache controls and existing bypass rules remain in effect (#1457 (#1457)).
• Empty HTTP error responses fail navigation instead of reporting a successful empty page (#1366 (#1366)).
• Classic scripts marked nomodule are skipped (#1525 (#1525)).
• Nested frame parent chains and message sources preserve browsing-context identity across navigation, removal, and reinsertion. Retired frames cannot alias the main window or an unrelated sibling (#1397 (#1397), #1504 (#1504)).
DOM, JavaScript, and rendering
• Custom elements receive connection, disconnection, and observed-attribute reactions during DOM mutations. Attribute and style caches update before callbacks run, including reentrant attribute changes (#1381 (#1381)).
• Twenty-four previously aliased HTML interfaces gain distinct native wrapper prototypes. Constructor identity, prototype changes, and instanceof behavior no longer leak between unrelated tags (#1482 (#1482)).
• Tables expose live rows, bodies, section rows, and cell collections, with row/cell indices and insertion/deletion APIs. Native ownership excludes nested tables and foreign namespaces (#1476 (#1476), #1488 (#1488)).
• Selects support native indexed access and legacy option APIs. Form submission respects actual control ownership, multiple selections, disabled-control rules, and the activated submit button (#1480 (#1480), #1485 (#1485), #1488 (#1488)).
• Input selection survives assignment of an unchanged value. setRangeText() handles explicit undefined defaults, unsigned offset conversion, and unknown input-type fallback (#1443 (#1443), #1444 (#1444)).
• Constructed DocumentFragment objects preserve wrapper identity. Node-ID operations resolve the calling frame’s document (#1544 (#1544), #1538 (#1538)).
• HTML serialization correctly escapes textarea/title text and attribute values, preserves namespace prefixes, and handles legacy void elements. Foreign xmlns attributes retain their correct identity (#1511 (#1511), #1524 (#1524)).
• Shadow-DOM layout can be retained after unrelated metadata and fixed-size image-source updates. Attribute-dependent generated content invalidates retained layout when its inputs change (#1380 (#1380)).
• Closed dialogs are hidden through the UA cascade while preserving author display overrides (#1568 (#1568)).
Reliability and runtime performance
• Grid track redistribution stops when floating-point state cannot progress, fixing a rendering hang (#1473 (#1473)).
• Invalid zero-span grid placements are ignored. Malformed CSS imports and short SVG viewBox values no longer trigger the repaired panic paths (#1466 (#1466), #1467 (#1467)).
• Deep-document parsing bounds nesting without dropping elements or text. CDP connection threads receive additional native stack headroom for layout (#1474 (#1474)).
• Large PBKDF2 derivations run on bounded, cancellable workers instead of blocking the event loop. Small derivations retain a bounded native fast path (#1469 (#1469)).
• Repeated select-length reads reuse live option snapshots instead of rebuilding and decoding option lists (#1535 (#1535)).
• History synchronization transfers only changed URL ranges, uses bounded bookkeeping, and moves native data without a JSON round trip (#1577 (#1577)).
• Storage remains usable when page code replaces its global constructor (#1500 (#1500)).
Packaging and validation
• Windows packaging bundles required Visual C++ runtime dependencies and validates extracted archives. Dedicated regression checks cover all four Windows variants (#1492 (#1492)).
• Scoop installation metadata and Windows installation instructions are corrected (#1454 (#1454)).
• A native ARM64 validation job covers fontless screenshots and client-disconnect cleanup (#1575 (#1575)).
• CI preserves the exact release binary before workspace tests can rebuild it with different dependency features. Performance measurements use matching release configurations (#1553 (#1553)).
• Final main validation passed 2,670 render tests with five existing skips, 1,701 no-render tests with three existing skips, and the stealth networking checks.
• All four release build configurations passed: render, render+stealth, no-render, and no-render+stealth.
• Main passed the complete 33/33 obstacle course.
• The independent performance comparison passed 34 scenarios, with five trials per build and 340 recorded samples.
• The CI-built executable separately passed the Playwright history, raw CDP, frame-position, and cookie-origin reproductions.
• Documentation now uses the repository’s GitHub guides and reflects current CLI and CDP behavior (#1441 (#1441), #1442 (#1442)).
Contributors
Thanks to @963s, @anirudhqwerty, @Bl0ck154, @coolswood, @dsenften, @flolep2607, @ilya-bogin-keenable, @Johnbjoseph-cybersec, @jpdjere, @Ker102, @Kevsosmooth, @kk376, @lkarlslund, @shahzadaliofficial, and @velinxs for contributions to this release.
Full Changelog: v0.2.6...v0.2.7
v0.2.6
This release improves request interception, frame navigation, CDP responsiveness, and JavaScript startup. It also fixes browser API behavior, updates security-sensitive dependencies, and strengthens performance regression checks. 117 commits since v0.2.5.
Highlights
- Main-document requests can be intercepted before transport. Playwright and Puppeteer can fulfill navigation requests directly. Binary bodies, repeated cookies, continuation overrides, redirects, and request completion retain their expected behavior (#1384).
- CDP remains responsive while evaluations await promises. Other commands and interception replies can proceed while asynchronous evaluations settle. Script evaluation runs directly through V8 and preserves global lexical bindings (#1310).
- Frame navigation stays in the correct document. Child-frame Location methods and named form targets navigate their owning frames. Blank iframe documents initialize during insertion, and iframe shadow roots use the correct document (#1357, #1359, #1385).
- Startup and response handling avoid repeated work. Common browser methods are precompiled, bootstrap source is shared across isolates, inline styles are allocated on demand, and stored response bodies are encoded only when a client reads them.
- Security dependencies are updated without replacing stealth profiles. Compression, Tokio, and TLS verification dependencies receive patched versions. Dependency audits pass without additional advisory exceptions (#1352, #1393).
Rust API change
StoredResponseBody.body changes from String to Vec<u8> and now contains the raw response bytes.
Rust callers needing the previous text or base64 representation should use .cdp_body(). CDP response formats are unchanged (#1335).
Security
- Tokio is updated to 1.53.3,
rustls-webpkito 0.103.16, and the affected WebPKI root packages to 1.0.10 (#1352). - Compression dependencies move to patched
zstd0.14.3,zstd-safe8.2.0, andzstd-sys2.1.2, with Brotli dependencies aligned. The existing emulation profiles are retained. Already-buffered certificate input avoids an unnecessary decoder allocation (#1393). - The network loader itself enforces the
file://opt-in, protecting callers that do not pass through navigation-level checks. Explicitly permitted file access remains available (#1280). - Scripted
fetch()ignores forbidden request headers (#1358). - Wrapped JWK serialization and parsing use native JSON handling. Key wrapping validates permissions and extractability (#1290).
CDP and automation
Runtime.evaluateexecutes directly in V8. Replacing the page’sevalno longer intercepts protocol evaluation, and global lexical bindings remain accessible to later evaluations (#1310).- Awaited evaluations no longer hold up all subsequent CDP commands. Function calls use native invocation and preserve JSON arguments.
DOM.getAttributes,DOM.requestNode,DOM.requestChildNodes, andDOM.getNodeForLocationsupport the top-level light DOM. Published node tracking belongs to each session and resets during navigation and teardown (#1300).- Initialization scripts are scoped to their target instead of leaking into unrelated pages (#1360).
- Main-document interception preserves supplied bytes and repeated
Set-Cookieheaders. Failed and canceled requests complete once under their original request IDs (#1384). - Explicit network-idle navigation respects its configured deadline and reports failure if requests remain active. It no longer reports successful idle after an unconditional five-second cutoff (#1388).
- MCP
browser_wait_for_functioncontinues driving page tasks, allowing predicates dependent on network callbacks to complete (#1298).
Networking and page lifecycle
Responseaccepts suppliedReadableStreambodies without stringifying or draining them during construction. Consumption preserves byte validation, errors, locking, cancellation, cloning, and pull backpressure (#1386).- Child-frame Location navigation loads that frame without replacing its parent. Detached frame windows cannot queue parent navigation (#1385).
- Forms honor named child-frame targets (#1357).
- Blank iframe documents initialize during insertion. Initial frame setup also handles reentrant operations safely, fixing an iframe initialization abort (#1359, #1306).
- Fragment navigation updates same-document history and dispatches
hashchangewithout reloading the document. Assigning an unchanged fragment preserves the existing history entry (#1287). robots.txtparsing keeps consecutive user-agent lines in one group and separates wildcard matches from named-agent matches (#1350).--user-agentis accepted as a global CLI option. Explicit overrides reach both stealth requests andnavigator.userAgent, with per-request headers taking precedence (#1279, #1389).
DOM, JavaScript, and rendering
- Twenty-eight missing HTML interface globals gain distinct prototypes and tag-specific brands. Namespace-aware creation and cloning preserve qualified names and prefixes (#1387).
- Worker globals expose ECMAScript built-ins and Web APIs as properties of their scope (#1368).
DOMImplementationis exposed globally (#1375).window.eventidentifies the current event during handlers and listeners, restoring the previous value after nested dispatch or exceptions (#1345).documentis read-only, and ordered-list and list-item attributes reflect through their DOM properties (#1303, #1297).- Summary activation toggles details elements, and changes to
openqueue toggle events (#1299). - Shadow-root creation and lookup inside iframes use the owning frame’s document (#1343).
checkVisibility()evaluates implemented visibility rules instead of always returning true. Render builds also preserve inherited computed visibility (#1071).- Hidden table rows are excluded from layout, and table row and row-group display values are respected (#1304, #1307).
- Previously missing computed-style longhands and the
cssFloatalias are exposed (#762). - WebCrypto supports AES-KW key wrapping and unwrapping with native JWK serialization (#1290).
Runtime performance
- Common DOM, URL, and response methods are precompiled into the startup snapshot. Their bodies are not executed during preparation, and compiler hooks are removed before page execution (#1325).
- Bootstrap source is shared across isolates, inline style objects are allocated on demand, and parallel runtime startup is bounded.
- Window named-property lookup batches work in the native DOM, and UTF-8 decoding uses the native path while preserving explicit encoding handling.
- Native-function source metadata uses weak references so discarded functions can be collected (#1322).
- Response bodies remain raw bytes until CDP serialization is requested, avoiding eager text or base64 conversion for unread bodies (#1335).
Packaging and validation
- Patched compression, font, and layout dependencies propagate to embedded Rust consumers (#1393).
- Release packaging runs the dependency audit before building and publishing artifacts.
- Performance CI checks sustained DOM workloads and CPU consumption alongside latency and memory. Obstacle-course latency regressions also fail the performance gate (#1351, #1383).
- Rendering fixture checks enforce zero-count assertions (#1305).
- Final validation passed 2,459 render tests with five existing skips, 1,505 no-render workspace tests with three existing skips, 31 library API tests, and the stealth networking checks.
- All four release build configurations passed: render, render+stealth, no-render, and no-render+stealth.
- Main passed the complete 33/33 obstacle course.
- The shipping render+stealth binary received separate paired CPU, memory, and screenshot checks. Both rendering fixtures produced pixel-identical output against the preceding shipping baseline.
Current limitations
- The new CDP node commands cover the top-level light DOM. Live mutation events, detached-node publication, and frame or shadow-tree traversal remain incomplete.
- Supplied
Responsestreams are supported; network response bodies remain bounded and buffered. - PDF output remains raster-backed.
- Service workers, native media, some Web APIs, and long-tail rendering behavior remain incomplete relative to Chromium.
Contributors
Thanks to @alexskinner, @anzal1, @bkircher, @chiliec, @flolep2607, @fwonce, @HyperionBurn, @Kevsosmooth, @lisa0314, @lucasbrito-wdt, @Micaso, @ntdatt812, @orezraey, @shaipe, @suleman-dawood, and @yzyf1312 for contributions to this release.
Full Changelog: v0.2.5...v0.2.6
v0.2.5
This release focuses on MCP automation, storage correctness, and browser compatibility. It adds actionable snapshots, preserves tab runtimes, implements IndexedDB transactions, and fixes binary request interception. 128 commits since v0.2.4.
Highlights
- MCP snapshots include references agents can act on directly. Snapshots return accessible names, live control states, visible text, and bounded element descriptions. Stale references are rejected before an action reaches the wrong element (#1268, #1273).
- MCP evaluations return completed results and real errors. Returned promises are awaited, scripts execute once, and exceptions, rejections, and timeouts produce tool errors. Active pages continue processing timers and network callbacks between requests (#1227, #1269, #1272).
- Switching MCP tabs preserves page state. JavaScript globals, event listeners, frame state, and pending promises remain alive until the tab closes (#1274).
- Storage retains data across more workflows. Web Storage survives navigation and target switching, MCP restores state into its declared origins, and IndexedDB transactions retain records and roll back aborted writes (#1252, #1259, #1270).
- Iframe loading follows document lifecycle more closely. Fetched frames finish their author scripts before the element’s load event. iframe srcdoc loads in a native child document with inherited base URLs and sandbox restrictions (#1265, #1276).
- Long-running servers gain worker recycling. Workers can be replaced by connection count, age, or Linux RSS limits. Replacements start before old workers drain their existing connections (#1211).
Rust API change
InterceptResolution::Continue.body is now Option<Vec> instead of Option. For owned text, replace Some(text) with Some(text.into_bytes()).
None preserves the original request body. Some(Vec::new()) replaces it with an empty body. CDP clients continue sending base64-encoded postData; the wire format is unchanged (#874).
Security
- Rustls is updated from 0.23.45 to 0.23.46, addressing RUSTSEC-2026-0346 through RUSTSEC-2026-0349. The dependency audit passes without additional advisory exceptions (#1261).
MCP and agent automation
- browser_snapshot includes actionable references, accessible names, control states, and visible body text. Control descriptions and body text share the default 4,000-character content budget; URL and title are capped separately. Password values are omitted (#1273).
- Snapshots and element listings use the existing native accessibility logic shared with CDP, including labels, ARIA naming, and visibility filtering (#1273).
- Element references identify the original native node. Copying attributes to a replacement or clone no longer transfers a reference. New listings invalidate previous reference generations (#1268).
- browser_evaluate accepts scripts, executes them once, and awaits returned promises. Synchronous execution, promise settlement, and result serialization are bounded. JavaScript failures return isError: true rather than successful null or error-string results (#1227, #1272).
- browser_wait_for_function provides predicate-based waiting with timeout and polling options (#1227).
- Active pages process timers, network callbacks, and pending navigation between requests over both stdio and HTTP. Idle pages park on browser wakeups (#1269).
- Tab switching retains live runtimes instead of destroying and recreating page state. Closing a tab still releases its runtime and frames (#1274).
- Storage-state import restores localStorage into each declared origin, including before navigation. Session storage remains scoped to the active tab. Export includes previously visited stored origins (#1270).
- browser_fill_form stops before submission if a field fails and completes queued submit navigation before replying. Earlier field changes are not rolled back (#1272).
- Render-enabled MCP accepts repeatable --font-dir options for screenshots and PDF output. Font directories load before either transport starts (#1235).
- Graceful MCP shutdown uses the existing cookie and profile persistence path (#1238).
CDP and automation
- Fetch.continueRequest decodes base64 postData into raw bytes. JSON, binary, and explicitly empty overrides reach the server without string conversion. Invalid binary parameters leave the request paused so a corrected command can resume it (#874).
- Fetch interception pauses only requests matching the configured Fetch.enable patterns (#1117).
- Runtime.callFunctionOn accepts object-handle arguments used by go-rod, and DOM.getOuterHTML resolves objectId arguments (#1221).
- Page.close handles top-level beforeunload confirmation after native user activation. Target.closeTarget remains a force-close (#1221).
- Page.stopLoading cancels held document, parser-script, and pending rendering-resource loads instead of only acknowledging the command. Canceled navigations do not emit successful load events (#1221).
- History navigation uses the current preload-script list. Removing an unknown or already-removed preload identifier returns an error (#1215).
- Page.setBypassCSP is acknowledged during client setup, allowing Playwright contexts configured with bypass_csp to open pages (#1225, #1229).
- JSON worker navigation accepts per-request load, domcontentloaded, networkidle0, and networkidle2 readiness modes. Invalid modes return an error without navigating (#1127).
- Color-scheme emulation reaches matchMedia(), CSS selection, screenshots, and PDF layout. Overrides persist across navigation and apply to child documents (#1205).
Storage and runtime
- localStorage belongs to the browser context and sessionStorage to the tab, both separated by origin. Navigation and CDP target switching no longer discard them. --storage-dir persists localStorage across process runs (#1252).
- Failed profile writes and removals remain pending for retry. Restored profiles are validated before replacing live state, and Web Storage preserves unpaired UTF-16 units (#1252).
- IndexedDB uses context-owned, origin-isolated storage. Transactions stage changes and commit atomically; aborts roll back records, schema changes, and generated keys (#1259).
- IndexedDB supports typed keys and ranges, cloned values, unique and multiEntry indexes, cursors, readonly enforcement, upgrade blocking, and cross-document version-change delivery. Retained data and pending writes are quota-bounded (#1259).
- Module roots, dependencies, and dynamic imports retain real response metadata and bounded response bodies. Suspending a runtime preserves those bodies without re-encoding them (#1199).
- Failed module requests produce network-failure records instead of disappearing from request history (#1262).
- Network errors include their underlying cause chain (#1219).
- Expired resource-cache entries are removed from eviction bookkeeping (#1202).
DOM, JavaScript, and rendering
- Document.cloneNode() preserves document metadata, namespaces, templates, and live form-control state without reparsing or modifying the source document (#1275).
- Attr objects expose their Node interface and support independent cloning. Inert HTML parsing preserves root attributes and document structure without executing scripts (#1275).
- iframe srcdoc takes precedence over src, including an empty value. Parser input, connected innerHTML, attribute changes, replacement, and removal use the document-loading path (#1276).
- DOM insertion, replacement, Range mutations, and mutation-observer records follow document constraints, sibling relationships, namespace handling, and requested old-value behavior more closely (#1266).
- Nested CSS grouping rules are exposed, CSSOM edits invalidate computed styles, and detached elements return empty computed declarations (#1266).
- Repeated non-geometric computed-style reads reuse ancestor cascades within an unchanged JavaScript task. Style-only paths avoid unnecessary layout and inherited custom-property copies (#1260, #1263).
- DOM mutations avoid cloning unused node data and allocating rendering bookkeeping that cannot be consumed (#1267).
- Block children stack correctly inside auto-width inline-blocks, and formatting whitespace no longer distorts their intrinsic width (#1266).
- word-spacing affects text measurement, layout, and paint. Ordinary non-replaced inline boxes ignore transforms as required by CSS (#955, #1033).
- HTMLIFrameElement has its own interface identity instead of aliasing every element (#1243).
- FileList is exposed globally, fixing scripts that previously failed when referencing it (#1233).
- Plain-text and Markdown responses produce literal-text documents. document.contentType, leading newlines, empty responses, and metadata reset behavior are preserved (#1234).
Server operation
- Worker recycling supports --worker-max-connections, --worker-max-rss, --worker-max-age, and --worker-drain-timeout. RSS-based recycling is Linux-only, and recycling requires multiple workers (#1211).
- Multiworker serve handles SIGTERM and SIGINT and shuts down its children. --max-connections is forwarded and enforced per worker (#1213).
- Linux/glibc workers can return freed heap memory while other connections remain active. Busy-worker trimming is coordinated to avoid concurrent allocator pauses (#1209).
- scrape and batch fetch keep spawned jobs within --concurrency and preserve input order. URL input and completed results remain buffered (#1203).
Packaging and validation
- CLI and MCP builds from tagged source archives report the release version instead of falling back to the workspace version (#1255).
- CI detects incomplete V8 native-library caches and rebuilds the affected dependency without discarding healthy caches (#1253).
- Performance smoke measurements use immediate process-exit timing rather than timeout polling that distorted short runs (#1264).
- Stealth regression coverage includes scripted network events and retained response bodies (#1130).
- Final main passed 2,332 render tests with five existing skips, 1,394 no-render workspace tests with three existing skips, 31 library tests, and the stealth networking checks.
- All four release build configurations passed: render, render+stealth, no-render, and no-render+stealth.
- The final main obstacle course passed all 33 stages.
- Additional storage validation included the upstream TodoMVC suite: Chromium 24/24 and Obscura 24/24, with unchanged test bodies and the existing CDP connection adapter. This is not a claim of complete Playwright compatibility.
Contributors
Thanks to @Suydev, @Yi-111-a, @anandmahadevv, @flolep2607, @fwonce, @ginkel, @ice-zeus, @lisa0314, @ntdatt812, @pederbe, @seamile, @vvinayakkk, @wstczyw, and @yvv4git for contributions to this release.
Full Changelog: v0.2.4...v0.2.5
v0.2.4
This release focuses on automation reliability, browser compatibility, and reducing unnecessary engine work. It fixes frame teardown crashes, adds recovery for failed CDP workers, improves input and navigation behavior, and tightens the release validation gate. 212 commits since v0.2.3.
Highlights
• Frame teardown no longer crashes under garbage collection. Borrowed iframe contexts are cleaned up safely when their isolate is destroyed, fixing process aborts during page closure (#1197).
• Failed CDP workers are reaped and restarted. Multiworker serving replaces exited workers and avoids routing new connections to workers known to be unavailable. Sessions on a failed worker still require reconnection (#1198).
• Automation spends less time waiting unnecessarily. Idle polling, CDP reply stalls, redundant DOM traversal, and unchanged rendering work were reduced. Ready timers and awaited evaluations now yield so other browser work can proceed (#1078, #1111, #1131, #1132, #1137).
• Input and page lifecycle behavior follow browsers more closely. Text insertion respects beforeinput and canceled keyboard events, readonly controls reject deletion, detached frames stop running timers, and document replacement preserves parser behavior (#1184, #1185, #1186, #1190, #1191).
• Release CI requires all 33 obstacle-course stages. A failure shared by the baseline and candidate can no longer satisfy the absolute behavioral gate (#1195).
Security
• Teredo addresses containing a forbidden IPv4 destination are rejected by the SSRF gate (#1098).
• The standalone renderer HTTP loader applies the same private-network restrictions as page networking (#1072).
• Malformed request-interception URL rewrites fail closed instead of bypassing URL validation (#1076).
• file:// navigation requires explicit permission at the browser layer, not just the CLI (#1070).
• history.pushState() and replaceState() enforce same-origin URLs (#1057).
• __Host- cookies require an explicit Path=/; cookie expiry parsing and IP-domain matching were hardened (#1099, #1073).
• CSS-sized image and mask allocations, robots cache growth, and protocol-supplied values have tighter bounds (#1062, #1064, #1094).
CDP and automation
• Network events reach observer sessions, including intercepted requests, without losing their target routing (#1128, #1194).
• Worker navigation responses expose the final HTTP status. Blocked requests no longer receive a fabricated status (#1119).
• Redirected navigation responses are associated with the final document URL (#1139).
• Active screencasts receive the new-document frame before load completion, reducing blank recordings of short navigations (#1134).
• Runtime.getHeapUsage reports native V8 heap measurements, and HeapProfiler.collectGarbage performs collection (#1135).
• Text insertion honors beforeinput cancellation, and canceled keydown events prevent default editing (#1184, #1185).
• Readonly deletion and textarea newline behavior were corrected (#1186).
• Readiness-file permission handling is portable to Windows (#1150).
Networking and runtime
• Fetch resolves when response headers are available rather than waiting for the complete buffered body (#1146).
• Fetch and XHR cancellation stop native request work and release network-readiness counters. Canceled requests emit Network.loadingFailed (#1193).
• Dynamic resources retain their request destinations (#1181).
• Folded HTTP/1 response headers are accepted by both the normal and stealth transports (#1160).
• Same-origin non-GET fetch and XHR requests send the appropriate Origin header (#1081, #1104).
• WebAssembly streaming calls no longer reach an unset native callback that aborts the process (#1163).
• Microtask exceptions are reported without discarding remaining queued work (#1174).
• Initial iframe realms are created synchronously; detached frames retire their timers and realms (#1140, #1191).
• Iframe discovery microtasks are covered by the termination watchdog (#1136).
Rendering
• Unchanged pages reuse retained rendering work, and transform measurement avoids repeated layout churn (#1111, #1110).
• Native controls inherit font shorthand correctly and retain their intrinsic size when stretched in grids (#1177, #1178).
• Percentage heights resolve across anonymous inline wrappers (#1179).
• Absolutely positioned inline content preserves its static position (#1180).
• Mixed inline content retains the correct owner geometry (#1188).
• Hit testing excludes the bottom and right boundaries of boxes. Borrowed document methods use the receiver’s realm (#1164, #1144).
• Caret lookup uses rendered text geometry, and focus scrolling handles nested containers (#1187, #1133).
• Canvas strokes and gradient color stops are implemented (#1022).
DOM and JavaScript
• new Option(text, value, defaultSelected, selected) creates a real option element (#1196).
• Concrete SVG element interfaces support standard prototype and interface checks (#1112).
• innerText uses rendered text rather than raw DOM text (#1106).
• Session history is exposed through window.history (#1105, #1074).
• Replacement documents and document.write preserve lifecycle, EOF processing, and live foster-parenting anchors (#1027, #1189, #1190).
• Mutation observers honor attribute filters (#1138).
• Response construction and static factories validate their inputs (#1173).
• No-op style.setProperty() calls leave the style attribute unchanged (#1172).
• Media-query changes and reduced-motion emulation reach page scripts and CSS (#1028).
• User Timing marks, measures, and observers are supported. Legacy navigation timing records implemented lifecycle milestones rather than fabricated values (#1166).
• Unsupported editing commands are reported truthfully; iframe IDs are excluded from Window named access (#1183, #1192).
MCP, packaging, and validation
• MCP text-search offsets remain correct across Unicode case folding (#1016).
• Local-network denial messages explain how to enable explicitly permitted local access (#1129, #1175).
• Build and V8 memory configuration documentation was corrected (#1114, #1115).
• CI reuses trusted dependency caches and validates rendering, no-render, and stealth configurations (#1147).
• Final main passed 2,115 render tests with five existing skips and the complete 33/33 obstacle course.
• Additional validation passed 50/50 GC-stressed page closures and the unchanged four-test Grafana admin subset in both Chromium and Obscura. These are bounded checks, not a claim of complete Playwright compatibility.
Current limitations
• IndexedDB can report successful writes without retaining data between transactions. Applications requiring IndexedDB correctness remain affected by #1093.
• Worker recovery replaces the process but does not restore its active sessions.
• Response bodies remain bounded and buffered; earlier header delivery does not provide incremental network streaming.
• Service workers, native media, some Web APIs, and long-tail rendering behavior remain incomplete relative to Chromium.
Contributors
Thanks to @SGavrl, @h4ckf0r0day, @mnaza, @ice-zeus, @flolep2607, @AntonioRossi, @Micaso, @jorgensandhaug, @visto-a11y, @vvinayakkk, @zorahrel, @DamoyY, @abn, and @Yi-111-a for contributions to this release.
Full Changelog: v0.2.3...v0.2.4
v0.2.3
Security, concurrency, and browser compatibility are the focus of this release. The JavaScript engine has been updated, exposed CDP and MCP servers now have built-in authentication, concurrent sessions are more reliable, and rendering gained another broad correctness and performance pass. 114 commits since v0.2.2.
Highlights
• CDP and MCP now protect exposed control ports. Non-loopback binds require a bearer token of at least 32 bytes. Browser-origin requests and invalid Host headers are rejected, request sizes and connection counts are bounded, and multiworker CDP preserves the same security checks (#1030, #1048).
• Deno and V8 have been updated. deno_core moves from 0.350 to 0.412 and V8 to 150.4, removing the old advisory exceptions while retaining Obscura's runtime behavior and performance (#1031).
• Concurrent automation is faster and more reliable. Concurrent pages keep independent live isolates, disconnected clients release their state, browser attachments receive unique sessions, and the multiworker server now starts immediately, uses OS-assigned ports, and avoids proxy latency (#872, #873, #978, #1048).
• Rendering is faster and more faithful. Resource loads use the page transport, font databases and repeated text shaping are reused, live form state reaches paint, and layout, hit testing, scrolling, stacking, text decoration, and transform safety were improved (#879, #890, #935, #959, #983, #998, #1019).
• Web platform behavior continues to close on browsers. CharacterData ranges, slots, URL setters, accessible names, Web IDL enumerability, selection-aware input, pointer events, :scope, and document.write ordering now follow browser behavior more closely (#887, #931, #984, #999, #1004, #1005, #1008, #1029).
Security
• CDP supports OBSCURA_CDP_TOKEN; MCP HTTP supports OBSCURA_MCP_TOKEN. Non-loopback binds are refused without a sufficiently long token.
• CDP rejects browser-origin requests and DNS-rebinding-style Host headers. MCP browser requests are denied unless their origin is explicitly allowed.
• MCP headers, bodies, batches, pending requests, and live connections are bounded.
• CORS preflights validate methods and headers, intermediate redirect hops are checked, and credentials are removed on cross-origin redirects (#942, #967, #973).
• Script-visible responses hide Set-Cookie, unexposed cross-origin headers, opaque response bodies, and internal resource bytes.
• Cookie handling now preserves host-only scope, rejects public-suffix domains, enforces SameSite rules, and prevents insecure origins or document.cookie from overwriting protected cookies (#915).
• WebCrypto output sizes are capped against memory exhaustion (#910).
• Transform layers are dimension-capped so hostile transforms cannot force an aborting allocation (#1019).
• Rustls was updated for RUSTSEC-2026-0285 (#1025).
• Docker continues to run as the non-root uid 65532 (#859).
CDP and automation
• Concurrent pages on one connection retain independent JavaScript heaps and object handles (#872).
• Browser attachment sessions are unique and detach independently (#978).
• Client state is released after disconnect instead of accumulating in long-running servers (#873).
• Discovery endpoints advertise the client-facing host and port (#945).
• Fetch.fulfillRequest preserves binary bodies, multi-valued response headers remain intact, and the Fetch domain follows the same interception behavior as the main server path (#912, #913, #919).
• History navigation updates its index only after successful navigation and retains network events (#920).
• Runtime.evaluate and callFunctionOn preserve undefined in by-value results (#938).
• DOM methods return protocol errors for unresolvable object ids instead of placeholder values (#917).
• Backspace removes an entire surrogate pair, and Enter respects textarea selections (#939, #1005).
• Mouse input now dispatches browser-shaped pointer and mouse transitions, focuses interactive targets, respects pointer-events, and acknowledges commands before navigation events.
• Multiworker serving uses OS-assigned internal ports, readiness polling, TCP_NODELAY, and resilient client dispatch instead of adjacent ports and a fixed startup delay.
Networking and runtime
• Render resources use the owning page transport, preserving proxy, stealth, headers, cookies, interception, SSRF checks, and request accounting (#890).
• CORS validates preflight permissions and every redirect hop (#942, #973).
• Fetch methods are normalized to uppercase, and cross-origin redirects strip authorization and cookie credentials (#969, #967).
• JavaScript cannot access deno_core internals or bootstrap handoff state.
• Worker message handlers survive initialization, frame realms no longer crash on rejection or dynamic import, and late V8 flag changes are ignored instead of aborting (#850, #853, #871).
• document.write preserves blocking script order (#1029).
• The module response-size environment override now reaches the actual module loader cap (#849).
Rendering
• Font databases are cached across documents, reducing repeated startup and discovery work (#879).
• Repeated text runs reuse bounded shaping templates, and table column measurement avoids redundant layout and shaping (#983, #1048).
• Live input values and checkbox state are painted from the DOM without slow attribute reconstruction (#959).
• DOM-only screenshots remain network-free (#998).
• Overline and line-through text decorations are painted (#935).
• Rounded float boundaries no longer abort layout (#884).
• Hit testing follows stacking order and inherited pointer-events.
• Overflow axes, scroll chaining, sticky and fixed geometry, percentage sizing, and positioned inline-flex containing blocks were corrected.
• Image and font resources are shared safely without bypassing the page transport.
DOM and JavaScript
• CharacterData mutations update live ranges, and node identity and id lookup remain correct after mutation (#984).
• Removing an id attribute updates the document id index (#1013).
• HTMLSlotElement exposes assignedNodes() and assignedElements() (#931).
• URL search, hash, and port setters follow WHATWG behavior (#1008).
• btoa() encodes Latin-1 rather than UTF-8 (#996).
• Web IDL operations are enumerable on interface prototypes (#999).
• Accessible names handle labels, hidden references, links, nested controls, and visibility consistently (#1004).
• Element.querySelector() and matches() bind :scope to the correct element.
• Iframe events follow capture, target, and bubble ordering.
• Window named properties can be shadowed by normal JavaScript assignment.
MCP, packaging, and stealth
• MCP network history includes scripted requests, and console messages are available to clients (#950, #951).
• Distribution binaries use size-optimized LTO builds while retaining unwind-based panic containment (#962).
• Navigator, PluginArray, Plugin, MimeType, and MimeTypeArray are exposed as their standard interfaces (#962).
• Stealth tracker blocking can be disabled when the caller needs the unfiltered resource set (#995).
• Release builds continue to publish render, render-stealth, no-render, and no-render-stealth variants.
Contributors
Thanks to @mnaza, @AntonioRossi, @lisa0314, @michabbb, @Railly, @Yubo-Cao, @lkraider, @ntdatt812, @kws1207, @mrummuka, and @gilbertwong96 for contributions to this release.
Full Changelog: v0.2.2...v0.2.3
@ Every self-hosted release, weekly
One Monday email with the week's stable releases across the directory.
More in Web Scraping
RSS-BridgeSelf-hosted, open-source PHP app that generates RSS, Atom and JSON feeds for websites missing them, with 447 community bridges and file, SQLite or Memcached caching.
RSS-ProxyOpen-source, self-hosted feed generator that converts any static website into RSS, ATOM or JSON feeds, filters existing feeds, and runs from a single Docker container.
scrape-dojoSelf-hosted web scraping with JSON workflows. 25+ actions, Handlebars/JSONata templates, cron scheduling, encrypted secrets, real-time monitoring, optional JWT/OIDC/MFA.
TRAWLA self-hosted, open-source scraping engine that bypasses JavaScript challenges and CAPTCHAs using an adaptive tier engine with HTTP-first approach and MCP support.
txtdottxtdot is a self-hosted, open-source HTTP proxy that fetches web pages and returns only text, links and pictures — removing ads and scripts to reduce bandwidth.
url-to-pngSelf-hosted, open-source PNG screenshot service from URLs using Playwright with caching (S3/CouchDB/filesystem) and Prometheus metrics.
webclawSelf-hosted web extraction turning pages into clean Markdown, JSON, and LLM-friendly text. CLI, HTTP API, and MCP server for AI assistants. Rust, AGPL-3.0.
YacyYaCy is open-source, self-hosted search engine software — crawler, index and web front-end in one Java server, with a peer-to-peer network or an intranet search portal.
anakinSelf-hosted open-source web scraping API turning pages into clean markdown or JSON, with an anti-detect Camoufox browser, proxy auto-selection and a web dashboard.
ArchiveBoxArchiveBox is an open-source, self-hosted web archiving app that ingests bookmarks, RSS feeds and URLs, then saves durable HTML, PDF, PNG, WARC and MP4 copies.
binhex-official-byparrSelf-hosted, open-source API that drives a stealth headless browser to earn valid Cloudflare and other anti-bot cookies, and can fetch pages for Open WebUI's web loader.
browserlessSelf-hosted headless browser deployment in Docker. Connects with Puppeteer or Playwright for web scraping, automation, and testing.
0 comments