Hono.js
| Hono | |
|---|---|
| Developer | Yusuke Wada |
| Written in | TypeScript |
| Operating system | Cross-platform |
| Platform | Node.js, Deno, Bun, Cloudflare Workers, Vercel, AWS Lambda, Fastly Compute |
| Type | Web framework |
| License | MIT License |
| Website | hono |
Hono (or Hono.js) is an open-source web framework for JavaScript and TypeScript. It is designed around Web standards and supports multiple JavaScript runtimes and deployment platforms, including Cloudflare Workers, Deno, Bun, Node.js, Vercel, AWS Lambda, and Fastly Compute.[1][2][3]
Hono is particularly associated with edge computing and serverless environments. Cloudflare documents Hono as a framework that can be used with Cloudflare Workers to build web applications and APIs, including applications combining a Hono API with a React single-page application.[4]
Features
[edit]Hono provides routing, middleware, request handling, and utilities for developing web applications and APIs. The framework uses Web Standard APIs, including the `Request` and `Response` interfaces, to allow applications to run across different JavaScript environments.[5]
The framework supports TypeScript and provides middleware for functions including authentication, CORS, caching, compression, logging, request identification, and security-related HTTP headers.[6]
Hono includes multiple routing implementations, including `RegExpRouter`, `SmartRouter`, `LinearRouter`, and `PatternRouter`.[7]
Runtime support
[edit]Hono is designed to operate across JavaScript runtimes that provide compatible Web APIs. The project supports Cloudflare Workers, Deno, Bun, Vercel, AWS Lambda, Fastly Compute, and Node.js through a Node.js adapter.[8][9]
Performance
[edit]Hono publishes benchmarks for its routing implementations and comparisons with other JavaScript routers. In a benchmark conducted for Cloudflare Workers and published by the project, Hono's `RegExpRouter` achieved 402,820 operations per second, compared with 212,598 for itty-router, 297,036 for sunder, and 197,345 for worktop.[10]
These figures are specific to the benchmark's environment and methodology and do not establish a universal performance ranking for web frameworks.
Development
[edit]Hono's source code is publicly hosted on GitHub in the `honojs/hono` repository. The repository describes Hono as a web framework built on Web Standards and provides the framework's source code, documentation, and issue tracker.[11]
Hono is distributed through the npm package registry. The package includes TypeScript declarations and is published as an open-source package with no runtime dependencies.[12]
See also
[edit]References
[edit]- ↑ "Hono". Cloudflare Developers. 2026-04-23. Retrieved 2026-08-08.
- ↑ "hono". npm. Retrieved 2026-08-08.
- ↑ "The story of web framework Hono, from the creator of Hono". Cloudflare Blog. 2024-10-17. Retrieved 2026-08-08.
- ↑ "Hono". Cloudflare Developers. 2026-04-23. Retrieved 2026-08-08.
- ↑ "Web Standards". Hono. Retrieved 2026-08-08.
- ↑ "Hono". Hono. Retrieved 2026-08-08.
- ↑ "Routers". Hono. Retrieved 2026-08-08.
- ↑ "Hono". Cloudflare Developers. 2026-04-23. Retrieved 2026-08-08.
- ↑ "hono". npm. Retrieved 2026-08-08.
- ↑ "Benchmarks". Hono. Retrieved 2026-08-08.
- ↑ "honojs/hono". GitHub. Retrieved 2026-08-08.
- ↑ "hono". npm. Retrieved 2026-08-08.