Skip to content
JS
Package

next-api-middleware

Middleware solution for Next.js API routes

v3.0.0, 25 Jan 2024MITESM + CommonJSTypes: BundledStatic site generators and meta-frameworksReact
$ npm install next-api-middleware

Key numbers

As of 25 Sept 2026
Weekly downloads
4.4k
+2% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v3.0.0
GitHub stars
274
7 forks
Open issues / PRs
3 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02.5k5k7.5k10kSept 2025Mar 2026Sept 2026High 9.3k (8 Sept 2026)Low 2.3k (1 Sept 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

4,430 downloads last week, 22,081 in the last month. The 12-month change of +2% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
3.0.0, 25 Jan 20242 years ago
First published
-
Last push to GitHub
28 Feb 2025573 days before the snapshot
Repository archived
No
Open issues
3
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
4

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=16.0.0
Runtimes
-
Unpacked size (npm)
22 kB
Dependencies (0)
None
Peer dependencies (1)
next
npm install next-api-middleware
  • jsDelivrhttps://cdn.jsdelivr.net/npm/next-api-middleware@3.0.0/
  • unpkghttps://unpkg.com/next-api-middleware@3.0.0/
  • esm.shhttps://esm.sh/next-api-middleware@3.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
next-safe-action246.1k-17 days agoESM + CommonJS-
@next-safe-action/adapter-react-hook-form24.1k-2 months agoESM + CommonJS-
next-nprogress-bar67.8k-1 year agoCommonJS-
next-image-export-optimizer14k-22 days agoESM + CommonJS-
eslint-config-next24m-2 days agoCommonJS-
@mastra/ai-sdk256.6k-todayESM + CommonJS-
next-sitemap461.1k-3 years agoESM + CommonJS-
facehash42.1k-7 months agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 4430 < 10000.