# tj/react-enroute

React router with a small footprint for modern browsers

Repository: https://github.com/tj/react-enroute
Canonical: https://ross.abutalabs.com/products/react-enroute
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2023-03-15T05:18:33+00:00

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

## Adoption (not part of the score)
Stars 1478, forks 21 (observed 2026-08-28T04:04:50.576731+00:00)

## What it is
A tiny (~2 KB) React router library for modern browsers, using path-to-regexp pattern matching with support for nested routes. It is a lightweight alternative to react-router, not a full replacement.

## Use cases
- add simple client-side routing to a small React app
- replace react-router with a minimal 2 KB router
- match URL paths with parameters like /users/:id
- render nested routes in React
- generate URLs from route patterns and params

## When to choose
- you need a very small router with minimal dependencies
- your routing needs are simple and don't require data loaders or guards
- you want path-to-regexp pattern syntax

## When to avoid
- you need advanced features like nested layouts with outlets, data loading, or navigation blocking
- you want an actively developed router with large community support
- you need server-side routing or history management built in

## Facets
- artifact type: library
- maturity: maintenance
- function: routing, frontend-framework
- domain: web-development, frontend
- platform: browser
- tags: react, router, minimal, path-to-regexp, client-side-routing, nodejs

## Member repositories
- tj/react-enroute (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:50.576731+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-30T04:34:22.268820+00:00, confidence not recorded.
  - readme: https://github.com/tj/react-enroute (fetched 2026-08-28T04:04:50.576731+00:00, sha c6ba33e1b4f6)
  - registry_npm: https://registry.npmjs.org/react-enroute (fetched 2026-08-29T11:41:39.001108+00:00, sha b5e59592d7f8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
