Essential patterns for building Cloudflare Workers applications with TypeScript, proper configuration, and Service Bindings for microservices.
| Language | TypeScript by default | JavaScript only if explicitly requested | | Module Format | ES modules only | NEVER use Service Worker format | | Imports | Always import types/classes | Must import all used methods | | File Structure | Single file unless specified | Keep code in one file by default |
| Dependencies | Minimize external deps | Use official SDKs when available | | Native Bindings | Not supported | Avoid FFI/C bindings | | Types | Include TypeScript types | Define Env interface for bindings |
Core Workers fundamentals including handlers, configuration, and Service Bindings. Load when creating new Workers, configuring wrangler.jsonc, implementing fetch/scheduled/queue handlers, using Service Bindings for RPC, generating types with wrangler types, or building microservices. Source: null-shot/cloudflare-skills.