Skip to content

The headless browser for AI agents and web scraping

build: publish no-render release variants

SGavrlaf93379ba01b
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 76353312..a0c96442 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -74,9 +74,34 @@ jobs:
run: |
"LIBCLANG_PATH=C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_ENV -Append
- # Rendering is part of the shipped browser. Keep the Cargo feature
- # opt-in for embedders that only need DOM extraction, but every official
- # binary must support screenshots, screencasting, and PDF export.
+ - name: Build no-render release binary
+ run: cargo build --release --target ${{ matrix.target }} --no-default-features
+
+ - name: Stage no-render release binary
+ shell: bash
+ run: |
+ BIN_DIR=target/${{ matrix.target }}/release
+ mkdir -p dist/no-render
+ if [ -f "$BIN_DIR/obscura.exe" ]; then
+ cp "$BIN_DIR/obscura.exe" "$BIN_DIR/obscura-worker.exe" dist/no-render/
+ else
+ cp "$BIN_DIR/obscura" "$BIN_DIR/obscura-worker" dist/no-render/
+ fi
+
+ - name: Build no-render stealth release binary
+ run: cargo build --release --target ${{ matrix.target }} --no-default-features --features stealth
+
+ - name: Stage no-render stealth release binary
+ shell: bash
+ run: |
+ BIN_DIR=target/${{ matrix.target }}/release
+ mkdir -p dist/no-render-stealth
+ if [ -f "$BIN_DIR/obscura.exe" ]; then
+ cp "$BIN_DIR/obscura.exe" "$BIN_DIR/obscura-worker.exe" dist/no-render-stealth/
+ else
+ cp "$BIN_DIR/obscura" "$BIN_DIR/obscura-worker" dist/no-render-stealth/
+ fi
+
- name: Build render-enabled release binary
run: cargo build --release --target ${{ matrix.target }} --features render
@@ -91,9 +116,6 @@ jobs:
cp "$BIN_DIR/obscura" "$BIN_DIR/obscura-worker" dist/default/
fi
- # Build and package stealth separately so the advertised wreq/BoringSSL
- # variant cannot silently fall back to a non-stealth transport. It still
- # includes the same rendering surface as the standard archive.
- name: Build render-enabled stealth release binary
run: cargo build --release --target ${{ matrix.target }} --features render,stealth
@@ -112,23 +134,38 @@ jobs:
# Run the V8 path once so a release never ships a binary that crashes at
# isolate init from a mismatched snapshot (issue #290). The data: URL
# keeps it offline. Every target here is native, so the runner can
- # execute both variants it just built.
+ # execute all variants it just built.
shell: bash
run: |
- for VARIANT in default stealth; do
+ for VARIANT in default stealth no-render no-render-stealth; do
BIN=dist/$VARIANT/obscura
[ -f "$BIN.exe" ] && BIN="$BIN.exe"
"$BIN" fetch "data:text/html,<title>ok</title>" --eval "1+1"
+ done
+ for VARIANT in default stealth; do
+ BIN=dist/$VARIANT/obscura
+ [ -f "$BIN.exe" ] && BIN="$BIN.exe"
"$BIN" fetch "data:text/html,<style>body{margin:0;background:%23123456}</style>" --screenshot smoke.png
test -s smoke.png
rm smoke.png
done
+ for VARIANT in no-render no-render-stealth; do
+ BIN=dist/$VARIANT/obscura
+ [ -f "$BIN.exe" ] && BIN="$BIN.exe"
+ if "$BIN" fetch "data:text/html,<title>no-render</title>" --screenshot smoke.png; then
+ echo "$VARIANT unexpectedly supports screenshots" >&2
+ exit 1
+ fi
+ test ! -e smoke.png
+ done
- name: Package (Unix)
if: runner.os != 'Windows'
run: |
tar czf ${{ matrix.name }}.tar.gz -C dist/default obscura obscura-worker
tar czf ${{ matrix.name }}-stealth.tar.gz -C dist/stealth obscura obscura-worker
+ tar czf ${{ matrix.name }}-no-render.tar.gz -C dist/no-render obscura obscura-worker
+ tar czf ${{ matrix.name }}-no-render-stealth.tar.gz -C dist/no-render-stealth obscura obscura-worker
- name: Package (Windows)
if: runner.os == 'Windows'
@@ -137,6 +174,10 @@ jobs:
7z a ../../${{ matrix.name }}.zip obscura.exe obscura-worker.exe
cd ../stealth
7z a ../../${{ matrix.name }}-stealth.zip obscura.exe obscura-worker.exe
+ cd ../no-render
+ 7z a ../../${{ matrix.name }}-no-render.zip obscura.exe obscura-worker.exe
+ cd ../no-render-stealth
+ 7z a ../../${{ matrix.name }}-no-render-stealth.zip obscura.exe obscura-worker.exe
- name: Upload
uses: softprops/action-gh-release@v2
@@ -144,5 +185,9 @@ jobs:
files: |
${{ matrix.name }}.tar.gz
${{ matrix.name }}-stealth.tar.gz
+ ${{ matrix.name }}-no-render.tar.gz
+ ${{ matrix.name }}-no-render-stealth.tar.gz
${{ matrix.name }}.zip
${{ matrix.name }}-stealth.zip
+ ${{ matrix.name }}-no-render.zip
+ ${{ matrix.name }}-no-render-stealth.zip
diff --git a/AGENTS.md b/AGENTS.md
index 56ac3a04..84daf665 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -17,6 +17,10 @@ CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=2 cargo build --release --features render
# Rendering and stealth
CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=2 cargo build --release --features render,stealth
+
+# No rendering, with rustls or stealth
+CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=2 cargo build --release --no-default-features
+CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=2 cargo build --release --no-default-features --features stealth
```
- The first build compiles V8 from source: ~5 minutes and a few GB of disk.
diff --git a/README.md b/README.md
index b118ac2b..aa3517f8 100644
--- a/README.md
+++ b/README.md
@@ -176,10 +176,12 @@ No Chrome, no Node.js, no dependencies. Release archives include both
`obscura` and `obscura-worker`; keep them in the same directory for the
parallel `scrape` command.
-Release archives come in two render-enabled variants. Standard archives use
-rustls. Archives ending in `-stealth.tar.gz` or `-stealth.zip` use the stealth
-wreq/BoringSSL transport for TLS impersonation. Both variants expose the same
-rendering, screenshot, screencast, PDF, CDP, and MCP surfaces.
+| Archive suffix | Rendering | Stealth transport |
+|----------------|-----------|-------------------|
+| none | Yes | No |
+| `-stealth` | Yes | Yes |
+| `-no-render` | No | No |
+| `-no-render-stealth` | No | Yes |
Linux release builds target Ubuntu 22.04 so the downloaded binary remains
usable on common LTS servers with glibc 2.35+.
@@ -203,6 +205,12 @@ cargo build --release --features render
# Rendering and stealth
cargo build --release --features render,stealth
+
+# No rendering
+cargo build --release --no-default-features
+
+# No rendering, with stealth
+cargo build --release --no-default-features --features stealth
```
Requires Rust 1.75+ ([rustup.rs](https://rustup.rs)). First build takes ~5 min (V8 compiles from source, cached after).
diff --git a/docs/Build-from-source.md b/docs/Build-from-source.md
index 8d35c1ad..197dc683 100644
--- a/docs/Build-from-source.md
+++ b/docs/Build-from-source.md
@@ -29,6 +29,16 @@ This is the complete rendering build with the stealth wreq/BoringSSL transport,
TLS fingerprint randomization, browser-identity protections, and tracker
blocklist. See [Configure stealth and proxies](Configure-stealth-and-proxies.md).
+## Without rendering
+
+```bash
+cargo build --release --no-default-features
+cargo build --release --no-default-features --features stealth
+```
+
+The second command keeps stealth while excluding layout, screenshots,
+screencasting, and PDF export.
+
The stealth feature builds BoringSSL and generates Rust bindings. In addition
to the default requirements, install CMake, Clang, and the libclang/LLVM
development libraries. On Ubuntu/Debian:
diff --git a/docs/Configure-stealth-and-proxies.md b/docs/Configure-stealth-and-proxies.md
index caabdeb8..7c77bd8d 100644
--- a/docs/Configure-stealth-and-proxies.md
+++ b/docs/Configure-stealth-and-proxies.md
@@ -15,16 +15,16 @@ What `--stealth` changes:
- Loads a tracker blocklist that drops requests to known analytics and fingerprinting endpoints.
- Bundles webpki roots instead of relying on the system store.
-Requires a build that includes the stealth feature. The Releases page provides
-explicitly named `-stealth` archives alongside the standard archives. Both
-variants include the complete rendering surface; the stealth archives add the
-wreq/BoringSSL transport and browser-identity protections. To build the stealth
-variant yourself:
+Requires a build that includes the stealth feature. Use a `-stealth` archive
+with rendering or a `-no-render-stealth` archive without it. To build the
+rendering variant yourself:
```bash
cargo build --release --features render,stealth
```
+Omit rendering with `cargo build --release --no-default-features --features stealth`.
+
## What stealth handles
- Basic bot detection that checks TLS fingerprint or User-Agent.
diff --git a/docs/Installation.md b/docs/Installation.md
index 0fcf0aa4..e84af453 100644
--- a/docs/Installation.md
+++ b/docs/Installation.md
@@ -62,10 +62,9 @@ See [Build from source](Build-from-source.md).
- `obscura`: CLI and CDP server.
- `obscura-worker`: helper for the parallel `scrape` command. Keep both in the same directory.
-Release archives come in standard and stealth variants. Both include rendering.
-The `-stealth` archives add the wreq/BoringSSL transport and browser-identity
-protections without removing any screenshot, screencast, PDF, CDP, or MCP
-functionality.
+Archive suffixes identify the feature set: no suffix includes rendering,
+`-stealth` includes rendering and stealth, `-no-render` includes neither, and
+`-no-render-stealth` includes stealth without rendering.
## Smoke test
diff --git a/skills/obscura/SKILL.md b/skills/obscura/SKILL.md
index 80c2da73..68633da2 100644
--- a/skills/obscura/SKILL.md
+++ b/skills/obscura/SKILL.md
@@ -26,6 +26,13 @@ browser-identity protections, and tracker blocking:
CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=2 cargo build --release --features render,stealth
```
+Build without rendering when only DOM, extraction, or CDP automation is needed:
+
+```bash
+CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=2 cargo build --release --no-default-features
+CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=2 cargo build --release --no-default-features --features stealth
+```
+
Use `./target/release/obscura` in the commands below when working from source.
## Use stealth