Spectra

•

Drives Chrome directly over the Chrome DevTools Protocol to enable fast, token-efficient browser automation for AI agents.

Spectra is a native Rust browser automation server designed to give AI agents, such as Claude Code, precise and efficient control over Chrome. By directly leveraging the Chrome DevTools Protocol (CDP) instead of abstraction layers like Playwright, Spectra offers a lean, high-performance solution. It optimizes information flow by providing condensed, pruned accessibility tree snapshots, enabling AI agents to interpret browser state with token efficiency. This architecture is built for extensibility, allowing projects to define custom automation scenarios without server recompilation, and supports multi-session management for parallel browser interactions, all while maintaining a minimal memory footprint.

주요 기능

01Native Rust binary: Minimal ~27 MB RAM footprint with no runtime to install.
02Direct CDP integration: Provides fast, efficient browser control without intermediary abstraction layers.
03Condensed browser snapshots: Generates token-efficient views by pruning the accessibility tree.
04Extensible with per-project JavaScript recipes: Define custom automation scenarios without server recompilation.
05Multi-session management: Drive multiple Chrome instances in parallel for testing or simulations.
060 GitHub stars

사용 사례

01Automating complex web interactions for AI agents like Claude Code.
02Simulating and managing multiple parallel user sessions for web application testing.
03Measuring Core Web Vitals and monitoring web performance through native browser APIs.