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-Grundlagen, einschließlich Handler, Konfiguration und Servicebindungen. Laden Sie, wenn Sie neue Worker erstellen, wrangler.jsonc konfigurieren, Abruf-/geplante/Warteschlangenhandler implementieren, Dienstbindungen für RPC verwenden, Typen mit Wrangler-Typen generieren oder Microservices erstellen. Quelle: null-shot/cloudflare-skills.