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

powhttp-cli

v0.1.0

Published

Context-efficient CLI for the powhttp Data API

Readme

powhttp-cli

Context-efficient CLI for the powhttp Data API. Designed for fast, low-noise access to captured HTTP traffic -- particularly useful as an AI agent tool where minimizing output tokens matters.

Install

npm install -g powhttp-cli

Or run without installing:

npx powhttp-cli sessions

Prerequisites

  • powhttp must be running
  • The Data API must be enabled: powhttp > Settings > Data API > Start
  • Default API port: 7777 (configurable in powhttp and in the CLI)

Usage

powhttp <command> [options]

Sessions

powhttp sessions                    # List all sessions
powhttp sessions active             # Get active session details
powhttp sessions bookmarks active   # List bookmarked entry IDs

Entries

powhttp entries                         # List entries in active session
powhttp entries --method POST           # Filter by HTTP method
powhttp entries --status 500            # Filter by status code
powhttp entries --domain api.example.com  # Filter by domain
powhttp entries --url "/api/v2"         # Filter by URL substring
powhttp entries --selected              # Only selected entries in the UI
powhttp entries --bookmarked            # Only bookmarked entries
powhttp entries --limit 10              # Limit results

Entry Detail

powhttp entry active                # Full detail of the active entry
powhttp entry active -d             # With decoded bodies
powhttp entry active --no-body      # Headers and metadata only
powhttp entry <ULID>                # Specific entry by ID

Bodies

powhttp body active                 # Decoded request and response body
powhttp body active --request       # Request body only
powhttp body active --response      # Response body only

WebSocket

powhttp ws active                   # Full WebSocket message log
powhttp ws active -c                # Compact one-line-per-message

TLS and HTTP/2

powhttp tls <connection_id>                 # TLS handshake details
powhttp http2 <connection_id>               # List HTTP/2 stream IDs
powhttp http2 <connection_id> <stream_id>   # Stream frame detail

Connection IDs are shown in entry detail output.

Global Options

| Flag | Description | |------|-------------| | --port <n> | API port (default: 7777) | | --host <h> | API host (default: localhost) | | -j, --json | Raw JSON output | | --no-body | Strip bodies from output | | -d, --decode-body | Decode base64 bodies inline | | --full | Show full bodies without truncation | | -l, --limit <n> | Limit number of results |

Configuration

The CLI checks for configuration in this order (highest priority first):

  1. CLI flags (--port, --host)
  2. Environment variables (POWHTTP_PORT, POWHTTP_HOST)
  3. Config file (~/.powhttp-cli/config.json)
  4. Defaults (localhost:7777)

Config file example (~/.powhttp-cli/config.json):

{
  "port": 7777,
  "host": "localhost"
}

JSON5 syntax is supported (comments, trailing commas).

Context-Efficient Patterns

When using powhttp-cli from an AI agent or script, these patterns minimize output size:

# Scan entries, then drill into one
powhttp entries --limit 20
powhttp entry <id> --no-body

# Get just the response payload
powhttp body <id> --response

# Find specific traffic
powhttp entries --method POST --url "/api/auth" --limit 5

License

MIT