cloudflare

Installation
SKILL.md

Cloudflare

Overview

Cloudflare Workers is a serverless edge compute platform that runs JavaScript, TypeScript, and WebAssembly on Cloudflare's global network. Workers use the ES modules format with fetch, scheduled, and queue event handlers, and access platform services (KV, D1, R2, Durable Objects) through environment bindings.

When to use: Edge-first APIs, low-latency global apps, serverless functions, static site hosting with Pages, key-value caching, relational data at the edge, object storage without egress fees.

When NOT to use: Long-running compute exceeding CPU time limits, workloads requiring persistent TCP connections, applications needing full Node.js API compatibility, large monolithic applications better suited to containers.

Quick Reference

Pattern API / Config Key Points
Fetch handler export default { fetch(request, env, ctx) } Entry point for HTTP requests
Scheduled handler export default { scheduled(controller, env, ctx) } Cron triggers via [triggers] in config
Environment variables env.VAR_NAME Set in wrangler.toml or dashboard
KV read/write env.KV.get(key) / env.KV.put(key, value) Eventually consistent, 25 MiB max value
D1 query env.DB.prepare(sql).bind(...params).all() SQLite at the edge, prepared statements
Related skills
Installs
28
GitHub Stars
11
First Seen
Feb 24, 2026