write-endpoints
OfficialMaster OpenAPI endpoints with Chanfana.
Authorcloudflare
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Build complex OpenAPI endpoints faster with Chanfana, standardizing schema, validation, CRUD operations, D1 integration, and consistent error handling across services.
Core Features & Use Cases
- Schema-driven endpoint definitions with Zod v4 and contentJson wrappers for requests and responses.
- CRUD Auto Endpoints (Create, Read, List, Update, Delete) with meta-driven customization and nested route support.
- D1 database integration and robust error handling via documented exception classes and validators.
- CLI tooling to extract and validate OpenAPI specifications from code.
Quick Start
Follow the examples to scaffold a complete CRUD OpenAPI endpoint using Hono or itty-router with chanfana.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: write-endpoints Download link: https://github.com/cloudflare/chanfana/archive/main.zip#write-endpoints Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.