molefrog/wouter

🥢 A minimalist-friendly ~2.2KB routing for React and Preact

View on GitHub ↗Jump to charts ↓Open shareable report →

Summary Information

Updated 32 minutes ago
Added to GitGenius on September 8th, 2026
Created on April 9th, 2019
Open Issues & Pull Requests: 23 (+0)
GitHub issues: Enabled
Number of forks: 189
Total Stargazers: 7,886 (+0)
Total Subscribers: 36 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.8 days
Mean response time: 87.0 days
90th percentile: 235.4 days
Tracked items: 55

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 2% of issues opened in the past year have been closed. Three people close 93% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 19
New in 7 days: 0
Closed in 7 days: 7
Avg open age: 475 days
Stale 30+ days: 11
Stale 90+ days: 10

Recent activity

Opened in 7 days: 0
Closed in 7 days: 7
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • feature (8)
  • bug (6)
  • unclear (2)
  • good first issue (1)

Detailed Description

Wouter is a minimalist router for React and Preact that relies on Hooks and weighs approximately 2.4 kilobytes minified and gzipped.

The tool solves the problem of adding routing to React and Preact applications without the overhead of larger routing libraries. It provides a hook-based API alongside familiar component-based patterns, allowing developers to choose between declarative routing with Route, Link, Switch, and Redirect components, or more granular control through useLocation, useRoute, and useRouter hooks. The router does not require a top-level Router component wrapper, making it optional and flexible for different project structures.

Wouter suits projects where bundle size matters and developers prefer a minimal, straightforward routing solution. It works well for small to medium applications and integrates naturally with modern React patterns built around hooks. The README positions it as an alternative to React Router, emphasizing that it accomplishes the same routing goals while maintaining a simpler, more minimalist API without sacrificing convenience. The tool supports both React and Preact, making it useful for projects targeting either framework.

The project maintains a strict size constraint with automated checks enforcing a 2.5 kilobyte limit. Development includes comprehensive test coverage and active maintenance across multiple framework versions. The codebase is written in TypeScript and has been adopted by several notable projects in the React ecosystem.