A httpbin implementation built with Hono and deployed on Cloudflare Workers.
🌐 Live Demo: httpbin-hono.naas.workers.dev
httpbin is a simple HTTP Request & Response service, useful for testing HTTP clients and APIs. Special thanks to Kenneth Reitz for creating the original httpbin project. This implementation is inspired by and built upon the foundation of httpbin.
- Original httpbin: httpbin.org
- httpbin GitHub: github.com/postmanlabs/httpbin
- Kenneth Reitz: kennethreitz.org
Self-host your own httpbin instance on Cloudflare Workers in seconds. No configuration needed—just click the button below and deploy directly to your Cloudflare account. Get your own private httpbin service with no rate limits, complete control, and full customization.
After deployment, your httpbin service will be available at https://your-worker-name.your-subdomain.workers.dev. Visit the root endpoint to access the interactive Swagger UI documentation.
- 🚀 Easy Cloudflare Deployment: Deploy to Cloudflare Workers with a single click—no Docker, no server management, no infrastructure setup required
- ⚡ Fast & Low Latency: Built on Cloudflare's global edge network for minimal latency worldwide
- 💰 Cost-Effective: Extremely affordable—free for most use cases thanks to Cloudflare Workers' generous free tier
- 🔧 Portable: Built with Hono, making it easy to deploy to other platforms (Node.js, Deno, Bun, etc.) if needed
- Bun (v1.3 or later)
bun installStart the development server:
bun run devThe service will be available at http://localhost:8787 (or the port specified by Wrangler).
Deploy to Cloudflare Workers:
bun run deployFor generating/synchronizing types based on your Worker configuration, run:
bun run cf-typegenPass the Env as generics when instantiating Hono:
// src/index.ts
const app = new Hono<{ Bindings: Env }>()Check code quality with Biome:
bun run checkAuto-fix issues:
bun run check:fixOnce the server is running, visit the root endpoint (/) to access the Swagger UI documentation, which provides an interactive interface to explore all available endpoints.
ISC. See the LICENSE file for details. The original httpbin project is © Kenneth Reitz and distributed under the ISC License.