Skip to content
JS
Alternatives

mock-socket alternatives

8 packages that do the same job as mock-socket: muk-prop, @copilotkit/aimock, ts-auto-mock, ts-mockito, jest-localstorage-mock, strong-mock, mountebank, ng-mocks. Figures below are from npm, GitHub and Bundlephobia.

Data as of 25 Sept 2026
PackageWeekly downloads12-month changeGzipDependenciesLast releaseModuleTypesRuntimes
mock-socket
This package
684.5k+56%-03 years agoCommonJSNone-
muk-prop17.1k-20%-03 years agoCommonJSNone-
@copilotkit/aimock1.1m--02 days agoESM + CommonJSBundled-
ts-auto-mock27k-34%-22 years ago-Bundled-
ts-mockito172k+1%-16 years agoCommonJSBundled-
jest-localstorage-mock281k+1%-03 years agoESM + CommonJSNone-
strong-mock23.3k-6%-34 months agoESM + CommonJSBundled-
mountebank17.4k-19%-223 years agoCommonJSNone-
ng-mocks404.6k-0%-06 days agoESM + CommonJSBundled-

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package (Bundlephobia). Runtimes are taken from each package's own documentation; "-" means not recorded.

Mock object methods and properties.

Compared with mock-socket

  • 40x fewer weekly downloads (17.1k vs 684.5k)
  • Declares Node.js >=6 vs Node.js >= 8
  • Last release 15 May 2023 vs 11 Sept 2023
  • 54x fewer GitHub stars (15 vs 806)

Mock infrastructure for AI application testing — point your SDK at one local port and every provider, protocol, and service answers deterministically.

Compared with mock-socket

  • 1.6x more weekly downloads (1.1m vs 684.5k)
  • ESM + CommonJS vs CommonJS
  • Bundled types vs no types
  • Declares Node.js >=20.15.0 vs Node.js >= 8
  • Last release 22 Sept 2026 vs 11 Sept 2023
  • 1.2x more GitHub stars (941 vs 806)

Typescript transformer to unlock automatic mock creation for interfaces and classes

Compared with mock-socket

  • 25x fewer weekly downloads (27k vs 684.5k)
  • 2 dependencies vs 0
  • - vs CommonJS
  • Bundled types vs no types
  • Declares Node.js >=14.x.x vs Node.js >= 8
  • Last release 24 Aug 2024 vs 11 Sept 2023
  • 1.3x fewer GitHub stars (612 vs 806)

Mocking library for TypeScript

Compared with mock-socket

  • 4.0x fewer weekly downloads (172k vs 684.5k)
  • 1 dependency vs 0
  • Bundled types vs no types
  • Declares no Node.js engine range vs Node.js >= 8
  • Last release 8 Jun 2020 vs 11 Sept 2023
  • 1.2x more GitHub stars (997 vs 806)

Auto mock all localstorage and sessionstorage APIs for your Jest tests

Compared with mock-socket

  • 2.4x fewer weekly downloads (281k vs 684.5k)
  • ESM + CommonJS vs CommonJS
  • Declares Node.js >=6.16.0 vs Node.js >= 8
  • Last release 4 Jan 2023 vs 11 Sept 2023
  • 2.5x fewer GitHub stars (319 vs 806)

Type safe mocking library for TypeScript

Compared with mock-socket

  • 29x fewer weekly downloads (23.3k vs 684.5k)
  • 3 dependencies vs 0
  • ESM + CommonJS vs CommonJS
  • Bundled types vs no types
  • Declares no Node.js engine range vs Node.js >= 8
  • Last release 29 Apr 2026 vs 11 Sept 2023
  • 7.5x fewer GitHub stars (108 vs 806)

Over the wire test doubles

Compared with mock-socket

  • 39x fewer weekly downloads (17.4k vs 684.5k)
  • 22 dependencies vs 0
  • Declares Node.js >=16 vs Node.js >= 8
  • Last release 23 Aug 2023 vs 11 Sept 2023
  • 2.6x more GitHub stars (2.1k vs 806)

ng-mocks simplifies Angular testing with mock dependencies, shallow rendering and less boilerplate. Mock components, services, directives, pipes and modules in Angular 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 with Jasmine, Jest or Vitest.

Compared with mock-socket

  • 1.7x fewer weekly downloads (404.6k vs 684.5k)
  • ESM + CommonJS vs CommonJS
  • Bundled types vs no types
  • Declares no Node.js engine range vs Node.js >= 8
  • Last release 18 Sept 2026 vs 11 Sept 2023
  • 1.4x more GitHub stars (1.2k vs 806)
Sources: npm registry, npm downloads API, GitHub API, Bundlephobia. Data fetched 25 Sept 2026.

Indexability: Indexed.