npm run dev- Start local development servernpm run deploy- Deploy worker to Cloudflarenpm run cf-typegen- Generate TypeScript types for Cloudflare bindings
- TypeScript: Use strict mode with explicit types
- Imports: Sort alphabetically, group by third-party then local
- Formatting: 2-space indentation, semicolons required
- Naming: camelCase for variables/functions, PascalCase for classes/types
- Error Handling: Use
try/catchblocks for async operations - Comments: JSDoc for public APIs, inline comments for complex logic
- Architecture: Follow Cloudflare Workers patterns with fetch handler
src/- Source codewrangler.toml- Cloudflare configuration