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

hookcatch

v1.0.0

Published

CLI tool for creating localhost tunnels and testing webhooks with HookCatch

Readme

HookCatch CLI

Official CLI tool for webhook testing and localhost tunneling with HookCatch.

Installation

# Using npx (no installation)
npx hookcatch tunnel 3000

# Or install globally
npm install -g hookcatch
hookcatch tunnel 3000

Quick Start

# 1. Login with email/password
hookcatch login
# Enter your email and password

# 2. (Optional) Generate long-lived API token for automation
hookcatch token generate
export HOOKCATCH_API_KEY="hc_live_..."

# 3. Create a webhook bin
hookcatch bin create --name "Test Stripe"
# Returns: https://hookcatch.dev/b/abc123xyz

# 4. View captured requests
hookcatch bin requests abc123xyz

# 5. Tunnel your localhost
hookcatch tunnel 3000

Commands

Authentication

login

Authenticate with your HookCatch account (email/password or API token).

# Login with email/password (interactive)
hookcatch login

# Or login with API token directly
hookcatch login --token hc_live_xxx

For automation (OpenClaw, CI/CD):

# Generate a long-lived API token
hookcatch token generate

# Then use it via environment variable
export HOOKCATCH_API_KEY="hc_live_..."

# Or login directly
hookcatch login --token hc_live_...

logout

Remove stored credentials.

hookcatch logout

Bin Management (NEW!)

bin create

Create a new webhook bin.

hookcatch bin create [options]

# Options:
#   --name <name>          Bin name
#   --private              Create private bin
#   --password <password>  Password for private bin (min 4 chars)
#   --format <type>        Output format: json|text (default: text)

# Examples:
hookcatch bin create --name "Stripe Webhooks"
hookcatch bin create --private --password secret123

bin list

List all your bins.

hookcatch bin list [--format json]

bin requests <binId>

Get captured requests for a bin.

hookcatch bin requests <binId> [options]
hookcatch bin requests --binId <binId> [options]

# Options:
#   --limit <number>  Number of requests (default: 50)
#   --format <type>   Output format: json|table (default: table)
#   --method <method> Filter by HTTP method (GET, POST, etc.)
#   --password <password>  Password for private bins (or use your auth token if you own the bin)
#   --access-token <token> Access token for private bins

# Examples:
hookcatch bin requests abc123xyz --limit 10
hookcatch bin requests abc123xyz --format json --method POST
hookcatch bin requests abc123xyz --password "secret123"

Table output includes response status and payload type columns.

request <requestId>

Show full details for a single request (headers, query, body).

hookcatch request <requestId> <binId> [options]
hookcatch request --requestId <requestId> --binId <binId> [options]

# Options:
#   --format <type>   Output format: json|pretty (default: pretty)
#   --password <password>  Password for private bins
#   --access-token <token> Access token for private bins

# Example:
hookcatch request req_abc123 abc123xyz

replay <binId> <requestId>

Replay a captured request to a new URL.

hookcatch replay <binId> <requestId> <url>
hookcatch replay --binId <binId> --requestId <requestId> --url <url>

hookcatch replay <binId> <requestId> --url https://example.com/hook \
  --headers '{"X-Test":"1"}' \
  --body '<xml>keep raw</xml>'    # accepts JSON or raw text

Notes:

  • --body tries JSON first; if parsing fails, it is sent as raw text (works for XML/HTML/plain)
  • Replay counts toward your monthly request quota (same as UI)

bin delete <binId>

Delete a bin.

hookcatch bin delete <binId> --yes
hookcatch bin delete --binId <binId> --yes

bin update <binId>

Update bin settings (name/private/password).

hookcatch bin update <binId> --name "New Name"
hookcatch bin update <binId> --private --password "secret123"
hookcatch bin update <binId> --public

API Token Management (NEW!)

token generate

Generate a long-lived API token for automation.

hookcatch token generate
# Store the token securely - it won't be shown again!
# Use it with: export HOOKCATCH_TOKEN="hc_live_..."

token status

Check your API token status.

hookcatch token status

token revoke

Revoke your API token.

hookcatch token revoke --yes

Localhost Tunneling

tunnel <port>

Create a tunnel to your localhost.

hookcatch tunnel <port> [options]

# Options:
#   --password <password>  Password-protect tunnel
#   --subdomain <name>     Custom subdomain 
#   --capture <binId>      Capture outbound requests to bin
#   --proxy-port <port>    Local proxy port (default: 8081)

# Examples:
hookcatch tunnel 3000
hookcatch tunnel 8080 --password secret123
hookcatch tunnel 3000 --capture abc123

tunnel list

Show all your active tunnels.

hookcatch tunnel list

stop <tunnelId>

Stop a specific tunnel.

hookcatch stop abc123xyz

status / whoami

Show your account details.

hookcatch status
hookcatch whoami
hookcatch status --format json

Usage Examples

Test Stripe Webhooks

# Create a bin
hookcatch bin create --name "Stripe Test"
# Use the URL in Stripe dashboard

# View captured webhooks
hookcatch bin requests abc123xyz --format json

Expose Local API

# Start your local server
# python -m http.server 8000 &

# Expose it via tunnel
hookcatch tunnel 8000
# Public URL: https://hookcatch.dev/tunnel/xyz789

Capture Outbound Requests

# Start tunnel with capture
hookcatch tunnel 3000 --capture my-bin-id

# Configure your app to use proxy
HTTP_PROXY=http://localhost:8081 node app.js

Automation with API Tokens

# Generate token
hookcatch token generate
export HOOKCATCH_API_KEY="hc_live_..."

# Use in scripts
hookcatch bin create --name "CI Test" --format json | jq -r '.url'

OpenClaw Integration

HookCatch has a dedicated OpenClaw skill for AI-powered webhook testing:

# Install via ClawHub
clawhub install hookcatch

See skills/hookcatch/README.md for details.

Environment Variables

Configure the CLI using environment variables:

# API Token (for authentication)
export HOOKCATCH_TOKEN="hc_live_..."

# API URL (defaults to https://api.hookcatch.dev)
export HOOKCATCH_API_URL="https://api.hookcatch.dev"

# For local development
export HOOKCATCH_API_URL="http://localhost:3002"

Priority order:

  1. Environment variables (HOOKCATCH_TOKEN, HOOKCATCH_API_URL)
  2. Config file (~/.config/hookcatch/config.json)
  3. Default values (production API)

Features

Webhook Bins

  • ✅ Create unlimited bins (tier-dependent)
  • ✅ Capture HTTP requests in real-time
  • ✅ Private bins with password protection
  • ✅ JSON output for automation
  • ✅ Request filtering by method

Localhost Tunnels

  • ✅ Zero-config tunnel creation
  • ✅ Real-time request forwarding
  • ✅ Automatic reconnection
  • ✅ Password protection

API Tokens

  • ✅ Long-lived tokens for automation
  • ✅ Secure bcrypt hashing
  • ✅ Easy revocation
  • ✅ No expiration (until regenerated)

Support

  • Documentation: https://docs.hookcatch.dev
  • GitHub: https://github.com/hookcatch/cli
  • Email: [email protected]

License

MIT