← Guides

Test webhooks on localhost

Payment and chat services send webhooks to a public https URL. Buundo gives your laptop one, and shows every call as it arrives.

1. Start your app and a tunnel

npm run dev                       # your app on port 3000
buundo http 3000 --name hooks     # https://hooks.buundo.dev (reserved for you)

A reserved name keeps the URL the same tomorrow, so you set the webhook once. No account? --stable also keeps the same random address on your computer.

2. Point the service at it

3. Watch the calls

Each request prints a line with time, method, status and duration:

09:41:12  POST   201     48ms  /api/webhooks/stripe

A 404 means the path is wrong; a 500 means your handler failed, so look at your app's log. In the desktop app, press Requests on the tunnel.

Tips