cloudflare/kitesurf
Kitesurf is an experimental browser engine that runs on Cloudflare Workers.
What it solves
Kitesurf is an experimental browser engine that runs entirely on Cloudflare Workers. It eliminates the need for Chrome or a browser container by parsing HTML, applying CSS, running page JavaScript, and rendering screenshots directly on the edge. It speaks the Chrome DevTools Protocol (CDP), so existing CDP clients like Puppeteer can control it without a traditional browser setup.
How it works
- Kitesurf compiles into WebAssembly and runs as a Cloudflare Worker. It uses Cloudflare Dynamic Workers to create an isolated worker for each page and renderer.
- The engine parses HTML, applies CSS, and executes page JavaScript inside WebAssembly. It renders screenshots from the page scene, and can also generate PDF output.
- It exposes a CDP endpoint at
ws://127.0.0.1:8787/devtools/browser(or a deployed Worker URL), so Puppeteer and other CDP clients can connect directly. - The implementation combines several Rust libraries: Blitz for HTML/DOM/layout/painting, Stylo for CSS parsing and styling, Boa for JavaScript inside WebAssembly, Linebender libraries for text layout and 2D graphics, and Krilla for PDF generation.
- Local development uses
wrangler devand Bazel to build the WebAssembly modules and bundles. A bundled Chrome DevTools frontend can be included for self-hosting the inspector.
Who it's for
Kitesurf is aimed at developers who want a browser engine that runs on Cloudflare's edge infrastructure. It suits those building automation, testing, inspection, or scraping workflows that already use Puppeteer or other CDP clients. It requires a Cloudflare Workers Paid plan (Dynamic Workers) and is intended for controlled deployments, not public use without authentication.
Highlights
- No Chrome or browser container required — the whole engine runs as WebAssembly on Workers.
- Compatible with Puppeteer and other CDP clients via the standard DevTools Protocol.
- Handles full HTML/CSS/JS pipeline and produces screenshots (and PDF output via Krilla).
- Built from established open-source Rust libraries (Blitz, Stylo, Boa, Linebender, Krilla).
- Can be deployed to Cloudflare Workers and protected with Cloudflare Access or similar authentication.
- Includes a terminal client (
kitesurf-cli) for local page viewing and control.
Related
- Project
- Project
- Project
- Project