该介绍目前仅提供英文版本。
Overview
This monorepo holds the third-party middleware for Hono, the web framework that runs on Cloudflare Workers and other runtimes. Middleware here is published to npm under the @hono namespace — for example, packages/hello ships as @hono/hello.
Middleware types in Hono
- Custom middleware — written by users themselves.
- Built-in middleware — part of the Hono core, with no external dependencies.
- Third-party middleware — maintained in this repository and allowed to depend on external libraries.
Usage
npm install @hono/hello
On Deno, import from npm: import { hello } from 'npm:@hono/hello'.
Contributing
Anyone can propose a middleware. Once the Hono maintainers accept it, the proposer becomes its author and maintains it here, responding to issues and reviewing pull requests.