Examples

Copy-paste examples to get started quickly. Each example is self-contained and ready to deploy.

Beginner

ExampleDescription
Hello WorldMinimal worker, routing basics
JSON APIREST endpoints, request/response handling
Form HandlingParse form data, file uploads

Intermediate

ExampleDescription
AuthenticationJWT validation, protected routes
CORS ProxyProxy requests with CORS headers
Redirect ServiceURL shortener with KV storage

Advanced

ExampleDescription
Telegram BotWebhook handler for Telegram
S3 ProxyStream files from S3 (v2 signing)
S3 Proxy (AWS v4)Stream files from S3 (v4 signing)