Skip to content
nuvaireaPublic

About

A request bin for debugging webhooks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

hooktail

license Next.js TypeScript Postgres Tailwind deployed on Vercel

A request bin for debugging webhooks.

Open hooktail

hooktail two-pane view

Try it

Open the site and you get a bin with its own URL. Send anything to it:

curl -X POST https://hooktail.vercel.app/b/<your-id> -d 'hello'

How it works

Each visit creates a bin with a random id that expires after 24 hours. Every bin has two URLs:

URL Purpose
/inspect/<id> the page you look at
/b/<id> where you send requests

They are separate because a browser opening the page and curl sending a GET look the same to the server. The page refreshes automatically to show new requests. Expired bins are deleted whenever a new bin is created.

Limits

There are no accounts, so anyone can write to a bin. To keep it usable:

Limit Value
Body size 256 KB
Requests per bin 200
New bins per IP 20 per hour
Bin lifetime 24 hours

Bin ids are random and never listed anywhere, and bin pages are marked noindex. Anyone with a bin's URL can read it, so don't send secrets you can't afford to leak.

Stack

Run locally

git clone https://github.com/nuvairea/hooktail
cd hooktail
npm install

Create a Neon database, run the schema in db/schema.sql, then add your connection string to .env.local:

DATABASE_URL_POOLED=postgres://...
IP_HASH_SALT=any-random-string

IP_HASH_SALT is mixed into the hash of each visitor's IP, which is used to limit new bins per IP. The raw IP is never stored.

npm run dev

Roadmap

  • Optional accounts for longer-lived bins

License

MIT

About

A request bin for debugging webhooks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages