Cloudflare

Cloudflare Workers Best Practices

Author and review Workers code for streaming, bindings, promises, state, secrets, observability, and current platform APIs.

Vecbase review

A focused production review guide for Cloudflare Workers with unusually concrete runtime and security checks. Its retrieval steps are valuable when platform APIs and configuration evolve.

What stands out

  • Maintained by Cloudflare and explicitly prefers current platform documentation and generated types.
  • Covers runtime correctness, security, architecture, configuration, and observability together.
  • Flags concrete anti-patterns that frequently survive generic TypeScript review.

What to know

  • Vecbase reviewed the complete source and license but did not run a task-shaped evaluation for this listing.
  • Retrieval and validation steps can install packages or access the network and should be permission controlled.

What it can do

  • Review streaming, promises, request state, and Worker runtime behavior
  • Check generated Env types, bindings, service boundaries, and Hyperdrive usage
  • Detect unsafe secrets, cryptography, casts, and error handling
  • Validate Wrangler configuration, types, linting, and observability

Try it

Review this Worker for dropped promises, cross-request state, secret handling, and binding drift.
Design this Worker workflow using service bindings, Queues, and Hyperdrive where appropriate.