hono
the lightweight router
hono connects routing, middleware, validation, rpc, jsx, streaming, and testing through one context model. check the installed version and current hono docs before applying version-sensitive reference details.
small and typedmiddleware in orderruns on every edge
Use when building, testing, or reviewing Hono web applications -- routing, middleware, context, validators (zod), JSX, RPC mode (hono/client), streaming, testing via app.request(), runtime adapters (Workers/Node/Bun/Deno), or the Hono CLI.
methodology
- start with the hono reference -- it covers routes, middleware, c.set/c.get, grouping, error handling, zod validators, rpc mode (hono/client), jsx, streaming, serve-static, and testing via app.request().
- probe routes with app.request(); if the Hono CLI is installed, check hono --help before using its version-specific inspection commands.
- anything beyond the inline reference: fetch live docs with curl -H "Accept: text/markdown" https://hono.dev/docs/<page>; index at https://hono.dev/llms.txt.
- deploying to cloudflare also loads the cloudflare guru; the live project AGENTS.md and operator directives override this guide.
contents
- honofull inline reference: routing, middleware, zod validators, jsx, rpc client, app.request() testing, streaming, runtime adapters, hono cli and live-doc recipe
- trainedlearned layer -- read first