Use NodeBin to collect all requests to a special URL which you can use to test your API Clients or your WebHooks.
NodeBin is a lightweight, self-hosted HTTP request collector — ideal for testing webhooks, HTTP clients, or any service that sends HTTP requests. Create a temporary bin and inspect request payloads in real time, either via UI or programmatically via its RESTful API. This project is inspired by the original postbin project.
- 🔗 Unique bin URLs that accept any HTTP method
- 🧪 View headers, query params, and request body
- 📈 Live tail mode with auto-scroll
- 📦 RESTful API to create bins and fetch requests
- 🗑️ Bins expire automatically after 30 minutes
- 🧼 Minimal and portable — runs on SQLite and Bun.js
- 🎨 Clean, responsive UI built with Tailwind CSS
Coming soon — deployable link or video here.
git clone https://github.com/costajoao/postbin.git
cd postbin
bun install
bun start
By default, NodeBin runs on http://localhost:3001
Create a new bin:
curl -X POST http://localhost:3001/api/bin
Send a request to your bin:
curl http://localhost:3001/abc123
Fetch all requests:
curl http://localhost:3001/api/bin/abc123/requests
See full API documentation in the UI.
- Backend: Bun.js, SQLite
- Frontend: Vanilla JS, Tailwind CSS
- Database: SQLite (in-memory by default)
.
├── db.js # SQLite schema and setup
├── index.js # Main Bun app
├── views/ # EJS templates
├── public/ # Static files (CSS, favicon)
├── routes/ # API + frontend routes
└── README.md
NodeBin is MIT licensed.
If you find this project useful, consider giving it a star! ⭐