Hono Backend
Generates Hono API routes with proper validation, error handling, and database integration for the SO1 control plane API.Quick Reference
| Property | Value |
|---|---|
| Domain | Engineering |
| FORGE Stage | 3 (Documentation) |
| Repository | so1-control-plane-api |
| Stack | Hono 4, Zod, Drizzle ORM, PostgreSQL |
Core Capabilities
API Routes
RESTful endpoints with proper HTTP methods
Validation
Zod schemas for request/response validation
Database
Drizzle ORM queries and transactions
Middleware
Auth, logging, CORS, error handling
Usage Example
Output
Best Practices
- Always use
zValidatorfor request validation - Return standard error envelopes:
{ success: false, error: { code, message } } - Use Drizzle for all database operations
- Implement middleware for cross-cutting concerns
- Follow REST conventions (201 for created, 404 for not found)
Related Agents
- TypeScript Shared - Defines Zod schemas
- API Documenter - Generates OpenAPI specs
Agent Definition
View full agent markdown