Rustwright vs Playwright: 70% Less Memory
The architectural shift is simple: Playwright-python normally pipes everything through a Node driver before it even hits Chrome via CDP. Rustwright just cuts out the middleman.
playwright-python:
your code ──pipe──► Node driver ──CDP──► Chromerustwright:
your code ─────── raw CDP ────────► Chrome
I’ve been digging into the performance delta, and the numbers are wild. We're talking about a 2.55x faster boot time and a massive 70% reduction in memory usage. For an indie hacker or a small team, that's the difference between needing a beefy VPS and running everything on a tiny instance!
Beyond the speed, there's a huge win for stealth. Standard Playwright practically screams "I'm a bot" because of the __playwright__binding__ globals and specific console-serialization leaks. Since Rustwright removes the Node driver entirely, those specific fingerprints vanish. It's not a magical "undetectable" cloak, but it removes the obvious red flags that usually trigger bot detection.
The best part for my workflow is the migration. I didn't have to rewrite my entire AI workflow or hunt down every single function call. It's literally a one-line swap in Python:
# pip install rustwrightChange this:
from playwright.sync_api import sync_playwright
To this:
from rustwright.sync_api import sync_playwrightIt handles the complex stuff—like cross-origin iframes via frame_locator()—exactly how you'd expect, but it executes real CDP calls instead of synthetic DOM events. It's built on Tokio and uses PyO3 for the Python bindings, keeping everything in-process.
If you're tired of your automation scripts bloating your server's RAM, this is the way to go.
https://github.com/Skyvern-AI/rustwright