npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

Iโ€™ve always been into building performant and accessible sites, but lately Iโ€™ve been taking it extremely seriously. So much so that Iโ€™ve been building a tool to help me optimize and monitor the sites that I build to make sure that Iโ€™m making an attempt to offer the best experience to those who visit them. If youโ€™re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, ๐Ÿ‘‹, Iโ€™m Ryan Hefnerย  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If youโ€™re interested in other things Iโ€™m working on, follow me on Twitter or check out the open source projects Iโ€™ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soonโ€“ish.

Open Software & Tools

This site wouldnโ€™t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you ๐Ÿ™

ยฉ 2025 โ€“ย Pkg Stats / Ryan Hefner

browser-debugger-mcp

v1.0.0

Published

๐Ÿ” Browser Debugger MCP - Bridge browser debugging context to AI assistants. One-command setup for automatic error capture and Claude Code integration.

Downloads

7

Readme

Browser Debugger MCP

๐Ÿ” Bridge browser debugging context to local AI-powered code assistants

Browser Debugger MCP is a revolutionary one-command setup tool that automatically captures browser debugging context (console logs, network requests, errors) and streams them in real-time to AI assistants like Claude Code for intelligent debugging assistance.

โšก One-Command Installation

# Install globally
npm install -g browser-debugger-mcp

# Start everything with one command
browser-debugger-mcp start --dashboard

# That's it! ๐ŸŽ‰

โœจ Features

๐Ÿš€ Live Data Streaming

  • Real-time capture - Live streaming of browser context via WebSocket
  • In-memory buffer - Last 100 captures instantly accessible
  • SQLite database - Persistent storage with automatic cleanup
  • Smart retention - Configurable data retention (default: 24 hours)

๐Ÿ› ๏ธ One-Command Experience

  • Zero configuration - Auto-detects and configures Claude Code MCP
  • Built-in dashboard - Live web interface at localhost:3030/dashboard
  • Desktop shortcuts - Automatic desktop shortcut creation
  • Background service - Runs as a system service with start/stop commands

๐Ÿ”ง Enhanced Data Collection

  • Automatic triggers - Captures on errors, network failures, and critical events
  • Enhanced network capture - Full HTTP request/response data via Chrome Debugger API
  • Smart filtering - Only captures meaningful events to reduce noise
  • Error categorization - Intelligent classification of JavaScript and network errors
  • Framework detection - Auto-detects React, Vue, Angular, and other frameworks

๐Ÿง  Advanced MCP Integration

  • Live MCP commands - Real-time data access for Claude Code
  • Enhanced error analysis - AI-powered error pattern recognition
  • Session management - Group captures by development session
  • Historical insights - Trend analysis and error history

๐Ÿ—๏ธ Live Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Browser        โ”‚    โ”‚  DevContext      โ”‚    โ”‚  Claude Code    โ”‚
โ”‚  Extension      โ”‚โ”€โ”€โ”€โ”€โ–ถ  Bridge Server   โ”‚โ”€โ”€โ”€โ”€โ–ถ  (MCP Client)  โ”‚
โ”‚                 โ”‚    โ”‚                  โ”‚    โ”‚                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚  โ€ข HTTP API      โ”‚    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        โ”‚               โ”‚  โ€ข WebSocket     โ”‚    
        โ”œโ”€โ”€ Auto Captureโ”‚  โ€ข SQLite DB     โ”‚    
        โ”œโ”€โ”€ DevTools    โ”‚  โ€ข Live Dashboardโ”‚    
        โ””โ”€โ”€ Smart Filterโ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    

๐Ÿš€ Quick Start

Step 1: Install & Start

# Install globally (one-time setup)
npm install -g browser-debugger-mcp

# Start everything with dashboard
browser-debugger-mcp start --dashboard

This single command:

  • โœ… Installs all dependencies
  • โœ… Starts HTTP server (port 3030)
  • โœ… Starts WebSocket server (port 3031)
  • โœ… Starts MCP server for Claude Code
  • โœ… Opens live dashboard in browser
  • โœ… Shows extension installation guide

Step 2: Install Browser Extension

The dashboard will show you exactly how to install the extension:

  1. Open chrome://extensions/
  2. Enable "Developer mode"
  3. Click "Load unpacked"
  4. Select: node_modules/browser-debugger-mcp/browser-extension/dist/

That's it! The extension auto-connects to localhost:3030.

Step 3: Use with Claude Code

Claude Code is automatically configured! Just ask:

"What errors occurred on my website?"
"Analyze the latest browser capture"  
"Show me network failures from the last hour"

๐Ÿ“Š Live Dashboard

Visit http://localhost:3030/dashboard for:

  • ๐Ÿ“ˆ Real-time statistics - Live capture counts, error rates, connected clients
  • ๐Ÿ” Activity feed - Live stream of captures, errors, and events
  • ๐ŸŽ›๏ธ Quick actions - Test capture, view logs, manage service
  • ๐Ÿ“Š Error analysis - Visual error trends and hotspots
  • ๐ŸŒ WebSocket monitoring - Live connection status and data flow

๐Ÿ› ๏ธ CLI Commands

