# Paratron/hookrouter

The flexible, and fast router for react that is entirely based on hooks

Repository: https://github.com/Paratron/hookrouter
Canonical: https://ross.abutalabs.com/products/hookrouter
Language: JavaScript
License Family: other
Topics: react, router, navigation, queryparams, title, ssr, hooks
Archived: true
Last push: 2022-09-14T03:13:10+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2759, "days_push": 1449, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1479, forks 86 (observed 2026-08-28T04:04:50.692725+00:00)

## What it is
hookrouter is a lightweight React routing library built entirely on hooks, offering a fast and flexible alternative to react-router. Routes are defined as plain objects mapping URL patterns to functions, with support for path placeholders, query parameters, and SSR.

## Use cases
- route between pages in a react app using hooks
- define routes as a simple object map instead of jsx components
- extract url query parameters in react
- set the document title per route
- server-side render a react app with routing
- match dynamic route segments like /products/:id

## When to choose
- you want a minimal, hook-based router without jsx route components
- your app uses react 16.8+ and you prefer hooks over hoc/class patterns
- you need lightweight routing with query param and ssr support

## When to avoid
- you need typescript support maintained by the author
- you want a router with active development and recent releases
- you need advanced features like nested layouts, data loaders, or route transitions

## Facets
- artifact type: library
- maturity: maintenance
- function: routing, ssr
- domain: web-development, frontend
- platform: browser
- tags: react, hooks, router, query-params, page-title, nodejs, web-server

## Member repositories
- Paratron/hookrouter (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:50.692725+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:17.642025+00:00, confidence not recorded.
  - readme: https://github.com/Paratron/hookrouter (fetched 2026-08-28T04:04:50.692725+00:00, sha eec8e4253db9)
  - registry_npm: https://registry.npmjs.org/hookrouter (fetched 2026-08-29T11:41:27.049092+00:00, sha 23f7e300a1dc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
