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

hooksniff

v1.3.1

Published

Official HookSniff SDK — webhook delivery, verification, and management

Downloads

95

Readme

HookSniff Node.js SDK

Official Node.js/TypeScript SDK for the HookSniff webhook delivery platform.

Installation

npm install hooksniff

Quick Start

import { HookSniff } from "hooksniff";

const hs = new HookSniff("sk_live_xxx");

// List endpoints
const endpoints = await hs.endpoint.list();

// Send a webhook
const msg = await hs.message.create({
  event: "user.created",
  payload: { email: "[email protected]" },
});

// Verify incoming webhook
import { Webhook } from "hooksniff";
const wh = new Webhook("whsec_xxx");
const payload = wh.verify(rawBody, headers);

Resources

| Resource | Access | Description | |----------|--------|-------------| | Admin | hs.admin.* | Users, stats, revenue, settings | | Alert | hs.alert.* | Alert rules and test | | Analytics | hs.analytics.* | Delivery trend, success rate, latency | | ApiKey | hs.apiKey.* | List, create, delete, rotate | | Application | hs.application.* | Application CRUD | | Authentication | hs.authentication.* | Register, login, 2FA, password | | AuditLog | hs.auditLog.* | Audit trail | | BackgroundTask | hs.backgroundTask.* | List, get, cancel | | Billing | hs.billing.* | Subscription, usage, invoices | | Connector | hs.connector.* | Connector management | | CustomDomain | hs.customDomain.* | Add, verify, delete | | Device | hs.device.* | Push device registration | | Endpoint | hs.endpoint.* | CRUD, headers, secret rotation | | Environment | hs.environment.* | Env vars management | | EventType | hs.eventType.* | Event type CRUD | | Health | hs.health.* | Health check | | Inbound | hs.inbound.* | Inbound webhook configs | | Integration | hs.integration.* | Integration CRUD | | Message | hs.message.* | Send, list, get | | MessageAttempt | hs.messageAttempt.* | Delivery attempts | | MessagePoller | hs.messagePoller.* | Poll, seek, commit | | Notification | hs.notification.* | List, mark read | | OperationalWebhook | hs.operationalWebhook.* | Ops webhook endpoints | | Portal | hs.portal.* | Customer portal config | | RateLimit | hs.rateLimit.* | Per-endpoint rate limiting | | Routing | hs.routing.* | Endpoint routing rules | | Schema | hs.schema.* | Schema registry, validation | | Search | hs.search.* | Delivery search | | ServiceToken | hs.serviceToken.* | Token management | | Sso | hs.sso.* | SSO configuration | | Statistics | hs.statistics.* | App statistics | | Stream | hs.stream.* | Real-time streaming | | Team | hs.team.* | Team members, roles | | Template | hs.template.* | Webhook templates | | Transform | hs.transform.* | Payload transforms |

Configuration

const hs = new HookSniff("sk_live_xxx", {
  serverUrl: "https://your-instance.hooksniff.com", // optional
  requestTimeout: 30000,                             // optional
  numRetries: 2,                                     // optional
  debug: false,                                      // optional
});

Webhook Verification

import { Webhook } from "hooksniff";

const wh = new Webhook("whsec_xxx");

// Verify incoming webhook
const payload = wh.verify(rawBody, {
  "hooksniff-id": req.headers["hooksniff-id"],
  "hooksniff-timestamp": req.headers["hooksniff-timestamp"],
  "hooksniff-signature": req.headers["hooksniff-signature"],
});

Error Handling

import { NotFoundError, RateLimitError } from "hooksniff";

try {
  await hs.endpoint.get("nonexistent");
} catch (e) {
  if (e instanceof NotFoundError) {
    console.log("Not found");
  } else if (e instanceof RateLimitError) {
    console.log("Rate limited, retry after:", e.headers["retry-after"]);
  }
}

Links

License

MIT