๐ฆ Servo Ships as a Rust Crate โ A Browser Engine You Can Embed
What if you could drop a full browser engine into your app like plugging in a USB drive?
The Servo team just released Servo 0.1.0 on crates.io, packaging their browser engine as a reusable Rust library for the first time ever.
After years as an experimental project, Servo is now a component any Rust developer can integrate with a single line in Cargo.toml. The API is clean โ three core pieces: ServoBuilder to configure, WebView to render, and pixel readback to capture output.
๐ฏ Why this matters:
- Headless rendering โ screenshot web pages without opening a browser
- Works on stable Rust โ no nightly compiler required
- Dramatically lighter than embedding Chromium
- Programmable web rendering as a library, not a separate process
Simon Willison put it to the test by having Claude Code explore the crate and build `servo-shot` โ a CLI tool that renders web pages to PNG. It successfully captured the Hacker News homepage with full fidelity.
Think: automated visual QA, in-app web previews, intelligent scraping that actually understands JavaScript โ all without shipping Chrome alongside your app.
This is the browser engine, democratized.
๐ Source
simon-willison