Skip to content
JS
Package

oauth2-mock-server

OAuth2 and OpenID Connect mock server for automated testing and development. Issues cryptographically signed JWTs via JWK key pairs. OIDC-conformant, exposes discovery, JWKS, authorization, token, userinfo, introspection, revocation, and end-session endpo

v9.2.0, 4 Sept 2026MITESM onlyTypes: BundledTestingDev servers and API mocking
$ npm install oauth2-mock-server

Key numbers

As of 25 Sept 2026
Weekly downloads
143.4k
+279% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
20 days ago
v9.2.0
GitHub stars
259
59 forks
Open issues / PRs
1 / 2
Contributors
-
Commits, last 52 weeks
106

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300kSept 2025Mar 2026Sept 2026High 201.9k (8 Sept 2026)Low 22.8k (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.

143,415 downloads last week, 734,852 in the last month. The 12-month change of +279% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
9.2.0, 4 Sept 202620 days ago
First published
-
Last push to GitHub
9 Sept 202615 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
2
Commits, last 52 weeks
106
Dependents on npm
7

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
^22.12 || ^24 || ^26
Runtimes
-
Unpacked size (npm)
98 kB
Dependencies (2)
josebasic-auth
npm install oauth2-mock-server
  • jsDelivrhttps://cdn.jsdelivr.net/npm/oauth2-mock-server@9.2.0/
  • unpkghttps://unpkg.com/oauth2-mock-server@9.2.0/
  • esm.shhttps://esm.sh/oauth2-mock-server@9.2.0
PackageWeekly downloadsGzipLast releaseModuleComparison
mockttp399.2k-13 days agoCommonJS-
strong-mock23.3k-4 months agoESM + CommonJS-
muk-prop17.1k-3 years agoCommonJS-
ts-mockito172k-6 years agoCommonJS-
xhr-mocklet332.8k-7 years agoESM + CommonJS-
ng-mocks404.6k-6 days agoESM + CommonJS-
mock-property450.6k-3 months agoCommonJS-
rewire509.2k-1 year agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.