hooklens
v1.0.1
Published
Debug webhook signature failures locally.
Downloads
422
Maintainers
Readme
HookLens
Debug webhook signature failures locally.
Figure out why webhook signature verification failed before your framework hides the evidence.
Documentation · npm · Latest release · Contributing
HookLens is a local CLI for the annoying part of webhook debugging: the delivery reached your app, verification still failed, and your framework already changed the body you needed to inspect.
It captures the incoming request before parsing, verifies it locally, stores the event, and lets you replay the exact delivery after you fix your app.
Install
Requires Node.js 24 or newer.
npm install -g hooklensThe loop
hooklens listen --verify github --secret ghsecret_xxx
hooklens list
hooklens inspect evt_abc123
hooklens replay evt_abc123 --to http://localhost:3000/webhookPoint your provider CLI, tunnel, or webhook source at http://127.0.0.1:4400.
Use HookLens when:
- the request reached your machine, but signature verification failed
- your framework parsed or re-serialized the body before verification
- you need the exact stored request, not a vague error line
- you want to replay the same event after changing middleware, secrets, or handler logic
It is not a tunnel, a hosted webhook inbox, or a replacement for provider delivery tooling.
Read Next
- Getting Started for installation and first capture
- Commands for the CLI reference
- Verification for failure codes and provider behavior
- Stripe signature failures
- GitHub signature mismatches
- Raw body mutation
- Contributing
