{"repo":"cloudflare/chanfana","free":true,"listed":false,"github":"https://github.com/cloudflare/chanfana","clone":"git clone https://github.com/cloudflare/chanfana.git","description":"OpenAPI 3 and 3.1 schema generator and validator for Hono, itty-router and more!","language":"TypeScript","stars":762,"topics":["cloudflare","openapi","workers","cloudflare-workers","router","workers-script","api","openapi3","swagger","typescript"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"OpenAPI 3 and 3.1 schema generator and validator for Hono , itty-router and more! Documentation : chanfana.pages.dev Source Code : github.com/cloudflare/chanfana Overview chanfana (previously known as itty-router-openapi) is a library that adds OpenAPI schema generation and validation to any router ( Hono , itty-router , etc), meant to be a powerful and lightweight library for Cloudflare Workers but runs on any runtime supported by the base router. The key features are: - OpenAPI 3 and 3.1 schema generator and validator - Zod v4 compatible with full TypeScript inference - Fully written in typescript - Class-based endpoints - Query, Path, Headers, and Body typescript inference, see Parameters and Request Validation - Extend existing Hono, itty-router, etc application, without touching old routes - CLI to extract the schema.json from your code (npx chanfana) - see CLI Documentation AI Skills Chanfana provides AI coding assistant skills to help you build OpenAPI endpoints faster. Install them using npx skills: Available skills: - write-endpoints - Comprehensive guide for building OpenAPI endpoints with schema definition, request validation, CRUD operations, and D1 integration Getting started Or scaffold it locally with the create-cloudflare CLI: The template includes a complete Task API with Hono, D1, and Zod v4 — full CRUD endpoints, a custom endpoint example, integration tests, and auto-generated docs at /api/docs . See template/README.md for full setup instructions. Installat","default_branch":null,"files":null,"tree":[],"storefront":"/r/cloudflare","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cloudflare/chanfana/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}