Roves architecture and code inventory
Which parts come from Servo, what Roves implements, and where libraries do the work.
Previous Shell
This inventory describes the previous Servo-based Shell. Since v0.9.0 the desktop runtime is the Roves player: Chromium through CEF renders and runs the game, SDL3 provides the window and input, wgpu presents the frames, and Roves adds the startup screen, project icon, player profile, host API for roves-api, Steam support and the optional local MCP bridge.
Roves is a customized, vendored copy of Servo. Most browser-engine functionality—DOM, CSS, layout, networking, WebGL and WebGPU—comes from Servo and its dependency libraries. Roves adds the application shell and the glue that turns the engine into a runtime for games.
Main Roves-owned areas
- JavaScript on V8:
roves-jsadapts the JavaScript API Servo's script code expects to V8;roves-v8holds the process-wide V8 setup (platform, foreground tasks, a few V8 APIs the Rust bindings lack). Servo's WebIDL bindings run unchanged on top ofroves-js. This is the largest Roves-owned code area and the hardest one to replace with a small standalone library. - Desktop shell: SDL3 supplies windowing and input events. Roves connects those events to Servo, and builds the small shell UI with egui and AccessKit.
- Game-facing native APIs:
roves:,saves:andsteam:URL schemes expose app commands, save files, Steam Cloud and achievements to ordinary page JavaScript. Servo handles the protocol machinery; Roves defines the commands and their behavior. - Game content packaging: tar and zstd libraries provide archive and compression primitives. Roves defines the boot set, archive layout, manifest and on-demand extraction.
- Bundle creation: Roves'
mach bundlecode assembles platform bundles and handles game content, icons and Steam libraries. A packaging library may cover standard installers while leaving some Roves-specific integration in place.
Roves also integrates persistent HTTP and WebRender shader caches, uses the keycode crate for
the DOM keyboard code table, and delegates mobile rendering to Android WebView and WKWebView.
Looking for code to simplify
Potential areas to assess include standard desktop installer generation, the remaining egui shell UI, the custom game-content archive policy and SDL-to-DOM input conversion. These need different tradeoffs: an external library can cover standard packaging or a low-level primitive, while the Roves-specific API or policy may still need glue.
The V8 adapter is large, but reducing it is an architectural migration rather than a local dependency swap. Some functionality has already been removed instead of replaced: the current shell no longer includes the former Servo devtools or WebDriver implementations.
The maintainer inventory, with approximate line counts and additional detail, is in the Roves source repository.
V8 validation
The V8 workflow validates smoke results as well as building the engine. Failed assertions, incomplete or inconsistent totals, unexpected skips, crashes, and missing Window identity, CSP or navigation checks fail the job. A browser that stays open after completing all checks may be stopped by the runner timeout; a timeout before the results are complete fails.
Normal mode requires the Wasm checks to run. JIT-less mode explicitly skips them because the
current prebuilt V8 has no Wasm interpreter. Headless CI may additionally allow the named
audio-output and unavailable-GPU checks to skip; a GPU adapter request that hangs is a failure.
Local runs reject device skips unless V8_SMOKE_ALLOW_MISSING_DEVICES=1 is set. Select the
engine mode with V8_SMOKE_MODE=normal or V8_SMOKE_MODE=jitless.
Static module loading is being updated to return control while external sources are pending and between cached sources. The change is still under Rust and browser CI; compiling a source and linking the full module graph remain synchronous, so it is not a responsiveness guarantee. The headless single-document smoke is being updated to require one diagnostic log entry for blocked full navigation, reload and iframe operations; the browser CI has not yet run this assertion. A real trusted click opening the system browser and the development notice still require desktop verification.
The current migration status and open browser-proxy checks are tracked in the engine migration plan.