Skip to content
JS
Package

router

Simple middleware-style router

v2.2.0, 27 Mar 2025MIT-Types: NoneRouting
$ npm install router

Key numbers

As of 25 Sept 2026
Weekly downloads
48.5m
+386% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
5
Direct, from package.json
Last release
1 year ago
v2.2.0
GitHub stars
448
126 forks
Open issues / PRs
16 / 35
Contributors
27
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60m80mSept 2025Mar 2026Sept 2026High 64.9m (25 Aug 2026)Low 8.9m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

48,531,730 downloads last week, 231,967,009 in the last month. The 12-month change of +386% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
062 in total
Latest version
2.2.0, 27 Mar 20251 year ago
First published
23 Jun 2011
Last push to GitHub
2 Jun 2026114 days before the snapshot
Repository archived
No
Open issues
16
Open pull requests
35
Commits, last 52 weeks
1
Dependents on npm
340

Major versions

  1. v2 first release 2.0.0, 9 Sept 2024
  2. v1 first release 1.0.0, 14 Jan 2015
  3. v0 first release 0.2.1, 23 Jun 2011

Recent releases

VersionPublished
2.2.027 Mar 2025
2.1.010 Feb 2025
2.0.09 Sept 2024
1.3.824 Feb 2023
1.3.728 Apr 2022
1.3.616 Nov 2021
1.3.525 Mar 2020
1.3.425 Jan 2020
1.3.36 Jul 2018
1.3.225 Sept 2017
1.3.120 May 2017
1.3.026 Feb 2017
1.2.018 Feb 2017
1.1.529 Jan 2017
Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
>= 18
Runtimes
-
Unpacked size (npm)
46 kB
Dependencies (5)
depddebugparseurlis-promisepath-to-regexp
npm install router
  • jsDelivrhttps://cdn.jsdelivr.net/npm/router@2.2.0/
  • unpkghttps://unpkg.com/router@2.2.0/
  • esm.shhttps://esm.sh/router@2.2.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.