Browser Ref

•
2
•

Control local web browsers reliably through semantic reference snapshots and self-healing sessions for AI agents.

Browser Ref provides a resilient browser automation interface designed specifically for AI agents, overcoming common failure points like stale CSS selectors and crashed sessions. Instead of relying on brittle DOM selectors, it generates semantic snapshots with reference identifiers, piercing shadow DOMs and flattening cross-origin iframes into a single actionable tree. It operates directly through your existing Chrome or Edge installation via Playwright Core—requiring no extra browser downloads—and features self-healing capabilities that automatically recover crashed processes, manage multi-tab states, and resolve stale element references on the fly.

Key Features

01Reference-based element targeting ([eN] refs) with four-level fallback resolution to avoid brittle CSS selectors
02Self-healing architecture with automatic browser restarts, tab restoration, and orphan process cleanup
03Deep DOM penetration that pierces open shadow DOMs and flattens cross-origin iframes into unified trees
04Zero-download setup that connects to pre-installed Chrome or Edge instances via CDP pipe or remote debugging
05Persistent profiles allowing user logins, session cookies, and authentication states to survive across restarts
062 GitHub stars

Use Cases

01Empowering AI coding assistants like Claude or Cursor to test and interact with dynamic web applications
02Automating complex, multi-step browser workflows behind authenticated user sessions
03Navigating and extracting structured data from modern SPAs using shadow DOM and nested iframes