Stack Picker
a developer-grade decision engine
Back to the picker
Compute / Hosting

Cloudflare Workers

Edge compute on Cloudflare — deploys globally in seconds.

Official site
Monthly cost
$0–$5 / mo
Free 100k req/day; $5/mo paid
Popularity
4/5
LLM knowledge
4/5
Difficulty
Medium
#edge#serverless#low-cost

What Cloudflare Workers is good at

Strengths
  • +True edge
  • +Instant cold starts (V8 isolates)
  • +Generous free tier
Tradeoffs
  • No full Node.js APIs
  • Some libs incompatible

Coding-agent prompt

You're writing a Cloudflare Worker. Follow these rules:

- V8 isolate environment — no Node APIs unless you enable `nodejs_compat`.
- Durable Objects for stateful workloads; KV for fast reads; D1 for SQL; R2 for blobs.
- `wrangler.toml` is the source of truth for routes, bindings, and env vars.
- Bind resources through the `env` argument; never import SDK clients.
- Use Hono or Itty Router for structure; native `fetch` signatures for simplest cases.
- Deploy with `wrangler deploy`; preview with `wrangler dev`.

Beginner's guide to Cloudflare Workers

In one line: Code that runs in 300+ cities around the world, super close to users.

Workers let you deploy small JavaScript/TypeScript functions to Cloudflare's network of data centers. That means users anywhere in the world get a response fast.

Try it in your terminal
  • npm create cloudflare@latest my-app

    Scaffold a new Worker project.

  • cd my-app && npx wrangler deploy

    Deploy it. Wrangler is Cloudflare's CLI.

Popular pairings with Cloudflare Workers

Browse all categories