# kwhitley/itty-router

A little router.

Repository: https://github.com/kwhitley/itty-router
Canonical: https://ross.abutalabs.com/products/itty-router
Language: TypeScript
License: MIT
License Family: permissive
Topics: api, cloudflare-workers, edge, itty-router, javascript, router, serverless, service-worker, middleware, cloudflare
Last push: 2026-06-08T14:42:28+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 86, release rhythm 87, longevity 100
- inputs: {"age_days": 2331, "days_push": 86, "days_rel": 86, "gap_med": 8, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2046, forks 83 (observed 2026-08-28T04:06:08.888226+00:00)

## What it is
Itty Router is an ultra-tiny (~450B-1kB) TypeScript HTTP router library designed for serverless and edge environments like Cloudflare Workers. It provides route parsing, query params, and middleware support while remaining far smaller than Express.js.

## Use cases
- build a REST API on Cloudflare Workers
- route HTTP requests in a serverless function
- tiny router for edge deployment with minimal bundle size
- handle URL params and query strings in a worker
- add middleware to a service worker fetch handler
- replace Express with a lightweight router

## When to choose
- bundle size is critical, e.g. Cloudflare Workers or edge runtimes
- you want a simple, flexible router with no framework assumptions
- you're building serverless APIs in TypeScript or JavaScript

## When to avoid
- you need a full-featured backend framework with built-in body parsing, sessions, or templating
- you're building a traditional Node.js monolith where Express/Fastify ecosystem matters more than size

## Facets
- artifact type: library
- maturity: active
- function: routing, middleware, http-server, api-framework
- domain: web-development, backend, apis
- platform: cloud, serverless
- tags: cloudflare-workers, microrouter, edge-computing, tiny-bundle, service-worker, serverless, web-server, nodejs, typescript

## Member repositories
- kwhitley/itty-router (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:08.888226+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:58:00.110042+00:00, confidence not recorded.
  - readme: https://github.com/kwhitley/itty-router (fetched 2026-08-28T04:06:08.888226+00:00, sha 4eca43586f61)
- Data as of 2026-08-30T08:39:29.467469+00:00.
