Skip to content

hono

Use when building APIs or web servers with Hono — routing, middleware, edge deployment, or multi-runtime support. Also use when deploying to Cloudflare Workers, Vercel Edge, Bun, Deno, or Node.js with a lightweight framework.

ModelSource
sonnetpack: backend
Full Reference

┏━ 🔧 hono ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when building APIs or web servers with Hon… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Hono is a lightweight (~14KB), ultra-fast web framework built on Web Standards. One codebase runs on Cloudflare Workers, Bun, Deno, Node.js, Vercel Edge, Netlify, and AWS Lambda via runtime adapters.

ItemValue
Version4.12.0 (latest)
Installnpm create hono@latest
Sizeless than 14KB minified
Node.js min18.14.1+
Runtime detectionc.env.VAR in Workers, process.env in Node/Bun
Key importshono, hono/cors, hono/jwt, hono/validator, @hono/zod-validator, hono/client
RuntimeAdapterDev Command
Cloudflare Workersbuilt-inwrangler dev
Node.js@hono/node-servernpm run dev
Bunbuilt-inbun run dev
Denobuilt-indeno task dev
Vercel Edgebuilt-invercel dev
AWS Lambdahono/aws-lambda
I want to…File
Set up a Hono server for any runtimereference/setup.md
Define routes, params, and handlersreference/routing.md
Add CORS, JWT, logger, and custom middlewarereference/middleware.md
Validate request bodies, queries, and paramsreference/validation.md
Use the type-safe RPC client (hc)reference/rpc-client.md
Handle errors globally with onErrorreference/error-handling.md
Write tests for Hono appsreference/testing.md
Deploy to Cloudflare, Node.js, Bun, or Vercelreference/deployment.md

Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.