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

@volh/pi-network-monitor

v0.1.0

Published

Network request monitor for pi agent — live overlay showing all HTTP traffic

Readme

pi-network-monitor

Network request monitor for pi coding agent.

Shows every HTTP request that pi and its extensions make — LLM API calls, web searches, content fetches, auth flows — in a live overlay. Useful for understanding what's happening on the network, debugging slow requests, and seeing the full request chain behind tools like pi-web-access.

How it works

Uses Node.js diagnostics_channel to subscribe to undici's request lifecycle events. Since pi and all extensions run in the same Node.js process and use the global fetch(), this captures everything with zero monkey-patching.

Install

pi install npm:@volh/pi-network-monitor

Or from git:

pi install https://github.com/volh/pi-network-monitor

Requires pi v0.37.3+. No dependencies.

Usage

Open with Alt+N or /network.

List view

Each line shows method, status code (color-coded), host + path, and duration.

| Key | Action | |-----|--------| | ↑/↓ or j/k | Scroll | | PgUp/PgDn | Jump 10 entries | | Home/End | Jump to top/bottom | | Enter or d | Detail view | | f | Host filter | | c | Clear history | | Esc | Close |

Detail view

Full URL (wrapped), HTTP status, TTFB, total duration, timestamps with millisecond precision.

Host filter

Press f, start typing to search (e.g. antapi.anthropic.com). Matching substring highlighted. Hosts sorted by request count. Enter to apply, Esc to cancel.

Configuration

~/.pi/network-monitor.json:

{
  "shortcut": "alt+n",
  "anchor": "center",
  "width": "60%",
  "maxHeight": "80%"
}

| Key | Default | Description | |-----|---------|-------------| | shortcut | alt+n | Keyboard shortcut | | anchor | center | Overlay position (center, right-center, top-right, etc.) | | width | 60% | Overlay width (percentage or columns) | | maxHeight | 80% | Maximum height |

What gets captured

Every fetch() call in the pi process — LLM API calls (any provider), search APIs, content fetches, auth flows, extension traffic. Per request: method, full URL, status code, TTFB, total duration, errors. Stores last 500 requests in memory, not persisted.

License

MIT