Nacre/docs/HANDOFF.md
astar76 e8167c3f4a Nacre on Servo: first complete, reviewed, not yet built version
Everything in Rust on Servo 0.7 (trimmed: no WebXR, WebGPU, multiprocess):
tabs and windows, address bar with suggestions, history, bookmarks and
reading list, downloads with resume and external download managers,
encrypted password vault with autofill, ad blocker (adblock-rust, 22 lists),
VPN through Tor or a proxy and secure DNS via a local bridge proxy,
picture in picture, Discord Rich Presence, media player and visualizer,
spell check, site apps, user scripts and styles, import from other
browsers, gamepads, Web Bluetooth, and every setting of the original Nacre
in a plain egui interface.

Not compiled yet; docs/HANDOFF.md has the first build checklist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 06:08:36 -06:00

1.9 KiB

Handoff: where the from-scratch Nacre stands

Read docs/DESIGN.md first (rules, layout, the Servo 0.7 API cheat sheet), then docs/FEATURES.md (every feature and where it lives) and docs/REVIEW.md (known gaps and things to check at the first build).

User rules: Servo engine, all Rust, plain UI for now, nothing from the original dropped (gamepad and Web Bluetooth stay in), no builds until the code was reviewed. Build with nice cargo build --release -j 2, never together with the test suite.

State (2026-11-11)

  • All modules written (~19k lines): storage, networking (bridge proxy for VPN/secure DNS, Tor, downloads, download managers), ad blocker, Discord, media, spell check, importer, updates, keys, Servo glue (hub.rs, window.rs, app.rs, actions.rs) and the plain egui UI (chrome, menus, dialogs, every nacre:// page).
  • Review passes done without compiling: API signatures checked against the crate sources in ~/.cargo/registry, names cross-checked between modules (commands, UI state, shared fields, crate:: paths), every setting checked to be read by the code. Bugs found and fixed are in git history.
  • Never compiled. Expect a round of compile errors at the first build (type inference, borrow checker, small API mismatches); fix them in place, don't restructure.

First build checklist

  1. nice cargo build --release -j 2 (first build takes hours: Servo, SpiderMonkey, WebRender).
  2. Fix compile errors.
  3. Run cargo test separately (unit tests in util, settings, history, bookmarks, permissions, vault, dns, bridge (loopback only), download, adblock, keys, scripts, updates, inject, hub, theme).
  4. Smoke test offscreen (see the user's CLAUDE.md): page renders, tabs switch, settings open.
  5. Go through docs/REVIEW.md, especially "several painters on one GL context".

Not included (candidates after the first build)

Reader mode, translate, split view (the per-tab painters make it possible), MPRIS media keys, real gamepad rumble.