NestJS-style decorator-based framework for Hono (v3.0.0) — controller routing, dependency injection, guards, SSE, WebSocket, channels, and OpenAPI auto-generation. Ships TypeScript types, uses TC39 Stage 3 decorators (no experimentalDecorators, no reflect-metadata). Active development, major release v3 uses ESM-only; requires Hono >=4 and zod >=4 as peer dependencies. Compared to NestJS, it is lighter and Hono-native; compared to plain Hono, it adds DI and decorator-driven structure without heavy abstractions. Release cadence is irregular but feature-rich with each major bump.
npm install hono-forgeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic controller with dependency injection, GET/POST routes, Zod validation, and route building.
Use import syntax or ensure your project is configured for ESM (type='module' in package.json).
Remove experimentalDecorators and useTypeScript 5.0+ with target: 'ESNext'.
Use `import { HonoRouteBuilder } from 'hono-forge'` instead of `from 'hono-forge/builder'`.Use `HonoRouteBuilder` or upgrade to v3 which only exports `HonoRouteBuilder`.
Access request data via `c.req.param()`, `c.req.query()`, etc.
Ensure every class that participates in DI has the `@Injectable()` decorator.
Set 'type': 'module' in package.json or rename .js files to .mjs.
Switch to import syntax or use dynamic import(): const m = await import('hono-forge').Use `import { HonoRouteBuilder } from 'hono-forge'` and call HonoRouteBuilder.build().Set compilerOptions.experimentalDecorators to false and target to ESNext.