Worker Starter
import { WorkerStarter } from "~/components"
<WorkerStarter    title="Router"    repo="cloudflare/workers-sdk/templates/worker-router"    description="Run different logic based on the URL and request method. Use this starter to Build REST APIs or applications that require routing logic."/>Router
Run different logic based on the URL and request method. Use this starter to Build REST APIs or applications that require routing logic.
npm create cloudflare@latest -- my-app --template cloudflare/workers-sdk/templates/worker-routerpnpm create cloudflare@latest my-app --template cloudflare/workers-sdk/templates/worker-routeryarn create cloudflare my-app --template cloudflare/workers-sdk/templates/worker-routerWas this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Products
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark