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

simplehook-hono

v0.3.0

Published

Stable webhook URLs for localhost. One line of code. Hono adapter.

Readme

simplehook / simplehook-hono

One line of code. Webhooks just work.

Stop tunneling. Stop polling. Stop building webhook infrastructure. Add one SDK call and your local app receives real webhooks from Stripe, GitHub, Twilio — any provider.

listenToWebhooks(app, process.env.SIMPLEHOOK_KEY);

Your app opens an outbound WebSocket to simplehook.dev. When a webhook arrives at your stable URL, it's forwarded through the connection to your local server. Your response goes back to the caller. No CLI. No tunnel process. No URL that changes every session.

Why simplehook?

  • No CLI — just npm install and one function call
  • Permanent URLs — set once in Stripe/GitHub, never change them
  • Real responses — passthrough mode returns your actual response to the caller (TwiML, verification, etc.)
  • Queue + retry — if your app is offline, events queue and deliver when you reconnect
  • Dev mode by default — only connects in development, never in production

Install

npm install simplehook-hono

Quick start

import { Hono } from "hono";
import { listenToWebhooks } from "simplehook-hono";

const app = new Hono();

listenToWebhooks(app, process.env.SIMPLEHOOK_KEY);

app.post("/stripe/events", async (c) => {
  const body = await c.req.json();
  console.log("Webhook received!", body);
  return c.json({ received: true });
});

export default app;

Options

listenToWebhooks(app, apiKey, {
  forceEnable: false,     // Connect even in production
  serverUrl: "...",       // Override server URL
  onConnect: () => {},    // Called when connected
  onDisconnect: () => {}, // Called when disconnected
  silent: false,          // Suppress console output
});

Agents

Use agents to run multiple SDK instances and route events to specific ones. Create agents in the dashboard, then assign them to routes.

// This instance only receives events from routes assigned to "staging"
listenToWebhooks(app, process.env.SIMPLEHOOK_KEY, "staging");

Your webhook URL stays the same — event routing is configured in the dashboard, not the URL.

Dev mode

By default, simplehook only connects in development. Set SIMPLEHOOK_ENABLED=false to disable, or forceEnable: true to force.

Production is detected when NODE_ENV === "production".

Links

License

MIT