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

webhook-bridge

v1.0.0

Published

Webhook forwarding and transformation service with Express

Readme

🌉 Webhook Bridge

TypeScript Express License: MIT

A webhook forwarding and transformation service built with Express. Receive webhooks from any source, transform payloads, verify signatures, and forward to multiple targets with automatic retries.

Features

  • Webhook Forwarding — Receive and forward webhooks to multiple target URLs
  • Payload Transformation — Rename, remove, add, map, and filter fields using JSONPath-like rules
  • HMAC Signature Verification — Validate incoming webhooks with HMAC-SHA256 signatures
  • Exponential Backoff Retry — Automatic retries with configurable backoff and jitter
  • Delivery Logging — Complete audit trail of all delivery attempts with statistics
  • Multi-Target — Forward a single webhook to multiple destinations simultaneously
  • Active/Inactive Toggle — Enable or disable webhooks without deleting them

Quick Start

npm install
npm run dev

Server starts on http://localhost:3100.

API Documentation

Register a Webhook

POST /webhooks/register
Content-Type: application/json

{
  "name": "GitHub Push Events",
  "source": "github",
  "secret": "my-webhook-secret",
  "signatureHeader": "X-Hub-Signature-256",
  "targets": [
    {
      "url": "https://my-app.com/api/github-events",
      "method": "POST",
      "maxRetries": 3,
      "timeout": 10000
    }
  ],
  "transformRules": [
    { "type": "rename", "sourcePath": "head_commit", "destPath": "commit" },
    { "type": "add", "destPath": "source", "value": "github" },
    { "type": "remove", "sourcePath": "sender.avatar_url" }
  ]
}

Receive a Webhook

POST /webhooks/:id
X-Hub-Signature-256: sha256=<signature>
Content-Type: application/json

{ "action": "push", "ref": "refs/heads/main", ... }

List All Webhooks

GET /webhooks
GET /webhooks?source=github

Get Webhook Details & Stats

GET /webhooks/:id

View Delivery Logs

GET /webhooks/:id/logs

Toggle Active Status

PATCH /webhooks/:id/toggle

Delete a Webhook

DELETE /webhooks/:id

Health Check

GET /health

Transform Rules

| Type | Description | Fields | |------|-------------|--------| | rename | Rename a field | sourcePath, destPath | | remove | Remove a field | sourcePath | | add | Add a static value | destPath, value | | map | Copy a field | sourcePath, destPath | | filter | Drop payload if condition fails | condition: { field, operator, value } |

Filter Operators

eq, neq, contains, exists, gt, lt

Signature Verification

Webhook Bridge supports HMAC-SHA256 signature verification. When a webhook is registered with a secret, incoming requests must include a valid signature in the configured header.

The signature format is: sha256=<hex-digest>

License

MIT


🇫🇷 Documentation en français

Description

Webhook Bridge est un service de transfert et de transformation de webhooks construit avec Express. Il permet de recevoir des webhooks depuis n'importe quelle source, de transformer les données, de vérifier les signatures HMAC, et de les retransmettre vers plusieurs destinations avec des tentatives automatiques en cas d'échec.

Installation

npm install
npm run dev

Le serveur démarre sur http://localhost:3100.

Utilisation

Enregistrez un webhook via POST /webhooks/register, puis envoyez vos événements vers POST /webhooks/:id. Consultez la documentation anglaise ci-dessus pour la liste complète des routes, des règles de transformation et des options de configuration.