# typestack/routing-controllers

Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage in Express / Koa using TypeScript and Routing Controllers Framework.

Repository: https://github.com/typestack/routing-controllers
Canonical: https://ross.abutalabs.com/products/routing-controllers
Language: TypeScript
License: MIT
License Family: permissive
Topics: router, express-router, koa-router, controllers, node-framework, typescript-framework, web-framework, framework
Last push: 2026-05-23T11:29:29+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 83, release rhythm 41, longevity 100
- inputs: {"age_days": 3990, "days_push": 102, "days_rel": 393, "gap_med": 13, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4504, forks 393 (observed 2026-08-28T04:08:52.470696+00:00)

## What it is
A TypeScript framework for building structured, declarative class-based controllers with decorators on top of Express or Koa. It handles routing, parameter injection, middlewares, interceptors, and error handling in an organized way.

## Use cases
- build REST APIs with TypeScript decorators
- organize Express routes into controller classes
- inject query, body, header, and cookie parameters declaratively
- add global middlewares and error handlers to Express or Koa
- handle file uploads in a structured controller setup

## When to choose
- you use TypeScript and prefer decorator-based, class-oriented API design
- you want structured routing on top of Express or Koa without switching frameworks
- you want declarative parameter injection and validation integration

## When to avoid
- you use plain JavaScript without decorator support
- you prefer functional or minimal routing without a framework layer
- you need a framework with built-in dependency injection and a full ecosystem like NestJS

## Facets
- artifact type: framework
- maturity: stable
- function: web-framework, routing, middleware, api-framework
- domain: web-development, backend, apis
- platform: -
- tags: decorators, express, koa, controllers, class-based, nodejs, typescript

## Member repositories
- typestack/routing-controllers (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:52.470696+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-29T18:20:23.844622+00:00, confidence not recorded.
  - readme: https://github.com/typestack/routing-controllers (fetched 2026-08-28T04:08:52.470696+00:00, sha c996e5e76f68)
  - registry_npm: https://registry.npmjs.org/routing-controllers (fetched 2026-08-29T09:06:40.414199+00:00, sha f6c0e714dbd4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
