Hono API Best Practices

Design HTTP APIs for Bun + Hono backends using Clean Architecture, Zod contracts in a shared package, OpenAPI generation from Zod, and thin controllers. Supports two selectable conventions — standard REST (resource paths with GET/POST/PATCH/PUT/DELETE) and POST-only action-based paths — picking one per project. Use when defining new endpoints, auditing or refactoring existing routes, shaping request/response contracts and envelopes, establishing API standards, or mapping typed application errors to HTTP status codes. Do not use for GraphQL, tRPC, non-Hono runtimes, or frontend-only concerns.

marcioaltoe Updated

File contents

marcioaltoe/skills/tree/main/skills/05-implementation-loop/hono-api-best-practices commit 86c2dfa336

Frequently asked questions

npx skillmds@latest add marcioaltoe/hono-api-best-practices