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

  1. 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().
  2. probe routes with app.request(); if the Hono CLI is installed, check hono --help before using its version-specific inspection commands.
  3. 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.
  4. deploying to cloudflare also loads the cloudflare guru; the live project AGENTS.md and operator directives override this guide.

contents

search pages

go to any page