← Back to Leaderboard
Bszymdzum

szymdzum/browser-debugger-cli

A persistent Chrome debugging session for shell agents, powered by CDP

Engineering Health (Methodology)
A · 85/100
Maintenance Activity
● Updated 6d ago
Latest Release
v0.23.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption10/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedCLI
Total Stars
★ 187
24h Growth
+0
7d Growth
+0
Forks
12

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

szymdzum/browser-debugger-cli Star History (2025-11-05 - 2026-12-03) ALL-TIME STAR HISTORY (2025-11 – 2026-12) +186 in 393d · avg +0/day 197 99 0 2025-11-05: ★ 12025-11-29: ★ 442025-12-27: ★ 722026-01-24: ★ 822026-02-21: ★ 1052026-03-21: ★ 1112026-04-18: ★ 1242026-05-16: ★ 1322026-06-13: ★ 1362026-07-11: ★ 1442026-08-08: ★ 1472026-09-05: ★ 1492026-10-03: ★ 1512026-10-31: ★ 1832026-12-03: ★ 187 ★ 187 2025-11 2026-05 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

browser-debugger-cli is a TypeScript package whose npm entry point is bdg. It is a shell CLI, not an MCP server. It starts or attaches to a Chromium browser session that stays available between command invocations. An agent can click in one process, inspect the network and console in the next, and continue without resetting the page. Named sessions let separate debugging tasks run side by side.

The runtime has four direct dependencies: commander for the command interface, chrome-launcher for browser startup, ws for WebSocket communication, and devtools-protocol for CDP definitions. High-level commands cover common inspection and interaction tasks; searchable, describable raw CDP methods extend coverage without adding a dedicated CLI command for each operation.

Key Capabilities & Differentiators

bdg combines interaction with diagnosis. It can click, fill, and wait in pages with shadow DOM and iframes, then report visibility, overlap, the CSS rule behind a property, event listeners, or the accessibility tree. Viewport and mobile emulation support responsive checks. Contrast and accessibility audits surface issues for investigation; screenshots are available but are not required for the core workflow.

The same session exposes console messages, network requests and headers, cookies, live activity, and HAR export, so a UI symptom can be correlated with a failing request without replaying the interaction. Raw CDP extends the tool to performance metrics, CPU and heap profiling, tracing, and throttling. Structured output and action-specific exit codes let scripts distinguish successful operations from failures instead of relying on prose alone.

Trade-offs & Limitations

bdg fits investigations where the next action depends on what a live page just did. Playwright or Puppeteer is a better base for maintained, repeatable test suites. Chrome DevTools MCP is the better fit when the agent expects native MCP tools or needs higher-level Lighthouse, trace interpretation, or heap snapshot analysis. The five-task CLI-versus-MCP benchmark used bdg 0.6.x in November 2025 and is not sufficient evidence of a current performance advantage.

The protocol choice limits support to Chromium-based browsers; Firefox and Safari are out of scope. Attaching to an existing profile preserves login state, but also gives the tool access to sensitive browser data, including HttpOnly cookie values and authorization headers. Use a dedicated profile and restrict access to debugging endpoints and captured artifacts. The project is MIT-licensed; access to target sites and handling of captured data are separate concerns.

Hardware & Deployment Guide

Install with npm install -g browser-debugger-cli on Node.js 22.12+ with Chrome, Chromium, or Microsoft Edge. macOS, Linux, and Windows via WSL are supported; native PowerShell and Git Bash are not. Edge can be selected with CHROME_PATH; an existing debugging endpoint can be reached with --chrome-ws-url. The CLI and browser can run locally without a hosted backend or model runtime, although visited sites still need to be reachable.

The Docker Compose example runs a timed headless capture against httpbin using the local bdg-test:local image, then lists /home/node/.bdg/. Container launches use --no-sandbox; keep that workload isolated and avoid using personal browser profiles. Releases v0.21.0 through v0.23.0 tightened reporting for failed navigation and rejected input. In v0.23.0, fills are checked immediately and after two seconds; page formatting is accepted, while discarded values produce exit code 90. That release also added eval --raw.

Session model: Separate bdg processes operate on a persistent browser session; named sessions support parallel work.
Agent integration: --help --json exposes commands, flags, and exit codes; JSON errors can include correction suggestions.
DOM diagnosis: Layout inspection checks visibility and overlap, while dom inspect --why identifies the CSS rule behind a property.
Browser telemetry: Filter failed requests, inspect console messages, follow live activity, and export HAR from the same session.
Protocol access: Raw CDP methods are searchable and self-describing, extending coverage to profiling, tracing, and throttling.
Outcome verification: v0.23.0 checks whether a fill persisted after two seconds and returns exit code 90 if the page discarded it.
Best For

Developers and terminal-capable coding agents iterating on live Chromium pages, correlating UI behavior with DOM, console, and network evidence.

Skip If

You need native MCP integration, Firefox or Safari coverage, or a maintained suite of repeatable browser tests.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedCLI
npm install -g browser-debugger-cli
bdg localhost:3000

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
browser-debugger-cli ★187—TypeScriptMITA persistent Chrome debugging session for shell agents, powered by CDP
chrome-devtools-mcp60.4k+760TypeScriptApache-2.0Chrome DevTools via MCP and CLI for live browser debugging and performance analy
agent-browser55.4k+1kRustApache-2.0Rust CLI and stdio MCP for agents that read and act on live web pages
rea488.8k+7.6kTypeScriptMITA local CLI and MCP server for evidence-backed app and binary analysis

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/szymdzum/browser-debugger-cli.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

szymdzum/browser-debugger-cli Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about browser-debugger-cli

Does bdg require an MCP client or server?

No. bdg is a shell CLI, not an MCP server. A terminal-capable agent starts or attaches to a persistent Chromium session, invokes individual commands, and can branch on JSON output and exit codes. The optional agent skill documents that workflow without adding an MCP transport.

What hardware should I provision for local or container runs?

There is no local model runtime or specified VRAM requirement. Budget for Node.js 22.12+ and the Chromium workload: page complexity, open tabs, concurrent sessions, and profiling or tracing activity matter more than the CLI alone. Measure representative workloads before setting container limits.

Can a company self-host bdg or redistribute it?

Yes. The project is MIT-licensed and can be self-hosted or used commercially, subject to preserving the copyright and permission notices when redistributing covered software. The license does not grant rights to third-party sites or their data. Treat captured headers, cookies, and HAR files as sensitive.

When should we choose Playwright, Puppeteer, or Chrome DevTools MCP instead?

Use bdg for interactive diagnosis when the next step depends on a live page's response. Prefer Playwright or Puppeteer for maintained, repeatable test suites, and Chrome DevTools MCP when native MCP integration or its higher-level Lighthouse, trace, and heap-analysis tools are requirements.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining szymdzum/browser-debugger-cli? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature szymdzum/browser-debugger-cli on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare