网页
综合
更新时间 2026-11-06 08:07:55
Hono - Web framework built on Web Standards
自动蜘蛛
hono.dev
正文约 2501 字
Developer Experience
Cloudflare Workers + Vite
Ali Function Compute
Basic Authentication
Bearer Authentication
3rd-party Middleware
Hono - means flame🔥 in Japanese - is a small, simple, and ultrafast web framework built on Web Standards. It works on any JavaScript runtime: Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Netlify, AWS Lambda, Lambda@Edge, and Node.js.
Fast, but not only fast.
Hono is a simple web application framework similar to Express, without a frontend. But it runs on CDN Edges and allows you to construct larger applications when combined with middleware. Here are some examples of use-cases.
Do you want to see more? See Who is using Hono in production?.
A demonstration to create an application for Cloudflare Workers with Hono.
Hono is the fastest, compared to other routers for Cloudflare Workers.
See more benchmarks.
Hono is so small. With the hono/tiny preset, its size is under 14KB when minified. There are many middleware and adapters, but they are bundled only when used. For context, the size of Express is 572KB.
Hono has multiple routers.
RegExpRouter is the fastest router in the JavaScript world. It matches the route using a single large Regex created before dispatch. With SmartRouter, it supports all route patterns.
LinearRouter registers the routes very quickly, so it's suitable for an environment that initializes applications every time. PatternRouter simply adds and matches the pattern, making it small.
See more information about routes.
Thanks to the use of the Web Standards, Hono works on a lot of platforms.
And by using a Node.js adapter, Hono works on Node.js.
See more information about Web Standards.
Hono has many middleware and helpers. This makes "Write Less, do more" a reality.
Out of the box, Hono provides middleware and helpers for:
For example, adding ETag and request logging only takes a few lines of code with Hono:
See more information about Middleware.
Hono provides a delightful "Developer Experience".
Easy access to Request/Response thanks to the Context object. Moreover, Hono is written in TypeScript. Hono has "Types".
For example, the path parameters will be literal types.
And, the Validator and Hono Client hc enable the RPC mode. In RPC mode, you can use your favorite validator such as Zod and easily share server-side API specs with the client and build type-safe applications.
Released under the MIT License.
Copyright © 2022-present Yusuke Wada & Hono contributors. "kawaii" logo is created by SAWARATSUKI.
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。