Skip to content

Simple CLI for testing webhooks locally. Instant endpoint, real-time logging, zero config.

Notifications You must be signed in to change notification settings

tadaspi/hooktest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸͺ HookTest CLI

Simple webhook testing for developers. Start a local server, get webhook payloads logged to your terminal.

Quick Start

npx hooktest-cli

That's it. Server starts on port 3456. Point your webhooks at http://localhost:3456.

Custom Port

npx hooktest-cli 8080

What It Does

  • Starts a local HTTP server
  • Logs all incoming requests (method, headers, body)
  • Returns {"received": true} to acknowledge webhooks
  • Pretty-prints JSON bodies

Example Output

πŸͺ HookTest - Webhook Testing Server
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Listening on: http://localhost:3456

[2024-01-15T10:30:00.000Z] POST /webhook
Headers: {
  "content-type": "application/json"
}
Body: {
  "event": "payment.completed",
  "amount": 4999
}
---

Need a Public URL?

For testing with external services (Stripe, GitHub, etc.), you need a public URL.

HookTest Pro gives you:

  • Permanent public webhook URLs
  • Web dashboard to view all requests
  • Request history and replay
  • No ngrok or tunneling needed

License

MIT

About

Simple CLI for testing webhooks locally. Instant endpoint, real-time logging, zero config.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published