Hono
Ultralight web framework for edge runtimes (Cloudflare Workers, Deno, Bun).
Quick Start
import { Hono } from 'hono'
const app = new Hono()
app.get('/', (c) => c.text('Hello Hono!'))
app.get('/api/users/:id', (c) => c.json({ id: c.req.param('id'), name: 'Alice' }))
export default app
Middleware
import { cors } from 'hono/cors'
import { jwt } from 'hono/jwt'
app.use('/api/*', cors())
app.use('/api/admin/*', jwt({ secret: 'my-secret-key' }))
app.onError((err, c) => c.json({ error: err.message }, 500))
When to Use
- Cloudflare Workers APIs
- Edge computing applications
- Multi-runtime deployments
- Minimal bundle size requirements
Validation
- Server responds on all target runtimes
- Middleware chain executes correctly
- Edge deployment succeeds