Hono.js

Hono
DeveloperYusuke Wada
Written inTypeScript
Operating systemCross-platform
PlatformNode.js, Deno, Bun, Cloudflare Workers, Vercel, AWS Lambda, Fastly Compute
TypeWeb framework
LicenseMIT License
Websitehono.dev

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

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

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

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

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

References

  1. ^ "Hono". Cloudflare Developers. 2026-04-23. Retrieved 2026-08-08.
  2. ^ "hono". npm. Retrieved 2026-08-08.
  3. ^ "The story of web framework Hono, from the creator of Hono". Cloudflare Blog. 2024-10-17. Retrieved 2026-08-08.
  4. ^ "Hono". Cloudflare Developers. 2026-04-23. Retrieved 2026-08-08.
  5. ^ "Web Standards". Hono. Retrieved 2026-08-08.
  6. ^ "Hono". Hono. Retrieved 2026-08-08.
  7. ^ "Routers". Hono. Retrieved 2026-08-08.
  8. ^ "Hono". Cloudflare Developers. 2026-04-23. Retrieved 2026-08-08.
  9. ^ "hono". npm. Retrieved 2026-08-08.
  10. ^ "Benchmarks". Hono. Retrieved 2026-08-08.
  11. ^ "honojs/hono". GitHub. Retrieved 2026-08-08.
  12. ^ "hono". npm. Retrieved 2026-08-08.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.