Skip to Content

Examples

A hosted Playground to receive signed webhooks right away, and two complete applications that install the published package.

Try the Playground

playground.good-webhooks.dev is a public app built on the published package. Sign in with GitHub, add an HTTPS endpoint, and receive signed clock.ticked and ping.requested events within minutes, with delivery history, retries, replay, and test events in the browser. Its source is a complete Next.js and worker deployment, and it is where the library is dogfooded.

Complete applications

Both applications live under examples/. They install good-webhooks from npm, so you can copy either one into your own repository.

Run locally

You need Node.js 24, npm, and Docker with Compose. In the example directory:

npm ci
docker compose up -d --wait
npm run setup
npm run dev

Open http://127.0.0.1:4311 for order fulfillment or http://127.0.0.1:4312 for billing. Keep the generated .env between restarts: it holds the key that encrypts registered endpoint secrets. Each README has a walkthrough and test instructions.

Smaller checked examples

The library's repository has short, type-checked examples that these docs include verbatim:

ExampleShows
examples/basicRollback, retry, replay, and receiver deduplication
examples/transactionsPayload-dependent recipient selection in a transaction
examples/better-authAuth instance, delivery engine, and worker split
examples/operationsSupervised worker and bounded cleanup entrypoints

On this page