molefrog/wouter
🥢 A minimalist-friendly ~2.2KB routing for React and Preact observed · 2026-08-28
Health v2 · maintenance only
82/100
- Activity 98
- Release rhythm 50
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 40
- age_days: 2703
- days_rel: 258
- days_push: 12
- n_releases_24m: 4
Adoption not part of the score
7868 stars · 189 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Wouter is a tiny (~2KB) hook-based routing library for React and Preact applications. It provides familiar Route, Link, Switch, and Redirect components plus hooks like useLocation and useRoute, with no required top-level Router component.
Use cases
- add client-side routing to a React SPA
- replace react-router with a much smaller bundle
- use routing in a Preact app
- do route matching with hooks for custom navigation or animations
- build a minimal single-page app without heavy dependencies
When to choose
- bundle size matters and you only need basic routing
- you prefer a hooks-first API over component-heavy routers
- you use React or Preact and want zero-dependency routing
When to avoid
- you need advanced features like nested layouts, data loaders, or route-based code splitting out of the box
- you need SSR framework-integrated routing like Next.js file-based routing
- your team already relies on React Router's ecosystem and patterns
Facets
library · maturity active
routing web-framework web-development frontend browser react preact hooks microlibrary zero-dependency typescript spa-routing nodejs web-server
2 sources
- readme: https://github.com/molefrog/wouter · fetched 2026-08-28 · 8fe15fdf746a
- registry_npm: https://registry.npmjs.org/wouter · fetched 2026-08-29 · c5972f1d5af0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| molefrog/wouter | main | 82 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem