{"id":50264884,"url":"https://github.com/turtiesocks/zendriver-rs","last_synced_at":"2026-06-13T18:00:39.796Z","repository":{"id":360054075,"uuid":"1248513676","full_name":"TurtIeSocks/zendriver-rs","owner":"TurtIeSocks","description":"Async-first, undetectable browser automation in Rust via the Chrome DevTools Protocol. Stealth-by-default port of zendriver — no WebDriver, no JS shim.","archived":false,"fork":false,"pushed_at":"2026-06-13T16:20:45.000Z","size":17774,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-13T17:27:25.803Z","etag":null,"topics":["anti-detection","async","automation","bot","browser-automation","cdp","chrome-devtools-protocol","chromium","cloudflare-bypass","crawler","headless-chrome","playwright-alternative","rust","scraping","stealth","tokio","undetectable-chromedriver","web-scraping","web-testing","zendriver"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TurtIeSocks.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-24T18:34:37.000Z","updated_at":"2026-06-13T16:19:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/TurtIeSocks/zendriver-rs","commit_stats":null,"previous_names":["turtiesocks/zendriver-rs"],"tags_count":102,"template":false,"template_full_name":null,"purl":"pkg:github/TurtIeSocks/zendriver-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TurtIeSocks%2Fzendriver-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TurtIeSocks%2Fzendriver-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TurtIeSocks%2Fzendriver-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TurtIeSocks%2Fzendriver-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TurtIeSocks","download_url":"https://codeload.github.com/TurtIeSocks/zendriver-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TurtIeSocks%2Fzendriver-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34294415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anti-detection","async","automation","bot","browser-automation","cdp","chrome-devtools-protocol","chromium","cloudflare-bypass","crawler","headless-chrome","playwright-alternative","rust","scraping","stealth","tokio","undetectable-chromedriver","web-scraping","web-testing","zendriver"],"created_at":"2026-05-27T13:02:44.239Z","updated_at":"2026-06-13T18:00:39.785Z","avatar_url":"https://github.com/TurtIeSocks.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zendriver-rs\n\nAsync-first, undetectable browser automation via the Chrome DevTools Protocol — drive real Chrome from Rust, or hand the keys to an LLM agent over the [Model Context Protocol](https://modelcontextprotocol.io/).\n\n[![crates.io](https://img.shields.io/crates/v/zendriver.svg)](https://crates.io/crates/zendriver)\n[![docs.rs](https://docs.rs/zendriver/badge.svg)](https://docs.rs/zendriver)\n[![Book](https://img.shields.io/badge/book-mdBook-blue)](https://turtiesocks.github.io/zendriver-rs/)\n[![MCP](https://img.shields.io/badge/MCP-server-blue)](https://turtiesocks.github.io/zendriver-rs/mcp.html)\n[![MSRV 1.85](https://img.shields.io/badge/rustc-1.85+-lightgray.svg)](https://blog.rust-lang.org/2025/02/20/Rust-1.85.0/)\n[![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](#license)\n[![CI](https://github.com/TurtIeSocks/zendriver-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/TurtIeSocks/zendriver-rs/actions/workflows/ci.yml)\n\nA Rust port of [zendriver](https://github.com/cdpdriver/zendriver). Drives Chrome via raw CDP — no WebDriver, no JS shim — with anti-detection patches baked in by default.\n\n📖 **[User guide \u0026 full documentation →](https://turtiesocks.github.io/zendriver-rs/)** · 🦀 **[API reference (docs.rs) →](https://docs.rs/zendriver)** · 🤖 **[MCP server for AI agents →](https://turtiesocks.github.io/zendriver-rs/mcp.html)**\n\n## Quick example\n\n```rust,no_run\nuse zendriver::Browser;\n\n#[tokio::main]\nasync fn main() -\u003e zendriver::Result\u003c()\u003e {\n    let browser = Browser::builder().headless(true).launch().await?;\n    let tab = browser.main_tab();\n\n    tab.goto(\"https://example.com\").await?;\n    tab.wait_for_load().await?;\n\n    // Find by visible text (auto-waits up to the selector's timeout).\n    let link = tab.find().text(\"More information...\").one().await?;\n    link.click().await?;\n    tab.wait_for_load().await?;\n\n    // Read back from the page's main world.\n    let title: String = tab.evaluate_main(\"document.title\").await?;\n    println!(\"title: {title}\");\n\n    browser.close().await?;\n    Ok(())\n}\n```\n\nMore working examples in [`crates/zendriver/examples/`](crates/zendriver/examples/).\n\n## Feature matrix\n\n| Feature        | Default? | Use case                                                      | Extra deps                            |\n| -------------- | -------- | ------------------------------------------------------------- | ------------------------------------- |\n| `stealth`      | yes      | Anti-detection: spoofed UA/platform, isolated worlds, JS shim | (built-in to `zendriver`)             |\n| `interception` | no       | Block/modify requests via CDP `Fetch.*`; rule-based + streams | `zendriver-interception`              |\n| `expect`       | no       | Playwright-style `expect_response()` / `expect_request()`     | (in-tree, no extra crate)             |\n| `cloudflare`   | no       | Solve Cloudflare Turnstile challenges                         | `zendriver-cloudflare`                |\n| `imperva`      | no       | Imperva WAF / Incapsula bypass (reese84 / legacy / CAPTCHA)   | `zendriver-imperva`                   |\n| `datadome`     | no       | DataDome bypass (device-check / CAPTCHA / block) + `Surface::Webgpu` coherence | `zendriver-datadome` |\n| `monitor`      | no       | Passive network monitor — buffered HTTP / WebSocket / SSE events via `tab.monitor()` | (in-tree, no extra crate)             |\n| `geo`          | no       | Country code → coherent `locale` + `languages` (Accept-Language) persona overlay | (via `zendriver-stealth`)             |\n| `tracker-blocking` | no   | Opt-in third-party tracker / fingerprinter host blocklist (curated bundled list + BYO file / URL) | `reqwest` + `dirs`         |\n| `fetcher`      | no       | Auto-download a pinned Chrome for Testing build               | `zendriver-fetcher` + `reqwest`/`zip` |\n\nSeparate binary crate (not a feature on `zendriver`):\n\n| Crate           | Use case                                                                                                                         | Install                                                                                     |\n| --------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |\n| `zendriver-mcp` | Drive a stealth Chrome from any LLM agent — [Model Context Protocol](https://modelcontextprotocol.io/) server, 70 tools, stdio + streamable HTTP | `cargo install zendriver-mcp` ([docs](https://turtiesocks.github.io/zendriver-rs/mcp.html)) |\n\n## Install\n\nPick the use case that matches what you're building.\n\n**Just browse:**\n\n```bash\ncargo add zendriver\n```\n\nDefault stealth is on.\n\n**Stealth scraping (explicit):**\n\n```bash\ncargo add zendriver --features stealth\n```\n\nSame as above — only spell out the feature if you want it visible in `Cargo.toml`.\n\n**Everything:**\n\n```bash\ncargo add zendriver --features \"interception expect cloudflare imperva datadome monitor geo tracker-blocking fetcher\"\n```\n\nAdds request interception, `expect()` matchers, Cloudflare Turnstile bypass, Imperva WAF / Incapsula bypass, DataDome bypass, the passive network monitor, country→locale geo overlay, the opt-in tracker/fingerprinter blocklist, and the Chrome for Testing fetcher.\n\n## Drive a stealth browser from your AI agent\n\n`zendriver-mcp` is a **first-class [Model Context Protocol](https://modelcontextprotocol.io/) server** that hands the entire zendriver-rs surface to any LLM client — Claude Desktop, Claude Code, Cursor, or your own agent loop. **70 tools**, two transports (stdio + streamable HTTP), and the same stealth-by-default fingerprinting baked into the lib. Unlike generic browser MCP servers, this one bypasses Cloudflare Turnstile, ships an isolated-world JS eval that survives anti-bot detection, and lets agents persist auth state across sessions.\n\n```bash\ncargo install zendriver-mcp\n```\n\n**Claude Desktop / Claude Code config:**\n\n```json\n{\n  \"mcpServers\": {\n    \"zendriver\": {\n      \"command\": \"zendriver-mcp\"\n    }\n  }\n}\n```\n\n**Even easier — the [Claude Code plugin](plugins/zendriver/):**\n\n```bash\nclaude plugin marketplace add TurtIeSocks/zendriver-rs\nclaude plugin install zendriver@zendriver-rs\n# then, in a session:\n/zendriver:setup     # prebuilt (no Rust), source, or link\n```\n\nNo manual MCP config — the plugin bundles the server plus scraping skills, the `/zendriver:scrape` and `/zendriver:extract` commands, and a `zendriver-scraper` subagent.\n\n**What agents get out of the box:**\n\n- **Stealth navigation** — `browser_open`, `browser_goto`, `browser_back/forward/reload`, `browser_wait_for_idle`, plus a runtime-swappable `browser_set_stealth_profile` (auto / native / spoof_macos / spoof_linux / spoof_windows)\n- **Selector-based find + actions** — one `Selector` arg works across `browser_find`, `browser_click`, `browser_type`, `browser_press`, `browser_set_value`, `browser_upload`, etc., with CSS / XPath / visible-text / ARIA-role lookups and per-frame scoping\n- **Three ways to \"see\" the page** — `browser_html` (trimmed DOM), `browser_screenshot` (PNG / JPEG / WebP as inline image content), `browser_element_state` (visibility / geometry / attrs)\n- **Stateful primitives** agents need for real work — `browser_cookies_persist` for save/load auth, full `browser_storage_*`, multi-tab management, frame traversal; `browser_monitor_*` passive network monitor (HTTP / WS / SSE); `browser_request` for HTTP from the page's own session\n- **Anti-bot superpowers** (gated cargo features, on by default for the published binary):\n  - `browser_solve_turnstile` — Cloudflare Turnstile bypass without a CAPTCHA-solving service\n  - `browser_open` `block_trackers` / `tracker_blocklist` — opt-in third-party tracker \u0026 fingerprinter host blocking (curated bundled list + bring-your-own file / URL)\n  - `browser_solve_datadome` — DataDome device-check / CAPTCHA / block bypass (with `Surface::Webgpu` coherence)\n  - `browser_intercept_*` — block/redirect/respond/modify requests via CDP `Fetch.*`\n  - `browser_expect_register / _await` — Playwright-style \"wait for response/dialog/download\" matchers, split across MCP calls so the agent can act in between\n  - `browser_install_chrome` — pull a pinned Chrome-for-Testing build on demand\n- **Actionable errors** — every error carries an `_meta.suggested_next` hint pointing the agent at the right recovery tool (e.g. `ElementNotFound` → \"try `browser_html` to inspect\")\n\nSee the [MCP chapter](https://turtiesocks.github.io/zendriver-rs/mcp.html) for the full tool reference, CLI flags, HTTP-mode operator notes, and troubleshooting guide.\n\n## Phases\n\nSix development phases shipped into the v0.1.0 release. The [mdBook](https://turtiesocks.github.io/zendriver-rs/) covers each surface in depth.\n\n1. **Foundation** — CDP transport + minimal `Browser`/`Tab`/`Element`. See [introduction](https://turtiesocks.github.io/zendriver-rs/introduction.html).\n2. **Stealth** — fingerprint patches + isolated worlds + stealth JS bundle. See [stealth](https://turtiesocks.github.io/zendriver-rs/stealth.html).\n3. **Element API completeness** — CSS/XPath/text/role selectors, actionability, input controller, screenshots. See [quickstart](https://turtiesocks.github.io/zendriver-rs/quickstart.html).\n4. **`Tab`/`Browser` completeness** — multi-tab, cookies, storage, frames, nav history, `wait_for_idle`. See [multi-tab](https://turtiesocks.github.io/zendriver-rs/multi-tab.html) + [frames](https://turtiesocks.github.io/zendriver-rs/frames.html).\n5. **Optional gated features** — request interception, `expect()` matchers, Cloudflare / Imperva / DataDome bypass, network monitor, geo locale overlay, tracker blocklist, Chrome-for-Testing fetcher. See [interception](https://turtiesocks.github.io/zendriver-rs/interception.html), [expect](https://turtiesocks.github.io/zendriver-rs/expect.html), [cloudflare](https://turtiesocks.github.io/zendriver-rs/cloudflare.html), [fetcher](https://turtiesocks.github.io/zendriver-rs/fetcher.html).\n6. **Polish + release** — trait extraction, rustdoc + mdBook, publish to crates.io.\n\n## Comparison\n\n| Feature                  | zendriver-rs            | chromiumoxide     | fantoccini      | headless_chrome | thirtyfour      |\n| ------------------------ | ----------------------- | ----------------- | --------------- | --------------- | --------------- |\n| API ergonomics _opinion_ | builder + auto-wait     | raw CDP types     | WebDriver verbs | sync wrappers   | WebDriver verbs |\n| Stealth out-of-box       | yes (default)           | no                | no              | no              | no              |\n| Multi-tab                | yes (first-class)       | yes               | yes             | yes             | yes             |\n| Interception             | yes (`Fetch.*` wrapper) | yes (raw)         | no (proxy-only) | partial         | no (proxy-only) |\n| Cloudflare bypass        | yes (`zendriver-cloudflare`) | no           | no              | no              | no              |\n| MCP server for AI agents | yes (`zendriver-mcp`, 70 tools) | no        | no              | no              | no              |\n| License                  | MIT OR Apache-2.0       | MIT OR Apache-2.0 | Apache-2.0      | MIT             | MIT             |\n| Async runtime            | tokio                   | tokio / async-std | tokio           | sync            | tokio           |\n\nSubjective rows marked `*opinion`. All claims accurate as of the 0.1.0 release; check upstream changelogs before relying on them.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md). Issues and PRs welcome.\n\n## License\n\nDual-licensed under MIT ([LICENSE-MIT](LICENSE-MIT)) and Apache-2.0 ([LICENSE-APACHE](LICENSE-APACHE)) at your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturtiesocks%2Fzendriver-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturtiesocks%2Fzendriver-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturtiesocks%2Fzendriver-rs/lists"}