chanfana
Build validated OpenAPI APIs on Cloudflare Workers with AI help
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install chanfana skills?โผ
Run `npx skills add cloudflare/chanfana --all -g -y` in your terminal to install the write-endpoints skill globally for your AI agent.
What does chanfana do?โผ
Chanfana adds automatic OpenAPI schema generation and request validation to Hono or itty-router APIs, including ready-made CRUD endpoints with Cloudflare D1 database support.
How does the write-endpoints skill help my AI agent?โผ
It teaches your AI agent the exact patterns for defining schemas, validating requests, building CRUD endpoints, and handling errors with chanfana, so generated code works on the first try.
Does chanfana work with Zod v4?โผ
Yes. Chanfana v3 is built for Zod v4 with full TypeScript inference, and the skill enforces correct v4 syntax like z.email() and z.uuid().
Can I use chanfana outside Cloudflare Workers?โผ
Yes. It runs on any runtime supported by the underlying router, though it is optimized for Cloudflare Workers with extras like D1 auto endpoints.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core