The browser engine built for agents. One Rust binary, zero Chromium, zero Docker. See, read, find, act, remember.
curl -fsSL https://raw.githubusercontent.com/yinnho/diting/main/install.sh | sh
diting # → HTTP on :8089, everything below is plain RESTExisting "browser automation" was built for humans or one-shot scraping. Agents need five things at once — see, read, find, act, remember — and they need them cheap:
- 7.6× faster to agent-usable text than headless Chrome (same 20 pages, same network, p50 532 ms vs 4 053 ms)
- ~25 MB cold start, <40 MB in everyday static use (measured whole-process); even a heavy JS page runs ~150 MB against Chrome's ~2 GB per page
- Zero hard failures where Chrome's dump-DOM produced nothing
An agent's total cost is browser efficiency × model efficiency. This is the browser half.
Measured on the full 1,928-task Lexbench-Headless-Browser (0.4.2) suite spanning raw CDP, WebDriver Classic, 14 pinned L1 driver/tool suites (Playwright, Puppeteer, Selenium, chromedp, rod, chromiumoxide, Ferrum, pydoll, cdp-use, Stagehand, Chrome DevTools MCP, chrome-remote-interface, agent-browser, agent-browser scenarios), and 3 L2 web-platform suites (188 semantic checks):
| Engine | Version | Passed / Total | Pass rate |
|---|---|---|---|
| Diting | 0.12.1 (dab532f4) |
1,926 / 1,928 | 99.90% |
| Moli | 1.1.17 | 1,795 / 1,928 | 93.10% |
| Lightpanda | 1.0.1 | 1,569 / 1,928 | 81.38% |
| Obscura | 0.2.4 | 1,161 / 1,928 | 60.22% |
- 17 / 18 subsets at 100.00%: all 14 external L1 driver/tool suites (
l1.playwright142/142,l1.puppeteer143/143,l1.selenium87/87,l1.agent_browser_tool78/78,l1.chrome_devtools_mcp90/90,l1.chromedp/rod/chromiumoxide/ferrum/pydoll/cdp_use/stagehand/chrome_remote_interface92/92 each,l1.agent_browser_scenarios) plus all 3 L2 web-platform suitesl2.web_platform,l2.playwright, andl2.puppeteer(188 / 188). l1.raw_cdp: 373 / 375 (99.47%) with native V8 Inspector (Debugger.*26/26,Profiler.*11/11,Tracing.*3/3) and native Service Worker runtime (FetchEventinterception +Network.setBypassServiceWorker).- Only 2 remaining tasks: both require
Browser.getVersion().productto contain"Chrome"(Diting honestly reportsditing/0.12.1). - Methodology: competitor figures are from Lexbench's published
0.4.2report (four_engine_full_20261016b,k=3); Diting was measured in a single full run (diting_dab532f4_full1928,seed=official20260709,--score-mode independent,k=1, 3m17s) withcargo build --release -p diting-browser --features screenshot.
- Full browser, no Chromium — V8 + an owned Rust HTTP/CSS/layout/paint stack in one binary. Screenshots and rendering are built in; there is nothing to download and nothing to sandbox. Drove the most popular Chrome-based agent browser for a day and wrote down the difference first-hand: WHY-NO-CHROMIUM.md — 2.4× faster cold start, one dependency instead of a second browser, flat memory curve, receipts per response
- Real TLS fingerprints — production-grade impersonation that passes edge checks where fingerprint-less engines eat 403s; CAPTCHA and challenge pages are detected, waited on, and reported instead of handed over as content
- Stateful sessions — login state injects, exports, and survives restarts. The same session id comes back logged in
- Tiered rendering — static pages answer in ~100 ms; V8 spins up only when a page actually needs JS. Every response says which tier served it
- Meta-search — 20 engines across 7 categories (including the Chinese web), merged and deduplicated; reads land with section-level snippets
- Flows — a multi-step interaction an agent figured out becomes a replayable JSON document: reruns cost zero model tokens
- Documents — deterministic markdown → HTML + diagrams, byte-identical by construction; page sets export to PDF / PPTX / DOCX
- Receipts — every fetch reports its tier, redirect trail, and content hash. Agents act on what actually happened
- Local memory — fetch/search cache (SQLite FTS5) with CJK matching, so re-reads don't re-pay
# One-line installer: macOS (Apple Silicon / Intel), Linux (x86_64 / arm64), Windows (git-bash)
curl -fsSL https://raw.githubusercontent.com/yinnho/diting/main/install.sh -o install.sh
less install.sh && sh install.sh
# Or build from source (full features)
cargo build --release --features stealth,screenshot
diting & # listening on :8089
curl :8089/health # → {"status":"ok","engine":"diting"}
curl -X POST :8089/fetch -d '{"url":"https://example.com"}' | jq -r .markdown
curl -X POST :8089/search -d '{"query":"rust browser engine"}' | jq '.results[:3]'
curl -X POST :8089/session/create -d '{"url":"https://example.com"}' # → session_idPlaywright attaches over CDP on the same port. /json/version reports diting; the page user agent stays Chrome.
import { chromium } from "playwright";
const browser = await chromium.connectOverCDP("http://127.0.0.1:8089");
const context = browser.contexts()[0];
const page = context.pages()[0] ?? await context.newPage();
await page.goto("https://example.com");
console.log(await page.evaluate(() => document.body.innerText));
await page.screenshot({ path: "page.png" });
await browser.close();This slice is that path, plus locator.click(), locator.fill(), and page.setContent(). An off-screen target is scrolled into view. Several CDP clients can connect at once. Closing a connection closes the pages that connection opened.
Computer-use agents come in two layers: GUI-layer stacks drive a whole desktop; engine-layer browsers make the page itself the machine. Diting is the engine layer — DOM actions in, structured state out, one process per session instead of a VM. It is a real-time retrieval instrument, not a crawler: no link-following recursion, built-in per-domain budgets, robots.txt opt-in.
Self-host under Apache-2.0 — a single local binary, zero external runtime dependencies.
- Agent guide & route reference · install for LLM agents
- Works with existing Firecrawl clients (
/v1/scrape) and any HTTP client — no SDK required
diting's JavaScript runtime layer builds on work from the
Obscura project (Apache-2.0). Many
compatibility fixes track Obscura changes and are credited in source comments as
upstream <commit>. See NOTICE.