@mmtq/hono-swagger
A zero-runtime-overhead, statically analyzed OpenAPI 3 generator for Hono and Zod. Stop manually maintaining duplicate OpenAPI metadata! @mmtq/hono-swagger is a CLI tool that parses your TypeScript AST at build-time to automatically generate a complete OpenAPI 3.x specification and Swagger UI from your existing Hono routes and Zod schemas.
Key Features
Zero Runtime Overhead
The documentation generation happens entirely at build-time. Your production Hono application isn't bloated with reflection or metadata-generation logic.
Single Source of Truth
Your actual Hono routes, Zod schemas, and JSDoc comments are the only source of truth. No need to wrap your routes in describeRoute() objects.
Type-Safe Responses
The lightweight typed() helper guarantees that your route handlers actually return the data shape declared in your Zod schemas.
Built-in Swagger UI
Effortlessly serve the beautiful Swagger UI directly from your Hono app using our zero-dependency middleware.
Ready to dive in? Head over to the installation guide to get started in under a minute.