Skip to content

Ilia01/hooklens

Repository files navigation

HookLens logo

HookLens

Debug webhook signature failures locally.

Figure out why webhook signature verification failed before your framework hides the evidence.

Documentation · npm · Latest release · Feedback · Contributing

License: MIT CI


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 your app/framework parses it, verifies it locally, stores the event, and lets you replay the delivery after you fix your app.

Important

HookLens now preserves exact raw request bytes for storage, verification, and replay. UTF-8/JSON text is derived only for display and --json output.

HookLens demo showing capture, verification, listing, and replay from the terminal

Install

Requires Node.js 24 or newer.

npm install -g hooklens

The loop

hooklens listen --verify github --secret ghsecret_xxx
hooklens list
hooklens inspect evt_abc123
hooklens replay evt_abc123 --to http://localhost:3000/webhook

Point 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 stored request and verification result, 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

License

MIT