Hono Web Framework
hono.dev
1
Leaving SiteNav
External Link Disclaimer
You are about to visit hono.dev. This website is not operated by us. We are not responsible for its content or privacy practices.
About this website
Hono is a small, fast, and ultra-lightweight web framework for edge computing created by Yusuke Wada in 2022, designed to run on every JavaScript runtime including Cloudflare Workers, Deno, Bun, Vercel, AWS Lambda, Vercel Edge, Lagon, and Node.js, providing a router with zero middleware dependencies, sub-millisecond cold start times, and a bundle size under fourteen kilobytes, making it ideal for serverless and edge deployment where cold start latency and bundle size are critical performance factors, adopted by Cloudflare in their official templates and by thousands of edge-deployed applications. The routing system uses a custom RegExpRouter that compiles route patterns into regular expressions at startup, achieving faster routing than trie-based routers through optimized regex matching, with support for path parameters, wildcard routes, optional parameters, regular expression constraints, nested routes through the route method for grouping, and chained route handlers, while the framework also provides the LinearRouter for dynamic route addition and the PatternRouter for minimal overhead. The middleware system provides a composable pipeline through the use method, with built-in middleware including CORS handling, basic authentication, bearer authentication, JWT verification, body limiting, compression through gzip, pretty-printed JSON, etag generation, request logging, and secure headers, while custom middleware can access and modify the context object that carries request data, response builders, and arbitrary variables set by upstream middleware. The helper ecosystem includes streaming responses for server-sent events, file serving, HTML response helpers with JSX rendering through the JSX middleware that transforms JSX into HTML strings at build time, and validation through Zod integration with the validator middleware. The type safety through HonoRequest generics. The HonoClient for type-safe client-side API calls. Designed for edge and serverless developers.
Statistics
1
Views
0
Clicks
0
Like
0
Dislike