Skyvern-AI/rustwright

Playwright's API on a Rust CDP engine — Chromium browser automation for Python & Node, no driver subprocess. (Alpha)

What it solves

Rustwright replaces Playwright's architecture: instead of a Python/Node wrapper that spawns a Node.js driver subprocess, it uses a native Rust engine that talks directly to Chromium via raw Chrome DevTools Protocol (CDP). This removes the driver overhead, yielding roughly 2.55× faster execution and ~70% less client memory in local diagnostics, while keeping the familiar Playwright API so existing code can switch with a one-line import change. It also avoids Playwright's automation fingerprint, making automation harder for sites to detect.

How it works

One Rust core — an async CDP client built on Tokio — communicates directly with Chromium. Thin Python (PyO3) and Node (napi-rs) bindings expose this engine in-process, so there is no separate driver subprocess. The same core also powers alpha bindings for Rust, Ruby, C#/.NET, Java, Go, and PHP via a shared C ABI. For AI agents, it provides a CLI and an MCP server that expose compact accessibility snapshots with element references, letting agents click and type using real CDP input events.

Who it’s for

Developers and AI-agent builders who need browser automation in Python or Node.js and want a faster, lighter alternative to Playwright without rewriting their code. It's also for teams building agent loops that need a browser interface via CLI or MCP. Note it's alpha, Chromium-only, with partial API coverage (~96% of Playwright's Python sync API) and limited Node bindings.

Highlights

  • Drop-in Playwright API: change one import and existing code runs on the Rust engine.
  • No Node driver subprocess: raw CDP in-process, leading to ~2.55× speedup and ~70% less client memory (local diagnostics).
  • No Playwright automation fingerprint: avoids driver signatures and normalizes headless identity.
  • Trusted input: uses real CDP input events, not synthetic DOM clicks.
  • Cross-origin iframe (OOPIF) support with auto-attach.
  • One engine, many languages: Python, Node, plus alpha Rust, Ruby, C#/.NET, Java, Go, PHP.
  • Agent-focused tooling: CLI for shell/agent control and a native Rust MCP server for AI agents.
  • Remote browser support via Skyvern's hosted Browser Sessions (paid service).

Related

  • Project
  • Project
  • Project
  • Project
  • Project