| Hono | |
|---|---|
| Native name | 炎 (hono) |
| Developer | Yusuke Wada (和田裕介) |
| Initial release | December 15, 2021 |
| Written in | TypeScript |
| Operating system | Cross-platform |
| Type | Web application framework |
| License | MIT License |
Hono is an open-source web framework for TypeScript and JavaScript. Its defining feature is that it follows Web Standards, which allows it to run on any JavaScript runtime that also follows those standards.
The name Hono comes from the Japanese word 炎, meaning "flame." The framework was created by Japanese developer Yusuke Wada (和田裕介). Its history began on December 15, 2021. Hono was originally developed for Cloudflare Workers, an edge computing service operated by Cloudflare, but later added support for Deno and from there became able to run on essentially any JavaScript runtime.
At its core, Hono provides middleware and routing for handling HTTP requests.
1 Features✎
Hono offers several distinctive features that set it apart from other web frameworks.
1.1 RegExpRouter✎
RegExpRouter is the standard router built into Hono. It achieves fast routing by combining all route definitions into a single regular expression ahead of time, so that matching an incoming request can be done in one operation rather than by checking routes one by one.
1.2 Adapter✎
Because Hono is built only from Web Standard APIs, it can run on any runtime that follows those standards. For runtimes that do not provide every needed API directly, Hono offers a feature called Adapter, which allows the framework to run on a wide range of JavaScript environments. Through this system, Hono can be used on Deno, Node.js, Bun, Cloudflare Workers, and AWS Lambda. Beyond server-side runtimes, Hono can also run inside a web browser, which makes it possible to use the framework within a browser's Service Worker.
1.3 Middleware✎
Hono provides several middleware out of the box. Using these default middleware, developers can add features such as CORS support and access control based on IP address without needing extra libraries.
2 Adoption✎
Hono is used by a number of organizations and projects, including:
- Cloudflare
- cdnjs
- Fastly
- Prisma
- Resend
- CyberAgent