Moli, the open-source headless browser that Lexmount has been building since August, hit 17,973 stars this week and a v1.1.17 release tag on October 12. The interesting claim is not “we built a Chromium wrapper in Rust” — it is that Moli’s maintainers decided real layout is a one-shot frozen snapshot, not a retained display list, and built the entire binary around that decision. The benchmark numbers, when I dug into the methodology doc on the companion lexmount/Lexbench-Headless-Browser repo, held up. Moli 0.1.1 passes 81.88% of the 1,308-task comparable-task subset, sits at 92 MiB peak memory per task (Chrome: 697 MiB, about 13%), and uses roughly 15% of Chrome’s CPU time at the median. The cost of that 13% number is the design.
The whole design hangs on a single line in the README: “Moli treats the native DOM and style state as the single source of truth, triggering layout or software paint only for operations that genuinely require them.” The table underneath lists the four cases the maintainers care about: extracting HTML/Markdown, querying the DOM, running JS, inspecting network/storage — all read from runtime state without ever invoking layout or paint. Reading an element’s box, hit-testing coordinates, or sending coordinate input — these run one layout calculation and retain only the latest frozen layout tree. Screenshots rebuild and replace the frozen tree, render a fresh frame, and discard the paint state. Screencast polls compare a generation token; unchanged state emits nothing, changed state rebuilds and emits one frame.
What this means in practice: there is no incrementally maintained layout tree, no damage graph, no retained display list, no GPU compositor, and no persistent window. Every real refresh builds a temporary working tree from the DOM/Stylo source, optionally produces one fresh paint snapshot, freezes the canonical box/fragment geometry into a compact FrozenLayoutTree, and discards the working tree, style borrows, layout caches, diagnostics, and paint state. Screencast tokens carry generation metadata, never layout data. Hit-test candidates are derived from the frozen tree.
That FrozenLayoutTree is the load-bearing idea. Once you decide layout is an immutable snapshot derived from the current DOM/style, you can throw away everything that Chromium keeps around between frames: the dirty-region tracking, the retained display lists, the compositor’s frame queue, the GPU process. The cost-control table in the README documents this directly: the default LayoutPolicy::Mock produces deterministic geometry with no real layout, --layout flips it to OnDemand for real geometry and screenshots, --resource adds optional image/font/audio/video/media/text-track fetches. None of those are the default. The default is “give me the DOM and a box if I ask for one.”
The stack
Moli is a standalone browser kernel, not a Chromium wrapper. The dependencies tell the story:
libcurlfor network transport and multi-request runtimehtml5everfor HTML parsingrusty_v8/ V8 for JavaScript- Servo/Stylo for selectors, cascade, computed style
- Taffy for box layout, Parley for text layout
- AnyRender/Vello CPU,
usvg, and the Rust image ecosystem for software rendering
Three of those are pulled in from the Servo project (which has been quietly shipping components in 2026 even while the integrated browser stalled). Taffy and Parley are the same crates the Rust GUI ecosystem has been converging on. The result is a browser that has nothing in common with Chromium’s architecture except the standards it implements.
The CLI exposes the on-demand design directly. moli fetch --dump markdown --wait-until done https://example.com renders the page to Markdown with the default completion strategy — no layout, no paint, just DOM traversal and serialization. moli fetch --dump semantic_tree_text --wait-selector body https://example.com returns a compact, model-friendly semantic tree. moli fetch --layout --dump screenshot https://example.com > page.png is the one that flips on OnDemand layout and writes a viewport PNG. Screenshots, full-document PNGs, and paginated PDFs all require --layout. The README is blunt about this: “Expensive browser operations in Moli require an explicit opt-in and are never enabled by default.”
The moli serve command is where the agent-browser use case actually lives. It runs an automation server on the default :9222 endpoint and serves three protocols on the same kernel and scheduler: CDP, WebDriver Classic, and WebDriver BiDi. There is no separate ChromeDriver, geckodriver, or browser installation required. Playwright connects over CDP in four lines:
import { chromium } from "playwright";
const browser = await chromium.connectOverCDP("http://127.0.0.1:9222");
const context = browser.contexts()[0];
const page = context.pages()[0] ?? await context.newPage();
await page.goto("https://example.com");
console.log(await page.locator("body").innerText());
await browser.close();
The CDP-ready time and the episode-active p50 in the benchmark table are the numbers that matter for agent loops: 34.85 ms CDP ready, 33.40 ms episode active p50 for Moli versus 169.37 ms / 57.13 ms for Chromium on the same workload. The 5× faster CDP-ready time is exactly the saving a browser-use agent pays on every cold start.
The benchmark, properly read
The headline number — 81.88% on 1,071 of 1,308 comparable tasks — comes from the companion lexmount/Lexbench-Headless-Browser corpus, which is a 1,928-task suite covering raw CDP, 13 pinned automation tools (including Playwright, Puppeteer, and Selenium), and web-platform semantics. To include Kitesurf (only available as a remote endpoint), the chart uses the 1,308-task subset where all five engines were measurable. Chrome sits at 99.85% as the reference. Moli’s 81.9% puts it ahead of Kitesurf (62.08%), Lightpanda (53.29%), and Obscura (44.88%). The chart and the full report (docs/reports/five-engine-report-20260813.md) are public.
The resource card is the one I find more interesting, because the methodology doc on resource-card-20260812.md shows what the maintainers had to do to get numbers that compared fairly. The corpus for that round was l1.raw_cdp (375 tasks) plus l2.web_platform (182 tasks) — 557 tasks total — run with --jobs 1 --k 5 --score-mode independent, balanced rotation order, and seed official20260709. Running the full 1,928 tasks at jobs=1×k=5 was infeasible in wall-clock time, so the 557-task subset is the report’s basis. The doc is explicit: “this round’s basis is this representative subset; the report’s numbers must not be extrapolated to a full-corpus basis.”
The observer-effect gate is the part I respect. Measuring memory for a browser means running two PSS scans of the process tree at the start and end of each attempt, which on Chrome’s 100+ process tree adds 15.74% to collection-wall time at the median. The maintainers set the gate to --resource-max-observer-effect-pct 20 and report the actual measurement distortion as a median task-duration delta of ≤0.87% for all four engines, with 0 status mismatches and the two rounds’ functional counts matching exactly status by status (pass=8185, fail=2920, unsupported=5, crash=30). That is unusually careful. It is also why the 92 MiB / 697 MiB comparison is defensible rather than vibes.
The all-pass intersection table reports CPU median, CPU p95, PSS peak median, and PSS delta median for the 1,045 tasks that all four local engines completed. Moli: 100.61 ms / 174.44 ms CPU, 92.12 MiB PSS peak, 2.68 MiB delta. Chrome: 686.95 ms / 825.42 ms CPU, 697.14 MiB PSS peak, 11.17 MiB delta. Lightpanda: 36.48 ms / 77.22 ms CPU, 33.55 MiB PSS peak. Obscura: 38.44 ms / 60.04 ms CPU, 38.74 MiB PSS peak. The “Moli used about 15% of Chrome’s CPU time and 13% of its peak memory” line in the README is the median ratio across that intersection.
Lightpanda is faster on raw CPU (36 ms vs 100 ms median) and uses a third of Moli’s memory. Obscura is similar. The 53% Lexbench success rate for Lightpanda and 45% for Obscura are the trade: Lightpanda is the fastest in this comparison but only passes 53% of the agent workload, Moli passes 81.9% at 3× the CPU and 3× the memory. You can read the efficiency map as the chart’s “honest” version: Chrome at 99.9% / 697 MiB, Moli at 80.7% / 92 MiB, Lightpanda at 43.8% / 34 MiB, Obscura at 39.5% / 39 MiB.
The mixed public-web crawl test is a different angle. 192 URLs from major Chinese and international sites, “useful” defined as producing meaningful content after JS runs (HTTP 200, challenge page, login wall, empty response, or shell-only application do not count). Moli: 103 useful pages, 53.6% success, 1.43 s median, 73 MiB median RSS. Chrome Headless: 101 useful, 52.6%, 1.43 s, 773 MiB. Lightpanda: 85, 44.3%, 0.97 s, 40 MiB. Obscura: 57, 29.7%, 1.30 s, 39 MiB. So at the median time Moli and Chrome tie, but Moli produces two more useful pages and uses 11% of the memory. The single extra useful page is the sort of detail that a benchmark should be reporting and a wrapper-around-Chromium project usually does not.
The WPT number is just shy of unbelievable: 1.612 million tests passed in the current WPT selection used to validate Moli’s agent-browser scope. That is the full web-platform-tests corpus for the surface Moli targets, and it is the floor for “this is a real browser, not a DOM shim.”
What Moli’s on-demand design actually skips
I went looking for what gets left out, because the on-demand claim sounds like it must be losing something.
The README is honest. “No GUI browser, persistent window, GPU compositor, or retained multi-frame paint architecture.” It does not pursue pixel-for-pixel parity with Chrome. Canvas, WebGL, and media playback are not on the table. --layout supports software screenshots and native CDP/CLI PDF with embedded-font generation, but not every Chrome screenshot or print mode is implemented. The behavior contract for unimplemented operations is: “Unsupported protocol paths return explicit errors — Moli never pretends that a browser action, event, network observation, or visual result occurred.” That last line is a real design choice. Chromium, when a Chrome-flagged API is missing, will sometimes silently return undefined or an empty result. Moli refuses to lie about it.
A 1,071-of-1,308 success rate on a CDP/WebDriver suite is also the failure rate. The remaining 237 tasks are presumably the ones where Moli’s WebKit-style quirks diverge from Chrome’s. The 18.1% gap to Chrome is the implementation tax for the on-demand design. I would want to see what the failure modes cluster around before recommending this for an evaluation harness that benchmarks a model against a 95% threshold.
The relationship with Lexmount Browser (the managed cloud runtime and control plane) is also worth flagging. Moli is the open-source kernel; Lexmount Browser is the hosted product. The README states clearly: “The open-source headless browser is fully usable without Lexmount Browser.” But the brand surface is lexmount/moli, and the company running it is Lexmount. The license is clean (Apache-2.0 OR MIT at your option), so the open-source path is real — the binary works on Linux, macOS, and Windows without a Lexmount account, the install script is curl | sh from a GitHub release, and the skills/ directory ships three installable skills (moli-cdp-server, moli-webfetch, moli-websearch) that any agent harness can drop in. But if you want managed scale, observability dashboards, or the cloud-flavored conveniences, Lexmount Browser is the answer, and that is the company’s commercial direction.
The agent-browser lane
The interesting comparison is not Moli vs Chrome — that is just a memory-footprint story. It is Moli vs the rest of the agent-browser surface in 2026.
Lightpanda is the closest analogue: a TypeScript-based browser rebuilt around agent use cases, written by the maintainer of a database product. It is faster than Moli on raw CPU (36 ms vs 100 ms median) and uses a third of the memory. It passes 53% of the agent benchmark, against Moli’s 82%. For a workload that is mostly “fetch this page and parse the DOM” the Lightpanda efficiency wins; for a workload that has to actually run modern JS, Moli’s V8 integration wins. The two are not head-to-head replacements.
Obscura is a newer entrant (around since mid-2026) with a Rust core, 45% Lexbench pass, and 39 MiB PSS. Closer to Moli’s profile but further behind on coverage. Kitesurf is a remote-only service, structurally unmeasurable in the resource card, passes 62% of comparable tasks. The 82% figure for Moli is the highest of the four non-Chrome engines in this comparison.
The 192-URL mixed public-web crawl is the more interesting test, because that is what a browser-use agent actually does: hit a Chinese site with a JS challenge wall, hit an international news site with anti-bot detection, hit a SaaS dashboard with a session cookie, see how many of them give you a real page. Moli’s 53.6% success rate is the highest in that test, and Chrome is at 52.6% — basically a tie. The agent’s failure mode is not “wrong browser” but “site I hit has anti-bot detection,” and Moli does not solve that, but it does not regress against Chrome either.
The WPT score (1.612M tests passed) is the floor of “this is a real browser.” It is the surface Moli claims to support, validated against the upstream test suite. The 1,308-task Lexbench number is the agent-specific overlay: how much of the modern web-platform surface actually works in the way a browser-automation client expects. The 81.9% on that overlay is what makes Moli useful for browser-use agents today, not six months from now.
The deeper question — whether the on-demand design scales to a real product — is the one the maintainers are actively running. The release cadence is 1.1.8 on September 18, 1.1.9 September 20, 1.1.10 September 24, 1.1.11 September 26, 1.1.12 September 30, 1.1.13 October 4, 1.1.14 October 5, 1.1.15 October 7, 1.1.16 October 11, 1.1.17 October 12. Ten tags in twenty-five days. The binary is being actively broken and rebuilt. Whether the on-demand model survives a year of feature work or whether the surface Moli has to add (Canvas, WebGL, web-components shadow DOM edge cases) forces it back toward a retained layout tree is the open question. Right now the numbers are the numbers. I would not bet against the maintainers reading the failure modes and stripping them out the way they stripped layout.
References and where to dig further
- Moli repository: github.com/lexmount/moli — Apache-2.0 OR MIT, 17,973★ at run time
- Lexbench-Headless-Browser corpus: github.com/lexmount/Lexbench-Headless-Browser — 1,928 tasks, 13 pinned automation tools
- Resource profiling methodology: resource-card-20260812.md — the observer-effect gate and the 557-task basis
- Five-engine report: five-engine-report-20260813.md — the 1,308-task comparable-task numbers behind the headline chart
- Lexmount Browser (managed cloud product, separate from the OSS kernel): the control plane, not part of this post’s benchmark
- Taffy layout engine, Parley text layout, Servo/Stylo — the underlying crates, useful for understanding what Moli inherits
- v1.1.17 release notes: the active dev branch on
main, ten tags in twenty-five days, fast iteration cadence
Comments
Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.