How to test webhooks locally (Stripe & GitHub)
Florian Wartner · 2026-06-05
To test webhooks locally, give your dev server a public HTTPS URL with a tunnel, then register that
URL as the webhook endpoint. Providers like Stripe and GitHub can only POST to a public address -
they can't reach localhost directly.
npx useburrow http 3000
Use the printed URL (e.g. https://your-name.eu.useburrow.dev/webhooks) as your webhook endpoint.
Why webhooks need a tunnel
A webhook is an HTTP POST the provider sends to your server when an event happens. During
development your server runs on localhost, which the provider's servers cannot reach. A tunnel
exposes a public URL that forwards those POSTs to your local port.
Stripe
- Run
npx useburrow http 3000and copy the HTTPS URL. - In the Stripe Dashboard → Developers → Webhooks, add an endpoint pointing at
https://<your-url>/your/stripe/route. - Trigger a test event (or use the Stripe CLI) and watch it arrive.
- Open the inspector at
http://127.0.0.1:4040to see the full payload and replay it as many times as you need - no need to re-trigger from Stripe each time.
GitHub
- Run
npx useburrow http 3000. - In your repo → Settings → Webhooks → Add webhook, set the Payload URL to your public URL and choose the events.
- GitHub sends a
pingimmediately; replay it from the inspector while you build your handler.
Why the inspector matters
Webhook bugs are hard to reproduce because the event already fired. Burrow's local inspector keeps every request/response and lets you replay any delivery with one click - so you iterate on your handler without waiting for the next real event. Bodies stay local by default (DSGVO-first, EU-hosted).
Stable endpoints for shared dev
Reserve a subdomain or use a custom domain so your webhook URL survives restarts - see Pricing. Coming from ngrok? See the ngrok alternative.