cf-workers-api

Develop Cloudflare Workers APIs with D1, R2, and Hono routing.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/cffrank/paperclip-skills-agents --skill cf-workers-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cf-workers-api
Source: https://github.com/cffrank/paperclip-skills-agents/tree/main/skills/cf-workers-api
Command: npx skills add https://github.com/cffrank/paperclip-skills-agents --skill cf-workers-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cloudflare Workers API development patterns including request handling, D1 integration, R2 storage, KV caching, Hono router, middleware, error handling, and environment typing for server-side logic.

Core Features & Use Cases

  • Patterned routing, middleware, and error handling for Cloudflare Workers API endpoints.
  • D1-based data access with Drizzle ORM patterns, and R2 storage for file assets with KV for config/cache.
  • Use cases include server-side logic, API endpoints, health checks, and secure, scalable backends on Cloudflare.

Quick Start

Start the API server locally and begin sending requests to validate routing and responses.

Frequently Asked Questions about cf-workers-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a scalable API on Cloudflare Workers with D1 and R2?

Building a scalable Cloudflare Workers API involves using Hono for routing, D1 for database access, and R2 for file storage. This approach enforces environment typing and parameterized queries for secure, predictable server-side logic.

What is the best way to structure routing and middleware in a Hono API on Cloudflare Workers?

Structuring routing and middleware in a Hono API involves applying patterned routing and structured error handling. This ensures secure, predictable API behavior across your Cloudflare Workers endpoints.

Can I use Drizzle ORM with D1 for database access in Cloudflare Workers?

Yes, you can use Drizzle ORM with D1 for database access in Cloudflare Workers. This pattern supports parameterized queries to ensure secure and predictable data access for your API endpoints.

How do I handle file storage and caching when developing Cloudflare Workers APIs?

To handle file storage and caching in Cloudflare Workers APIs, use R2 for file asset storage and KV for configuration and caching. This combination supports fast and scalable backend routes.

Does Cloudflare Workers support environment typing and authentication for server-side logic?

Yes, Cloudflare Workers supports environment typing and authentication for server-side logic. Enforcing environment typing and structured error handling ensures secure, predictable API behavior across your endpoints.