LibraryActive

Hono Middleware

Middleware for the Hono web framework that runs before or after endpoint handlers.

Open source page ↗

Product features

Product features

Built-in Middleware

Hono ships built-in middleware that does not depend on external modules.

Custom Middleware

Write middleware inside app.use() or in separate files using createMiddleware().

Developer Experience ​

Execution Order

Middleware executes in registration order; before-next first, after-next last.

Features ​

Hono ​

Hono in 1 minute ​

Lightweight ​

Middleware & Helpers ​

Modify Response After Next

Middleware can modify the response after calling next().

Multiple routers ​

Quick Start ​

Third-party Middleware

Third-party middleware can depend on third-party libraries for complex apps.

Type Inference Across Chained Middleware

Chained .use() calls accumulate Variables types accessible to route handlers.

Ultrafast ​

Use-cases ​

Web Standards ​

Who is using Hono? ​