What problem does it solve?
Projects built with Hono can drift into inconsistent route structure, mixed responsibilities, ad-hoc validation, and unsafe refactors that break edge compatibility or error handling contracts.
Core Features & Use Cases
- Request validation with Zod: Enforce typed, schema-validated inputs at the route boundary using @hono/zod-validator rather than trusting raw request JSON.
- Separation of concerns: Keep routing in src/routes, platform-agnostic business logic in src/services, and cross-cutting concerns (auth, CORS, error handling) in src/middleware to support safe phased refactoring.
- Edge-compatible middleware and errors: Centralize consistent JSON error responses with app.onError(), implement auth guard middleware, and avoid Node-only APIs so the same code works across Cloudflare Workers, Node.js, and Bun.
Quick Start
Ask your agent to restructure the codebase to match the Hono API skill: create src/routes, src/services, src/middleware, move business logic out of handlers, add zValidator-based Zod validation, and implement a global app.onError() that returns consistent JSON using HTTPException.