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

feresbr-webhooktester

v1.1.5

Published

A real-time webhook testing tool for local development. See webhook data instantly in your browser, making it easy to debug integrations with services like Stripe, PayPal, and others.

Readme

Webhook Tester

A simple real-time tool for testing webhooks in your local development environment. It allows you to inspect webhook data sent from services like Stripe, PayPal, WhatsApp, and others, making webhook integration debugging a breeze.

Installation

Prerequisites:

  • Node.js and npm (or yarn) installed on your system.

Steps:

  1. Open your terminal and navigate to your project directory.
  2. Run the following command to install the feresbr-webhooktester package:
npm install feresbr-webhooktester 

You must use a Tunneling Service (for Local Testing) Since services like Paypal, Stripe, Whatsapp needs to send webhooks to a publicly accessible URL, and your tester is running on localhost, you need a tunneling service. Popular options include ngrok Very easy to use. After installing ngrok, run ngrok http 3001 (replace 3001 with your chosen port). Ngrok will give you a public URL (e.g., https://xxxxxx.ngrok.io) that forwards requests to your local port.

Trigger a PayPal Event for example, The user then performs an action that would trigger a webhook from PayPal (e.g., completes a test payment in the PayPal sandbox).

Inspect the Webhook The webhook will be sent from PayPal to the ngrok URL, which will forward it to the local webhook tester. The user can then view the received webhook data in their browser at http://localhost:3001.

Example Workflow:

Steps:

  1. User starts the webhook tester (listening on port 3001).
  2. User runs ngrok http 3001. ngrok provides the URL https://12345.ngrok.io.
  3. User goes to their PayPal developer dashboard and sets the webhook URL to https://12345.ngrok.io/webhook.
  4. User performs a test payment in PayPal.
  5. PayPal sends the webhook to https://12345.ngrok.io/webhook.
  6. ngrok forwards the webhook to http://localhost:3001/webhook.
  7. The webhook tester receives the webhook and displays it in the user's browser at http://localhost:3001.
  8. In summary The webhook-tester provides the receiving end of the webhook communication. The tunneling service (like ngrok) bridges the gap between the local development environment and the external service (like PayPal), allowing the webhooks to reach the tester. The user needs to configure the external service to send webhooks to the ngrok URL.

Usage:

    const webhookTester = require('feresbr-webhooktester');
    
    async function testWebhook() {

    const tester = webhookTester({ port: 3001, path: '/my-webhook' });

    const url = await tester.start();

    console.log(`Tester started at: ${url}`);

      //Send a webhook to http://localhost:3001/my-webhook using Postman or curl...

     // Get the received webhooks
     const receivedWebhooks = tester.getWebhooks();
     console.log("Received data:", receivedWebhooks);

    //stop the server when you're done
    // tester.stop();
    }

testWebhook();