hono - Hono routing, middleware, and error handling for Avash
Use when writing or reviewing Hono routes, middleware, validation, or error handling under apps/api/src.
Tags
Updated: 2026-09-12Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write Hono routes and middleware
- Validate boundary requests using Zod
- Wrap route handlers with error boundary
- Enforce strict CORS allow-listing
- Connect database via Supavisor pooler
Inputs
- HTTP request body, query, and parameters
- Zod schemas from packages/types
- Environment CORS allow-list configuration
Outputs
- Generic 400 validation error responses
- User-safe JSON error responses
- Server-side error logs with correlation ID
- Configured Hono API routes and middleware
Requirements
- Cloudflare Workers runtime environment
- Supabase Supavisor transaction-mode pooler
- packages/types and packages/logger workspace packages
