#104104th of 110 in Backend and cloud templates

itty-router

Tiny TypeScript HTTP router for Cloudflare Workers and other serverless runtimes

Releases and problems feed (RSS)

Stars
2.1k
License
MIT
Last commit
Jun 2026
Last release
Jun 2026
Language
TypeScript
Stars, last 30 weeks+41
27 Apr 2026: 2,013 stars4 May 2026: 2,016 stars11 May 2026: 2,017 stars18 May 2026: 2,019 stars25 May 2026: 2,025 stars1 Jun 2026: 2,027 stars8 Jun 2026: 2,027 stars15 Jun 2026: 2,027 stars22 Jun 2026: 2,027 stars29 Jun 2026: 2,028 stars6 Jul 2026: 2,030 stars13 Jul 2026: 2,032 stars20 Jul 2026: 2,033 stars27 Jul 2026: 2,034 stars3 Aug 2026: 2,034 stars10 Aug 2026: 2,036 stars17 Aug 2026: 2,039 stars24 Aug 2026: 2,039 stars31 Aug 2026: 2,042 stars7 Sept 2026: 2,042 stars14 Sept 2026: 2,042 stars21 Sept 2026: 2,044 stars28 Sept 2026: 2,046 stars5 Oct 2026: 2,047 stars12 Oct 2026: 2,049 stars19 Oct 2026: 2,050 stars26 Oct 2026: 2,051 stars2 Nov 2026: 2,052 stars9 Nov 2026: 2,053 stars16 Nov 2026: 2,054 stars23 Nov 2026: 2,054 stars

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
Also in Backend and cloud templates
RankProjectScore
#102openai-chat-app-quickstartMinimal Quart chat app on Azure OpenAI with managed identity254 starsMIT36 out of 100
#103flask-restxFlask extension for building REST APIs with Swagger documentation2.2k starscustom license34 out of 100
#105symfony-7-es-cqrs-boilerplateSymfony 7 reference app for DDD, CQRS and event sourcing1.1k starsMIT34 out of 100
#106go-gin-exampleGo and Gin blog REST API example with JWT, MySQL, Redis and Swagger7.2k starsMIT32 out of 100
#107edwinhern/express-typescriptExpress and TypeScript backend starter with Zod validation and Swagger docs1.2k starsMIT19 out of 100