Local Playwright backend

Updated Jul 27, 2026

Use the Playwright backend when walker mode or a browser launched by Playwright rather than agent-browser is needed:

bunx playwright install chromium firefox webkit
bun run bin/css-view.ts "http://127.0.0.1:${PORT}/index.html" \
  --backend playwright \
  --mode walker \
  --browser firefox \
  --pretty

For local Playwright CDP captures, use Chromium:

bun run bin/css-view.ts "http://127.0.0.1:${PORT}/index.html" \
  --backend playwright \
  --mode cdp \
  --browser chromium \
  --pretty

Do not pass untrusted CDP URLs. A CDP endpoint can control the browser, inspect page content, and interact with authenticated sessions. Keep local debugging ports bound to loopback interfaces and treat provider-issued WebSocket URLs as secrets.