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 🙏

© 2026 – Pkg Stats / Ryan Hefner

relay-inspect

v1.0.0

Published

MCP server bridging AI coding agents and Chrome DevTools Protocol

Readme

Stop copying and pasting console logs, server errors and screenshots into your CLI. Relay Inspect gives your AI coding agent direct access to your browser—so it can see what you see, verify its own changes, and debug without asking you to copy and paste.

Relay Inspect is a lightweight tool for designers and engineers who want to spend more time building and less time debugging.

                                                    ┌─ Chrome (CDP over WebSocket)
AI Coding Agent  ←→  Relay Inspect (MCP over stdio) ─┤
                                                    └─ Dev Servers (child processes)

Relay Inspect is a bridge between the Chrome DevTools Protocol, your dev server and your agent. It exposes browser state as MCP tools—console output, network requests, DOM queries and screenshots. Your agent edits code, the dev server hot reloads, and the agent verifies the result itself.

Looking for annotations? The browser annotation overlay has moved to its own package: Annoku.

Tools

Your agent gets access to the following tools automatically via MCP:

Browser Inspection

| Tool | Description | Key Parameters | |------|-------------|----------------| | evaluate_js | Execute a JavaScript expression in the browser and return the result | expression (string) | | get_console_logs | Return buffered console output (logs, warnings, errors) | clear (bool, default: true) | | get_network_requests | Return captured network requests and responses | filter (URL substring), clear (bool, default: true) | | get_network_request_detail | Get full request/response body for a specific network request | requestId (string, from get_network_requests) | | get_elements | Query the DOM with a CSS selector and return matching elements' outer HTML | selector (string), limit (number, default: 10) | | take_screenshot | Capture a screenshot of the current page | format (png/jpeg, default: png), quality (0-100, jpeg only) |

Page Control

| Tool | Description | Key Parameters | |------|-------------|----------------| | reload_page | Reload the current page (optionally bypass cache) | ignoreCache (bool, default: false) | | wait_and_check | Wait N seconds then return new console output captured during the wait | seconds (number, default: 2) | | connect_to_page | Switch to a specific Chrome page target by ID or URL match | id (string) OR urlPattern (string), waitForMs (number) | | navigate_to | Navigate the current page to a new URL | url (string) |

Server Management

| Tool | Description | Key Parameters | |------|-------------|----------------| | start_server | Start a dev server or background process and capture its output | id (string), command (string), args (string[]), cwd (string), env (object), optional urlPattern + connectWaitForMs | | get_server_logs | Read stdout/stderr output from a managed server process | id (string), clear (bool, default: true) | | stop_server | Stop a running managed server process | id (string) | | list_servers | List all managed server processes and their status | — |

Diagnostics

| Tool | Description | Key Parameters | |------|-------------|----------------| | check_connection | Check Chrome connection status and diagnose issues (does not auto-launch) | — |

Setup

Prerequisites

  • Node.js 20+
  • Chrome (or any Chromium-based browser)

Add to your MCP client

No install required — npx downloads and runs the package on first use.

Claude Code — add to .mcp.json or .claude/settings.json:

{
  "mcpServers": {
    "relay-inspect": {
      "command": "npx",
      "args": ["-y", "relay-inspect"]
    }
  }
}

Codex CLI:

codex mcp add relay-inspect -- npx -y relay-inspect

opencode — add to opencode.json:

{
  "mcp": {
    "relay-inspect": {
      "type": "local",
      "command": "npx",
      "args": ["-y", "relay-inspect"]
    }
  }
}

Chrome is auto-launched on first tool call if it isn't already running. To disable this or customize behavior, see Configuration below.

Configuration

| Environment Variable | Default | Description | |---------------------|---------|-------------| | CHROME_DEBUG_PORT | 9222 | Chrome debugging port | | CHROME_DEBUG_HOST | localhost | Chrome debugging host | | CHROME_AUTO_LAUNCH | true | Auto-launch Chrome if not already running | | CHROME_PATH | (auto-detect) | Override Chrome/Chromium executable path | | CHROME_LAUNCH_URL | (none) | URL to open when Chrome is auto-launched (e.g. http://localhost:1420) | | CDP_WS_URL | (none) | Connect directly to a CDP WebSocket URL, skipping Chrome discovery | | CONSOLE_BUFFER_SIZE | 500 | Max console entries to buffer | | NETWORK_BUFFER_SIZE | 200 | Max network requests to buffer | | SERVER_LOG_BUFFER_SIZE | 1000 | Max log entries per managed server |

If Chrome is already running with --remote-debugging-port, Relay Inspect will connect to it directly without launching a new instance.

Development

git clone https://github.com/samsolomon/relay-inspect.git
cd relay-inspect
npm install
npm run dev    # Run with tsx (auto-recompile)
npm run build  # Build with tsup
npm start      # Run the built bundle
npm test       # Run tests with vitest

For detailed architecture, conventions, and CDP implementation notes, see CLAUDE.md.