Browse by type
Youtube results page:
Visual parity with chrome in some pages:
Youtube consent:
Wikipedia:
Aurora is an experimental Rust browser-engine prototype. Today it is a crate and a binary for loading HTML from a string, URL, or fixture; running a partial V8-backed DOM/BOM bridge; laying out and painting enough of the document to produce pixels; and showing the result in a native window or writing it to an image file.
It is not a production browser, a spec-complete engine, or a from-scratch implementation of every browser subsystem. Aurora integrates the hard browser parts it needs: V8 for JavaScript, blitz-dom/Stylo for much of DOM/CSS/layout, blitz-paint plus Vello/WGPU for rendering, and reqwest/rustls for network fetching. The Aurora-owned work is the integration layer, runner, capability model, DOM bridge, rendering glue, and the path toward an agent-controlled browser surface.
aurora-engine; import path: aurora.aurora.AURORA_JS_ENGINE values fall back to V8.http://, https://, file://, and data: are supported by the
internal fetch path. file:// access is gated by the runner identity's
ReadWorkspace capability.Browser, BrowserBuilder, Capabilities, Page, and Error.The most important technical debt is that Aurora still has both a legacy DOM / layout path and a Blitz render document. The live renderer is moving toward Blitz as the authoritative rendering path, but the legacy tree is still used for tests, screenshots, JS layout accessors, and some input paths.
use aurora::{Browser, Capabilities};
let browser = Browser::builder()
.capabilities(Capabilities::sandboxed())
.build();
let page = browser.load_html("<h1>Hello, Aurora</h1>");
let png = page.render_png(800, 600).unwrap();
std::fs::write("hello.png", png).unwrap();
Browser::load_html renders in-memory HTML without fetching. Browser::load_url
currently checks the public network capability before accepting a URL. The
binary runner has the fuller identity/capability path for network and local
workspace reads.
| Area | Current implementation |
|---|---|
| Runner | CLI parsing, fixture loading, startup pipeline, script fetching |
| Window | winit event loop, scroll/input handling, browser chrome |
| JavaScript | V8 runtime in src/js_v8, behind the JsRuntime trait |
| DOM bridge | Rust-side node registry plus partial DOM/BOM bindings |
| Rendering document | blitz-dom plus blitz-paint for the primary render path |
| Legacy DOM/layout | Hand-rolled parser, style tree, and layout tree still used by tests and compatibility paths |
| GPU rendering | Vello and WGPU through anyrender_vello |
| Networking | Custom fetch module over reqwest/rustls plus local file/data URL support |
| Media | Optional FFmpeg-backed video frames with media-ffmpeg |
The JavaScript bridge is intentionally partial. It includes enough document, element, node, timer, observer, storage, location, fetch, and XHR surface area for real-world scripts to initialize more often, but many APIs are stubs or compatibility shims rather than browser-correct implementations.
fixtures/<name>/index.html.Aurora does not yet claim:
Aurora builds against patched copies of blitz-dom, blitz-paint and stylo.
Build them once before the first cargo command, and again after pulling a
change to scripts/patches/ (it is a no-op otherwise):
scripts/vendor_patches.py apply
# Bundled demo page
cargo run
# Fetch a URL
cargo run -- https://example.com/
# Run a fixture from fixtures/<name>/index.html
cargo run -- --fixture google-homepage
cargo run -- --fixture aurora-search
cargo run -- --fixture demo
# Local files require explicit workspace-read permission in the runner
cargo run -- --allow-workspace-read file:///absolute/path/to/page.html
# Debug dumps
cargo run -- --fixture google-homepage --debug-dom --debug-style --debug-layout
If no display server is available, the runner skips window creation unless a screenshot path is provided.
# Write one render
AURORA_SCREENSHOT=tests/screenshots/google-homepage.png \
cargo run -- --fixture google-homepage
# Makefile helpers
make screenshot FIXTURE=google-homepage
make mockup-screenshot
make all-renders
The screenshot helpers set viewport and output dimensions through environment
variables such as AURORA_VIEWPORT_WIDTH, AURORA_VIEWPORT_HEIGHT,
AURORA_SCREENSHOT_WIDTH, and AURORA_SCREENSHOT_HEIGHT.
Generated fixture renders live under tests/screenshots/.
AURORA_RECORD=/tmp/aurora-capture cargo run --release -- "https://www.youtube.com/"
Every HTTP(S) exchange is written to the directory: index.jsonl lists the
requests in order (method, URL, status, headers, body path), and bodies/
holds each distinct request and response body once. Recordings can contain
cookies and other server data, so keep them out of the repository.
AURORA_REPLAY=/tmp/aurora-capture cargo run --release -- "https://www.youtube.com/"
Replay answers every request from the recording, matching on method, URL and
request body, and never touches the network. A request that is not in the
recording fails and is printed as a replay miss. Under replay, Math.random uses a
fixed seed and Date starts at the recording's earliest Date response
header. Timers, requestAnimationFrame and Date run on a virtual clock that
moves only when the event loop waits, so two headless replays of a capture fire
the same callbacks in the same order however fast the machine is. In a window
the clock follows real time from the moment the window opens.
make yt-capture # record pages into .captures/ (live network)
make yt-scorecard JSON=score.json # replay them offline and print a table
make yt-scorecard BASELINE=score.json # same, flagging any page that got worse
The pages are listed in scripts/scorecard/pages.txt. Each run replays the
captures with AURORA_REPLAY, so results are identical from run to run, and
scripts/scorecard/probe.js measures the composed tree (shadow roots
included): elements, visible text, result items, distinct and duplicated
videos, items misplaced directly under a shadow root, zero-size items, and page
height. JS errors and replay misses come from the log. Captures hold anonymous visitor
cookies and IP-derived locale, so .captures/ is ignored by git.
The scorecard exits nonzero for crashes, timeouts, launch failures, or missing
or invalid probe metrics, even without a baseline. The table includes each
process's exit status, and --json preserves results from failed runs. With a
baseline, missing pages also fail the comparison. To compare only selected
captures, run scripts/yt_scorecard.py --baseline score.json yt-search;
unknown capture names are rejected before replay starts.
Run the scorecard tooling tests with
python3 -B -m unittest discover -s scripts -p 'test_*.py'.
cargo test
# Visual regression tests
make check-snapshots
# Refresh visual snapshots
make update-snapshots
docker build -t aurora .
docker run --rm aurora --fixture google-homepage
mkdir -p /tmp/aurora-renders
docker run --rm \
-e AURORA_SCREENSHOT=/out/google-homepage.png \
-v /tmp/aurora-renders:/out \
aurora --fixture google-homepage
The image copies the release binary plus fixtures/ and fonts/.
Aurora is being shaped toward a capability-gated, user-owned browser surface. The longer-term direction includes DID-native identity, AT Protocol integration, and stronger explicit authority boundaries for local and remote resources. Those are goals, not completed product claims.
The near-term work is narrower:
Mozilla Public License 2.0, Copyright 2024-2026 Aurora Contributors
browse all types & interfaces →
$ claude mcp add Aurora \
-- python -m otcore.mcp_server <graph>