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

@hookpipe/providers

v0.1.0

Published

Typed webhook provider definitions — verify signatures, parse events, validate payloads, and browse event catalogs.

Readme

@hookpipe/providers

Typed webhook provider definitions — verify signatures, parse events, validate payloads, and browse event catalogs.

Zero competitors offer payload schemas. hookpipe providers do.

Install

npm install @hookpipe/providers

Quick Start

Parse event types

import { stripe } from '@hookpipe/providers';

const eventType = stripe.parseEventType(body);
// → "payment_intent.succeeded"

Validate payloads with Zod schemas

import { stripe } from '@hookpipe/providers';

const event = stripe.events['payment_intent.succeeded'];
if (typeof event !== 'string' && event.schema) {
  const result = event.schema.safeParse(body);
  if (!result.success) console.error('Invalid payload:', result.error);
}

Type-safe handler

import { z } from 'zod';
import { stripe } from '@hookpipe/providers';

const def = stripe.events['payment_intent.succeeded'];
const schema = typeof def !== 'string' ? def.schema! : undefined;
type PaymentIntent = z.infer<typeof schema>;
// → TypeScript infers the full payload type

Get verification config

import { github } from '@hookpipe/providers';

console.log(github.verification);
// → { header: 'x-hub-signature-256', algorithm: 'hmac-sha256' }

Browse event catalog

import { stripe } from '@hookpipe/providers';

Object.entries(stripe.events)
  .filter(([_, e]) => typeof e !== 'string' && e.category === 'payments')
  .map(([name]) => name);
// → ['payment_intent.created', 'payment_intent.succeeded', ...]

Built-in Providers

| Provider | Events | Verification | Schema | Challenge | Presets | |----------|--------|-------------|--------|-----------|---------| | Stripe | 22 | stripe-signature | 3 events | — | 5 | | GitHub | 18 | hmac-sha256 | — | — | 5 | | Slack | 10 | slack-signature | — | ✓ | 3 | | Shopify | 17 | hmac-sha256 (base64) | — | — | 4 | | Vercel | 9 | hmac-sha1 | — | — | 2 |

Schemas are progressive — added per event as needed. PRs welcome.

Create Your Own Provider

Minimum — 4 required fields:

import { defineProvider } from '@hookpipe/providers/define';

export default defineProvider({
  id: 'linear',
  name: 'Linear',
  verification: { header: 'linear-signature', algorithm: 'hmac-sha256' },
  events: { 'Issue.create': 'New issue created' },
});

With schema:

import { z } from 'zod';
import { defineProvider } from '@hookpipe/providers/define';

export default defineProvider({
  id: 'linear',
  name: 'Linear',
  verification: { header: 'linear-signature', algorithm: 'hmac-sha256' },
  events: {
    'Issue.create': {
      description: 'New issue created',
      category: 'issues',
      schema: z.object({
        action: z.literal('create'),
        type: z.literal('Issue'),
        data: z.object({
          id: z.string(),
          title: z.string(),
          state: z.object({ name: z.string() }).passthrough(),
        }).passthrough(),
      }),
    },
  },
});

See DESIGN.md for the full architecture and provider ecosystem.

What This Package Does NOT Include

  • Signature verification crypto — use hookpipe runtime or implement yourself
  • HTTP handling — no request/response logic
  • Queue/delivery logic — no retries, no persistence

This is a knowledge-only package. It tells you what to verify and what the payload looks like, not how to verify.

API Reference

Functions

  • defineProvider(def)Provider — create a typed provider definition

Data

  • builtinProvidersRecord<string, Provider> of all built-in providers
  • stripe, github, slack, shopify, vercel — individual provider exports

Types

  • Provider, ProviderDefinition — provider interfaces
  • VerificationConfig — signature verification configuration
  • EventCatalog, EventDefinition — event type definitions (includes optional schema)
  • ChallengeConfig — challenge-response configuration
  • MockGenerators, Presets, NextSteps, SecretDefinition

License

Apache-2.0