Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

Update README

ldm00e6cbfdd8c27
diff --git a/README.md b/README.md
index 86213a704..5af89a70d 100644
--- a/README.md
+++ b/README.md
@@ -9,119 +9,110 @@
<h1 align="center">Moli</h1>
<p align="center">
- <strong>A browser engine built for AI agents: DOM-first, pixels on demand.</strong>
+ <strong>A browser engine built for AI agents.</strong>
</p>
<p align="center">
Real JavaScript, DOM, and browser APIs · One-shot, non-retained layout and CPU rendering ·
- CLI, MCP, CDP, WebDriver Classic, and WebDriver BiDi
+ CLI, CDP, WebDriver Classic, and WebDriver BiDi
</p>
-Moli is a headless browser built from the ground up for web extraction,
-automation, and agent workloads. It runs real page JavaScript on V8, maintains
-a native DOM and CSS state, implements browser storage and networking, and
-exposes the page through structured interfaces before asking an agent to reason
-over pixels.
+Moli is a headless browser built from the ground up in Rust for AI agent.
+It runs real page JavaScript on V8, maintains a native DOM and CSS
+state, and handles storage and networking — exposing the page through
+structured data first, and pixels only when you ask for them.
-The central idea is simple: **DOM and structured page data are available by
-default; pixels are rendered only when requested.** Reading a document,
-extracting Markdown, inspecting an accessibility tree, or executing JavaScript
-does not need to keep a GUI browser's layout, paint, and compositor machinery
-alive. When geometry or pixels do matter, Moli constructs a fresh layout pass
-and can produce a software-rendered frame on demand.
+**DOM and structured page data are on by default; pixels are opt-in.**
+Reading a document, extracting Markdown, walking an accessibility tree, or
+running JavaScript doesn't require keeping a GUI browser's layout, paint, and
+compositor machinery alive. When geometry or pixels do matter, Moli runs a
+fresh layout pass and renders a frame on demand.
## Why Moli
-Conventional browsers assume that every loaded page may need to be displayed,
-animated, or scrolled at any moment. They therefore keep visual machinery ready
-for the next frame—even when an automation task only wants a title, a list of
-links, or the result of a JavaScript expression.
+Conventional browsers assume any loaded page might need to be displayed,
+animated, or scrolled at any moment, so they keep visual machinery warm at all
+times — even when an automation task just wants a title, a list of links, or
+a JavaScript result.
-An AI agent usually works differently:
+Agents typically work in three stages:
-1. **Understand the page.** Read DOM structure, text, links, forms, network
- responses, storage, and JavaScript state.
-2. **Act on the page.** Use DOM-backed controls and browser APIs to fill,
- select, submit, navigate, or execute code.
-3. **Look at the page when necessary.** Ask for geometry when spatial position
- matters, or pixels when a screenshot is the best source of truth.
+1. **Understand the page** — DOM, text, links, forms, network responses,
+ storage, JavaScript state.
+2. **Act on the page** — fill, select, submit, navigate, or execute code via
+ DOM-backed controls.
+3. **Look at the page, when needed** — geometry for spatial reasoning, pixels
+ for a screenshot.
-Moli performs only the visual work required by the current request:
+Moli only does the visual work a given request actually needs:
-| Agent request | Work performed by Moli |
+| Agent request | What Moli does |
| --- | --- |
-| Extract HTML or Markdown, query the DOM, run JavaScript, or inspect network and storage | Use the browser runtime directly; do not run real layout or paint |
-| Read an element box, hit-test a point, or send coordinate input | Build one complete layout pass and keep only the latest owned geometry snapshot |
-| Capture a screenshot or refresh a screencast | Rebuild from the current DOM and style, software-render one fresh frame, then discard pass-local visual state |
+| Extract HTML/Markdown, query the DOM, run JS, inspect network/storage | Reads the browser runtime directly — no layout or paint |
+| Read an element's box, hit-test a point, send coordinate input | Runs one layout pass, keeps only the latest geometry snapshot |
+| Capture a screenshot or refresh a screencast | Rebuilds from current DOM/style, renders one fresh frame, discards it |
-This is not a browser with rendering removed. Moli still has a real DOM, V8,
-CSS state, layout, text shaping, hit-testing, and software paint. The difference
-is when those systems run and how long their intermediate state survives: DOM
-and browser state are the default interface; layout and pixels are paid for
-only when the agent asks for them.
+This isn't a browser with rendering stripped out — Moli still has a real DOM,
+V8, CSS, layout, text shaping, hit-testing, and software paint. What changes
+is *when* those systems run and how long their state sticks around: DOM state
+is the default; layout and pixels are paid for only on request.
That cost model matters for high-density crawling, browser-use agents,
-retrieval pipelines, evaluation environments, and RL workloads, where startup
-time, idle memory, and per-page resident state determine how many browser
-sessions a machine can support.
+retrieval pipelines, eval environments, and RL workloads — where startup time,
+idle memory, and per-page footprint decide how many sessions a machine can run.
## On-demand, non-retained rendering
-**Moli does not keep a visual world alive just in case.** The Native DOM and
-Stylo state are the single source of truth. DOM and structured-data operations
-read that state directly; layout and pixels are constructed only when an
-operation actually needs them.
-
-```mermaid
-flowchart LR
- source["Native DOM + Stylo<br/>single source of truth"]
- source --> semantic["DOM-first path<br/>HTML · Markdown · JavaScript<br/>no real layout or paint"]
- source -->|geometry or visual demand| boxes["Fresh BoxBuilder"]
- boxes --> layout["Taffy layout<br/>Parley text"]
- layout --> projection["Immutable output projection"]
- projection -->|geometry| geometry["Latest owned LayoutPassOutput<br/>hit-test · rendered text"]
- projection -->|screenshot or screencast| paint["Fresh PaintSnapshot<br/>CPU software raster"]
- projection -. pass ends .-> drop["Drop box tree, layout world,<br/>text and paint working state"]
-```
+Moli never keeps a visual world alive "just in case." Native DOM and Stylo
+state are the single source of truth; layout and pixels are built only when
+an operation actually needs them.
+
+<p align="center">
+ <a href="assets/moli_ondemand_rendering_flow.svg">
+ <img
+ src="assets/moli_ondemand_rendering_flow.svg"
+ alt="How Moli handles a request: DOM-first by default, with layout and paint built fresh only on demand"
+ width="680"
+ />
+ </a>
+</p>
-The default server uses `LayoutPolicy::Mock` and never constructs the real
-layout or paint pipeline. `--layout` selects `LayoutPolicy::OnDemand`: it makes
-real geometry, hit-testing, coordinate input, screenshots, and screencast
-available, but it does **not** turn Moli into a continuously rendering browser.
+By default, Moli uses `LayoutPolicy::Mock` and never touches the real layout
+or paint pipeline. `--layout` switches to `LayoutPolicy::OnDemand`, unlocking
+real geometry, hit-testing, coordinate input, screenshots, and screencast —
+but it still isn't a continuously rendering browser.
-A cold geometry request rebuilds layout once and keeps only the latest owned
-geometry snapshot. Ordinary geometry reads may reuse that sampled output;
-screenshot and screencast refreshes rebuild from the current DOM and style and
-produce a fresh frame. Even screencast is a low-frequency repetition of the
-same one-shot pipeline, not a retained 60 FPS compositor.
+A cold geometry request rebuilds layout once and keeps only the latest
+snapshot. Later geometry reads may reuse that snapshot; screenshots and
+screencast frames always rebuild fresh from the current DOM and style. Even
+screencast is a low-frequency repeat of the same one-shot pipeline, not a
+retained 60 FPS compositor.
-As a result, extraction, DOM inspection, JavaScript execution, and most agent
-actions avoid both the CPU cost of producing unused frames and the resident
-memory cost of retained layout, paint, and compositor state.
+The payoff: extraction, DOM inspection, JS execution, and most agent actions
+skip both the CPU cost of rendering unused frames and the memory cost of
+retained layout/paint/compositor state.
## What works today
-- **Real web runtime.** Streaming HTML parsing, native DOM ownership, V8-backed
- JavaScript, modules, timers, microtasks, events, iframe and worker surfaces,
- CSS cascade/computed style, Fetch/XHR, WebSocket, cookies, WebCrypto, and
- profile-scoped storage including localStorage, IndexedDB, and OPFS.
-- **Extraction-first outputs.** HTML, Markdown, JSON, text semantic trees,
+- **Real web runtime** — streaming HTML parsing, native DOM, V8 JavaScript,
+ modules/timers/microtasks/events, iframes and workers, CSS cascade,
+ Fetch/XHR/WebSocket, cookies, WebCrypto, and profile-scoped storage
+ (localStorage, IndexedDB, OPFS).
+- **Extraction-first outputs** — HTML, Markdown, JSON, semantic text trees,
frame-aware serialization, selector/script/response waits, and network
- tracing are available directly from the CLI.
-- **Agent-native MCP server.** The stdio server exposes navigation, Markdown,
- links, JavaScript evaluation, semantic trees, interactive-element discovery,
- node inspection, form actions, keyboard input, hover, and scrolling.
-- **One automation binary.** CDP, WebDriver Classic, and WebDriver BiDi reuse
- the same browser kernel and typed scheduler model. There is no separate
- ChromeDriver, geckodriver, or browser installation to coordinate.
-- **Real visual surfaces on demand.** With `--layout`, Moli uses fresh box
- construction, Taffy layout, Parley text layout, layout-backed hit-testing and
- input, current-viewport screenshots, and low-frequency DevTools screencast
- frames rendered on the CPU.
-- **Operational controls.** Profiles, cookies, HTTP cache, proxies, resource
+ tracing, all from the CLI.
+- **Agent-native MCP server** — navigation, Markdown, links, JS evaluation,
+ semantic trees, interactive-element discovery, node inspection, form
+ actions, keyboard input, hover, and scrolling.
+- **One automation binary** — CDP, WebDriver Classic, and WebDriver BiDi share
+ the same kernel and scheduler. No separate ChromeDriver, geckodriver, or
+ browser install required.
+- **Real visual surfaces on demand** — with `--layout`: box construction,
+ Taffy layout, Parley text layout, layout-backed hit-testing/input, viewport
+ screenshots, and low-frequency CPU-rendered DevTools screencast frames.
+- **Operational controls** — profiles, cookies, HTTP cache, proxies, resource
families, connection limits, timeouts, private-network policy, user-agent
- overrides, structured logging, and network diagnostics are explicit runtime
- options.
+ overrides, structured logging, and network diagnostics.
<p align="center">
<a href="assets/moli-devtools-rust-lang.png">
@@ -139,8 +130,7 @@ memory cost of retained layout, paint, and compositor state.
## Quick start
-The repository pins its Rust toolchain. Build the current development binary
-from the workspace root:
+Build from the workspace root:
```bash
cargo build --release -p moli
@@ -148,8 +138,7 @@ cargo build --release -p moli
### Extract a page
-Return the rendered document as Markdown after Moli's default completion
-strategy:
+Render as Markdown, using Moli's default completion strategy:
```bash
./target/release/moli fetch \
@@ -158,7 +147,7 @@ strategy:
https://example.com
```
-Return a compact, model-friendly semantic tree instead:
+Or return a compact, model-friendly semantic tree:
```bash
./target/release/moli fetch \
@@ -167,7 +156,7 @@ Return a compact, model-friendly semantic tree instead:
https://example.com
```
-`fetch --help` lists the available output formats, lifecycle waits, response
+Run `fetch --help` for the full list of output formats, lifecycle/response
waits, profiles, proxy controls, resource policies, and tracing options.
### Start the automation server
@@ -183,9 +172,8 @@ waits, profiles, proxy controls, resource policies, and tracing options.
./target/release/moli serve --layout --resource
```
-The same endpoint serves CDP discovery/WebSocket connections, WebDriver
-Classic HTTP routes, and WebDriver BiDi connections. Playwright can connect to
-the CDP endpoint directly:
+One endpoint serves CDP, WebDriver Classic, and WebDriver BiDi. Playwright can
+connect directly over CDP:
```js
import { chromium } from "playwright";
@@ -206,55 +194,50 @@ Moli keeps expensive browser work explicit rather than silently enabling it:
| Mode or option | Behavior |
| --- | --- |
-| Default | `LayoutPolicy::Mock`; deterministic compatibility geometry, no real layout or paint |
-| `--layout` | `LayoutPolicy::OnDemand`; real layout, geometry, hit-testing, coordinate input, screenshots, and screencast |
+| Default | `LayoutPolicy::Mock` — deterministic compatibility geometry, no real layout or paint |
+| `--layout` | `LayoutPolicy::OnDemand` — real layout, geometry, hit-testing, coordinate input, screenshots, screencast |
| `--resource` | Fetch all optional visual/media resource families |
-| `--image`, `--font`, `--audio`, `--video`, `--media`, `--text-track` | Enable only the named optional resource family |
-| `--profile-dir`, `--http-cache-dir`, `--cookie-file` | Opt into the persistence boundary required by the workload |
+| `--image`, `--font`, `--audio`, `--video`, `--media`, `--text-track` | Enable one specific optional resource family |
+| `--profile-dir`, `--http-cache-dir`, `--cookie-file` | Opt into whatever persistence the workload needs |
-Layout is sampled rather than continuously retained. A cold geometry demand
-builds a complete pass from the current Native DOM and Stylo state, and Moli
-keeps only the latest owned `LayoutPassOutput`. Ordinary geometry getters may
-reuse that sampled output after later mutations; screenshot and screencast
-refreshes always produce a fresh frame.
+Layout is sampled, not continuously retained: a cold geometry request builds
+one full pass from the current DOM/style and keeps only the latest
+`LayoutPassOutput`. Ordinary geometry reads may reuse that snapshot after
+later mutations; screenshots and screencast always rebuild fresh.
## Architecture
-Moli is a browser kernel, not a Chromium wrapper. Its public interfaces converge
-on one Rust runtime and one set of ownership/lifecycle rules:
-
-The implementation deliberately builds on strong Rust and browser-engine
-components:
+Moli is a browser kernel, not a Chromium wrapper — one Rust runtime with one
+set of ownership and lifecycle rules, built on:
-- `libcurl` for the network transport and multi-request runtime;
-- `html5ever` for HTML parsing;
-- `rusty_v8` and V8 for JavaScript execution;
-- Servo/Stylo foundations for selectors, cascade, and computed style;
-- Taffy and Parley for box and text layout;
-- AnyRender/Vello CPU, `usvg`, and the Rust image ecosystem for software
- rendering.
+- `libcurl` — network transport and multi-request runtime
+- `html5ever` — HTML parsing
+- `rusty_v8` / V8 — JavaScript execution
+- Servo/Stylo — selectors, cascade, computed style
+- Taffy + Parley — box and text layout
+- AnyRender/Vello CPU, `usvg`, and the Rust image ecosystem — software rendering
-Native DOM and Moli's Stylo integration remain the unique document/style
-owners. Every real refresh rebuilds layout from that source of truth, projects
-the result into DOM-neutral immutable data, and destroys pass-local layout and
-paint state when the operation completes. There is no incremental layout tree,
-damage graph, retained display list, GPU compositor, or persistent window.
+Native DOM and Stylo integration are the only document/style owners. Every
+real refresh rebuilds layout from that source of truth, projects the result
+into DOM-neutral immutable data, then discards the pass-local layout and paint
+state. There's no incremental layout tree, damage graph, retained display
+list, GPU compositor, or persistent window.
-For the subsystem ownership map, see
-[workspace-crate-map-current.md](docs/workspace-crate-map-current.md).
+See [workspace-crate-map-current.md](docs/workspace-crate-map-current.md) for
+the subsystem ownership map.
## Evidence
-Moli is exercised against real sites, real automation clients, focused
-Chromium/WPT behavior, and a large nextest regression suite. Two recorded
-snapshots illustrate the intended operating point.
+Two recorded snapshots illustrate Moli's intended operating point, against
+real sites, real automation clients, focused Chromium/WPT behavior, and a
+large nextest regression suite.
### Mixed public-web crawl
-This run used 192 public URLs across major Chinese and international sites. A
-page counted as successful only when it produced useful post-JavaScript
-content; an HTTP 200, challenge page, login wall, empty response, or app shell
-did not pass.
+192 public URLs across major Chinese and international sites. A page only
+counted as successful if it produced useful post-JavaScript content — an
+HTTP 200, challenge page, login wall, empty response, or app shell didn't
+count.
| Engine | Useful pages | Success rate | Median time | Median RSS |
| --- | ---: | ---: | ---: | ---: |
@@ -272,30 +255,29 @@ did not pass.
| Peak PSS | 102.46 MiB | 348.82 MiB |
| Peak processes / threads | 1 / 24 | 11 / 123 |
-Across the current WPT selection used to guard Moli's agent-browser scope, one
-complete run recorded **1.612 million passing tests**.
+Against the current WPT selection guarding Moli's agent-browser scope, one
+full run recorded **1.612 million passing tests**.
## Project scope
-Moli is in active development. It is designed to be a practical agent browser,
-not a drop-in replacement for every Chrome feature.
+Moli is in active development — a practical agent browser, not a drop-in
+replacement for every Chrome feature.
-Current intentional boundaries include:
+Current intentional boundaries:
-- no GUI browser, persistent window, GPU compositor, or retained multi-frame
- paint architecture;
-- no promise of Chrome pixel parity or high-fidelity Canvas, WebGL, and media
- playback;
-- selected CDP, WebDriver Classic, and WebDriver BiDi coverage rather than
- complete protocol parity;
-- current-viewport software screenshots under `--layout`, without treating PDF
- generation or every Chrome screenshot mode as implemented;
-- resource loading, geometry freshness, and visual cost remain explicit policy
+- No GUI browser, persistent window, GPU compositor, or retained multi-frame
+ paint architecture.
+- No promise of Chrome pixel parity or high-fidelity Canvas/WebGL/media
+ playback.
+- Selected CDP, WebDriver Classic, and WebDriver BiDi coverage, not full
+ protocol parity.
+- Current-viewport software screenshots under `--layout` — no PDF generation
+ and not every Chrome screenshot mode.
+- Resource loading, geometry freshness, and visual cost stay explicit policy
choices rather than always-on behavior.
-Unsupported protocol paths should fail explicitly. They must not silently
-pretend that a browser action, event, network observation, or visual result
-occurred.
+Unsupported protocol paths fail explicitly — Moli never pretends a browser
+action, event, network observation, or visual result occurred when it didn't.
## License
diff --git a/assets/moli_ondemand_rendering_flow.svg b/assets/moli_ondemand_rendering_flow.svg
new file mode 100644
index 000000000..e12ea2598
--- /dev/null
+++ b/assets/moli_ondemand_rendering_flow.svg
@@ -0,0 +1,63 @@
+<svg width="100%" viewBox="0 0 680 480" role="img" style="" xmlns="http://www.w3.org/2000/svg">
+<title style="fill:rgb(0, 0, 0);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto">How Moli handles a request: DOM-first by default, layout and paint built fresh only on demand</title>
+<desc style="fill:rgb(0, 0, 0);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto">Native DOM and Stylo state is the single source of truth. Most requests take the DOM-first path directly, with no layout or paint. Requests that need geometry or pixels trigger an on-demand layout and paint pass, which produces a geometry snapshot or a screenshot, then that pass-local state is dropped.</desc>
+<defs>
+ <marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
+ <path d="M2 1L8 5L2 9" fill="none" stroke="context-stroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
+ </marker>
+</defs>
+
+
+<g style="fill:rgb(0, 0, 0);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto">
+ <rect x="210" y="40" width="260" height="56" rx="8" stroke-width="0.5" style="fill:rgb(241, 239, 232);stroke:rgb(95, 94, 90);color:rgb(11, 11, 11);stroke-width:0.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+ <text x="340" y="60" text-anchor="middle" dominant-baseline="central" style="fill:rgb(68, 68, 65);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:14px;font-weight:500;text-anchor:middle;dominant-baseline:central">Native DOM + Stylo</text>
+ <text x="340" y="78" text-anchor="middle" dominant-baseline="central" style="fill:rgb(95, 94, 90);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:12px;font-weight:400;text-anchor:middle;dominant-baseline:central">Single source of truth</text>
+</g>
+
+
+<line x1="300" y1="96" x2="190" y2="150" marker-end="url(#arrow)" style="fill:none;stroke:rgb(137, 135, 129);color:rgb(11, 11, 11);stroke-width:1.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+<line x1="380" y1="96" x2="490" y2="150" marker-end="url(#arrow)" style="fill:none;stroke:rgb(137, 135, 129);color:rgb(11, 11, 11);stroke-width:1.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+
+
+<g style="fill:rgb(0, 0, 0);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto">
+ <rect x="60" y="150" width="260" height="56" rx="8" stroke-width="0.5" style="fill:rgb(225, 245, 238);stroke:rgb(15, 110, 86);color:rgb(11, 11, 11);stroke-width:0.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+ <text x="190" y="170" text-anchor="middle" dominant-baseline="central" style="fill:rgb(8, 80, 65);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:14px;font-weight:500;text-anchor:middle;dominant-baseline:central">DOM-first path</text>
+ <text x="190" y="188" text-anchor="middle" dominant-baseline="central" style="fill:rgb(15, 110, 86);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:12px;font-weight:400;text-anchor:middle;dominant-baseline:central">No layout or paint needed</text>
+</g>
+
+
+<g style="fill:rgb(0, 0, 0);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto">
+ <rect x="360" y="150" width="260" height="56" rx="8" stroke-width="0.5" style="fill:rgb(250, 238, 218);stroke:rgb(133, 79, 11);color:rgb(11, 11, 11);stroke-width:0.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+ <text x="490" y="170" text-anchor="middle" dominant-baseline="central" style="fill:rgb(99, 56, 6);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:14px;font-weight:500;text-anchor:middle;dominant-baseline:central">Layout &amp; paint, on demand</text>
+ <text x="490" y="188" text-anchor="middle" dominant-baseline="central" style="fill:rgb(133, 79, 11);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:12px;font-weight:400;text-anchor:middle;dominant-baseline:central">Freshly built for this request</text>
+</g>
+
+
+<line x1="450" y1="206" x2="410" y2="260" marker-end="url(#arrow)" style="fill:none;stroke:rgb(137, 135, 129);color:rgb(11, 11, 11);stroke-width:1.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+<line x1="530" y1="206" x2="570" y2="260" marker-end="url(#arrow)" style="fill:none;stroke:rgb(137, 135, 129);color:rgb(11, 11, 11);stroke-width:1.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+
+
+<g style="fill:rgb(0, 0, 0);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto">
+ <rect x="340" y="260" width="140" height="56" rx="8" stroke-width="0.5" style="fill:rgb(230, 241, 251);stroke:rgb(24, 95, 165);color:rgb(11, 11, 11);stroke-width:0.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+ <text x="410" y="280" text-anchor="middle" dominant-baseline="central" style="fill:rgb(12, 68, 124);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:14px;font-weight:500;text-anchor:middle;dominant-baseline:central">Geometry</text>
+ <text x="410" y="298" text-anchor="middle" dominant-baseline="central" style="fill:rgb(24, 95, 165);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:12px;font-weight:400;text-anchor:middle;dominant-baseline:central">hit-test, input</text>
+</g>
+
+<g style="fill:rgb(0, 0, 0);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto">
+ <rect x="500" y="260" width="140" height="56" rx="8" stroke-width="0.5" style="fill:rgb(250, 236, 231);stroke:rgb(153, 60, 29);color:rgb(11, 11, 11);stroke-width:0.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+ <text x="570" y="280" text-anchor="middle" dominant-baseline="central" style="fill:rgb(113, 43, 19);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:14px;font-weight:500;text-anchor:middle;dominant-baseline:central">Screenshot</text>
+ <text x="570" y="298" text-anchor="middle" dominant-baseline="central" style="fill:rgb(153, 60, 29);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:12px;font-weight:400;text-anchor:middle;dominant-baseline:central">fresh CPU frame</text>
+</g>
+
+
+<line x1="410" y1="316" x2="430" y2="376" marker-end="url(#arrow)" style="fill:none;stroke:rgb(137, 135, 129);color:rgb(11, 11, 11);stroke-width:1.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+<line x1="570" y1="316" x2="550" y2="376" marker-end="url(#arrow)" style="fill:none;stroke:rgb(137, 135, 129);color:rgb(11, 11, 11);stroke-width:1.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+
+
+<g style="fill:rgb(0, 0, 0);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto">
+ <rect x="360" y="376" width="260" height="56" rx="8" stroke-width="0.5" style="fill:rgb(241, 239, 232);stroke:rgb(95, 94, 90);color:rgb(11, 11, 11);stroke-width:0.5px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:16px;font-weight:400;text-anchor:start;dominant-baseline:auto"/>
+ <text x="490" y="396" text-anchor="middle" dominant-baseline="central" style="fill:rgb(68, 68, 65);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:14px;font-weight:500;text-anchor:middle;dominant-baseline:central">Layout &amp; paint state dropped</text>
+ <text x="490" y="414" text-anchor="middle" dominant-baseline="central" style="fill:rgb(95, 94, 90);stroke:none;color:rgb(11, 11, 11);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;opacity:1;font-family:anthropic-sans, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, sans-serif;font-size:12px;font-weight:400;text-anchor:middle;dominant-baseline:central">Kept only until the next request</text>
+</g>
+
+</svg>
\ No newline at end of file