# Service Management
browser-debugger-mcp start --dashboard    # Start with dashboard
browser-debugger-mcp status               # Show service status  
browser-debugger-mcp stop                 # Stop services
browser-debugger-mcp logs --follow        # Live log streaming

# Utilities  
browser-debugger-mcp dashboard            # Open dashboard
browser-debugger-mcp install             # Package extension

๐Ÿง  Enhanced MCP Commands

Ask Claude Code these questions after starting the service:

๐Ÿ“ฆ Capture Management:

  • list_captures - Show recent browser captures with smart filtering
  • get_latest_capture - Get detailed debugging context with error analysis
  • get_capture_by_id <ID> - Retrieve specific capture by ID

๐Ÿ” Error Analysis:

  • analyze_errors - AI-powered error pattern recognition
  • stream_status - Live service status and recent activity

๐ŸŽฏ Advanced Features:

  • Time-based filtering: analyze_errors --hours 2
  • Error-only captures: list_captures --errors-only
  • Storage data inclusion: get_latest_capture --include-storage

๐Ÿ—๏ธ Architecture & Data Flow

Live Data Pipeline

Browser Extension โ†’ HTTP API (3030) โ†’ SQLite Database + Memory Buffer โ†’ MCP Server โ†’ Claude Code
                 โ†˜ WebSocket (3031) โ†’ Live Dashboard

๐Ÿ”„ Data Management:

  • In-Memory Buffer: Last 100 captures for instant access
  • SQLite Database: Persistent storage with automatic cleanup
  • Retention Policy: 24-hour default with configurable cleanup
  • Smart Filtering: Only meaningful events to reduce noise

๐Ÿ”ง Configuration & Customization

Service Configuration

Create ~/.devcontext-bridge/config.json:

{
  "httpPort": 3030,
  "wsPort": 3031,
  "maxCapturesInMemory": 100,
  "dataRetentionHours": 24,
  "enableNotifications": true,
  "silent": false
}

Extension Features

  • ๐Ÿค– Automatic Capture: Smart triggers on errors and network failures
  • ๐Ÿ“Š DevTools Panel: Full debugging interface with live statistics
  • โšก Elements Sidebar: Quick capture from DOM inspector
  • ๐ŸŽ›๏ธ Professional Options: Comprehensive settings management
  • ๐Ÿ” Enhanced Network Capture: Full HTTP data via Chrome Debugger API

๐Ÿ“ Project Structure

browser-debugger-mcp/
โ”œโ”€โ”€ bin/devcontext-bridge.js         # CLI entry point
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ bridge-server.js            # Main server with live data
โ”‚   โ”œโ”€โ”€ mcp-server.js               # Enhanced MCP integration  
โ”‚   โ”œโ”€โ”€ logger.js                   # Real-time logging system
โ”‚   โ””โ”€โ”€ utils.js                    # Dashboard & utilities
โ”œโ”€โ”€ browser-extension/              # Chrome extension
โ”‚   โ”œโ”€โ”€ src/                       # TypeScript source
โ”‚   โ”œโ”€โ”€ public/                    # Static files  
โ”‚   โ””โ”€โ”€ dist/                      # Built extension
โ”œโ”€โ”€ scripts/
โ”‚   โ”œโ”€โ”€ post-install.js           # Auto-setup script
โ”‚   โ””โ”€โ”€ install-extension.js      # Extension packager
โ””โ”€โ”€ packages/                     # Distribution files

๐ŸŽ‰ Features

๐Ÿ†“ Community Edition (Free)

  • โœ… Live data streaming with WebSocket dashboard
  • โœ… Automatic capture on errors and network failures
  • โœ… Enhanced MCP commands with AI-powered analysis
  • โœ… Real-time logging with filtering and rotation
  • โœ… Professional CLI with service management
  • โœ… SQLite storage with automatic cleanup
  • โœ… Claude Code integration with auto-configuration

๐Ÿš€ Pro Edition (Future)

  • ๐Ÿ”ฎ Full network payloads and response bodies
  • ๐Ÿ”ฎ Storage data capture (localStorage, sessionStorage, cookies)
  • ๐Ÿ”ฎ Advanced analytics with trend analysis and insights
  • ๐Ÿ”ฎ Team collaboration with shared capture sessions
  • ๐Ÿ”ฎ Custom integrations and webhook support

๐Ÿค Contributing

We welcome contributions! Please check our Contributing Guidelines and:

  1. ๐Ÿ› Report bugs - Use GitHub Issues with detailed reproduction steps
  2. ๐Ÿ’ก Suggest features - Open Discussion threads for new ideas
  3. ๐Ÿ”ง Submit PRs - Follow our coding standards and include tests
  4. ๐Ÿ“š Improve docs - Help make DevContext Bridge more accessible

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐ŸŒŸ Star History

If DevContext Bridge helps your debugging workflow, please consider giving us a โญ on GitHub!


๐Ÿš€ Made with โค๏ธ for developers who love AI-powered debugging

๐Ÿ› Report Bug โ€ข ๐Ÿ’ก Request Feature โ€ข ๐Ÿ“– Documentation