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

@sylphx/webhookbin-cli

v0.0.10

Published

CLI tool to forward webhooks from WebhookBin to your local server

Readme

WebhookBin CLI

Forward webhooks from WebhookBin to your local development server. Similar to ngrok, but specifically designed for webhook testing.

Installation

npm install -g webhookbin-cli

Or use directly with npx:

npx webhookbin-cli --slug my-bin --api-key xxx --forward http://localhost:3000

Usage

webhookbin --slug <bin-slug> --api-key <api-key> --forward <local-url>

Options

| Option | Short | Description | Required | | ----------------- | ----- | --------------------------------------- | -------- | | --slug | -s | Your bin's slug | Yes | | --api-key | -k | API key for authentication | Yes | | --forward | -f | Local URL to forward webhooks to | Yes | | --host | -h | WebhookBin host (default: webhookbin.app) | No | | --verbose | -v | Enable verbose logging | No | | --help | | Show help message | No |

Example

# Forward webhooks to your local Express server
webhookbin --slug my-webhook-bin --api-key abc123 --forward http://localhost:3000/webhook

# With verbose logging
webhookbin -s my-bin -k abc123 -f http://localhost:8080/api/webhook -v

Environment Variables

You can also configure the CLI using environment variables:

| Variable | Description | | --------------------- | --------------------- | | WEBHOOKBIN_HOST | Override default host | | WEBHOOKBIN_API_KEY | Default API key | | WEBHOOKBIN_FORWARD_URL | Default forward URL |

How It Works

  1. Connect: The CLI establishes a Server-Sent Events (SSE) connection to WebhookBin
  2. Wait: When a webhook arrives at your bin, WebhookBin pushes it to the CLI
  3. Forward: The CLI forwards the request to your local server
  4. Respond: Your local server processes the webhook normally
Webhook Provider → WebhookBin → CLI → Your Local Server

Benefits

  • No SSRF risk: Requests are made from your machine, not WebhookBin's servers
  • Full request data: Headers, body, query params are all forwarded
  • Real-time: Instant forwarding via SSE
  • Automatic reconnection: CLI reconnects if connection drops

Getting Your API Key

  1. Go to your bin's settings page on WebhookBin
  2. Enable "Forwarding" in the settings
  3. Copy the API key shown in the settings

Output

The CLI shows real-time webhook activity:

[14:23:45] Connecting to webhookbin.app...
[14:23:46] Connected! Waiting for webhooks...
[14:23:46] Forwarding to: http://localhost:3000/webhook

[14:24:01] POST   /webhook 200 (45ms)
[14:24:15] POST   /webhook/event 201 (32ms)
[14:24:30] GET    /health 200 (5ms)

License

MIT