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

bun-inspect-echo

v0.1.3

Published

A debugging tool that captures and displays the inspector protocol messages for Bun processes

Downloads

42

Readme

bun-inspect-echo

A debugging tool that captures and displays the inspector protocol messages for Bun processes.

Installation

bunx bun-inspect-echo [script] <...args>

# or permanently install
bun install -g bun-inspect-echo

Usage

# Run a bun script with inspector protocol output
bun-inspect-echo ./path/to/script.ts

# Works with any bun command
bun-inspect-echo test
bun-inspect-echo run foo

Example Output

--------------------- Bun Inspector ---------------------
Listening on unix:///var/folders/wj/x9081kld0873cywddf9k8nfm0000gn/T/96splqxu49v.sock
--------------------- Bun Inspector ---------------------
{"result":{},"id":1}
{"result":{},"id":2}
{"method":"Heap.garbageCollected","params":{"collection":{"type":"partial","startTime":0.03853349993005395,"endTime":0.03875300008803606}}}
{"method":"Debugger.scriptParsed","params":{"scriptId":"2","url":"/Users/jarred/src/index.tsx","startLine":0,"startColumn":0,"endLine":11,"endColumn":0}}
{"method":"HTTPServer.listen","params":{"serverId":1,"url":"http://localhost:53406/","startTime":4165836274}}

How It Works

This tool:

  1. Creates a Unix domain socket
  2. Launches a new Bun process with the --inspect-wait flag pointing to the socket
  3. Connects to the inspector socket
  4. Enables all inspector domains
  5. Echoes all inspector protocol messages to stdout

Environment Variables

  • BUN_INSPECTOR_DOMAINS: Comma-separated list of inspector domains to enable (defaults to all domains)

Use Cases

  • Debugging Bun applications
  • Understanding the underlying inspector protocol
  • Learning how Bun starts and executes scripts
  • Monitoring garbage collection and performance events

License

MIT