molefrog/wouter

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

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

molefrog/wouter has 7.5k+ stars and 150+ forks on GitHub, is written in TypeScript, and was last pushed on Oct 5, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 3 seconds ago
Type:Library / SDKCategory(s):Frontend FrameworksWeb Development
Added to GitGenius on September 8th, 2026
Created on April 9th, 2019
Open Issues & Pull Requests: 22 (+0)
GitHub issues: Enabled
Number of forks: 192
Total Stargazers: 7,908 (+0)
Total Subscribers: 36 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.8 days
Mean response time: 90.7 days
90th percentile: 296.4 days
Tracked items: 56

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 16
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 526 days
Stale 30+ days: 16
Stale 90+ days: 10

Recent activity

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

Top labels

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

Most active issues this week

Sign in to see which issues are moving.
Sign in

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.