Examples
Copy-paste examples to get started quickly. Each example is self-contained and ready to deploy.
Beginner
| Example | Description |
|---|---|
| Hello World | Minimal worker, routing basics |
| JSON API | REST endpoints, request/response handling |
| Form Handling | Parse form data, file uploads |
Intermediate
| Example | Description |
|---|---|
| Authentication | JWT validation, protected routes |
| CORS Proxy | Proxy requests with CORS headers |
| Redirect Service | URL shortener with KV storage |
Advanced
| Example | Description |
|---|---|
| Telegram Bot | Webhook handler for Telegram |
| S3 Proxy | Stream files from S3 (v2 signing) |
| S3 Proxy (AWS v4) | Stream files from S3 (v4 signing) |