#104104th of 110 in Backend and cloud templates
itty-router
Tiny TypeScript HTTP router for Cloudflare Workers and other serverless runtimes
Documentation ↗
(opens in a new tab)Website ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 2.1k
- License
- MIT
- Last commit
- Jun 2026
- Last release
- Jun 2026
- Language
- TypeScript
2,013 on 27 Apr 20262,054 on 23 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
itty-router is a small API router written in TypeScript, with variants from about 450 bytes up to about 970 bytes for AutoRouter. It parses route patterns and query strings, supports middleware, and lets handlers return plain values that become responses. It targets serverless runtimes such as Cloudflare Workers but runs elsewhere.
Who it is for: Developers building small serverless APIs, e.g. on Cloudflare Workers
Strengths
- Router sizes range from ~450 bytes to ~970 bytes for AutoRouter, per the README
- Handlers can return plain values, promises or arrays without wrapping in a Response
- Typed for TypeScript, with a v4 to v5 migration guide
- README reports 100% test coverage
Weaknesses
- No AI, model or agent functionality; it is a general HTTP router only
- Routing and middleware only; auth, database and validation are left to you
- Breaking changes between v4 and v5 require migration
- AutoRouter export needs `{ ...router }` to strip the proxy
What it needs
- TypeScript
- GitHub template
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Backend and cloud templates
See all 110| Rank | Project | Score |
|---|---|---|
| #102 | openai-chat-app-quickstartMinimal Quart chat app on Azure OpenAI with managed identity | 36 out of 100 |
| #103 | flask-restxFlask extension for building REST APIs with Swagger documentation | 34 out of 100 |
| #105 | symfony-7-es-cqrs-boilerplateSymfony 7 reference app for DDD, CQRS and event sourcing | 34 out of 100 |
| #106 | go-gin-exampleGo and Gin blog REST API example with JWT, MySQL, Redis and Swagger | 32 out of 100 |
| #107 | edwinhern/express-typescriptExpress and TypeScript backend starter with Zod validation and Swagger docs | 19 out of 100 |