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.
| Package | Weekly downloads | 12-month change | Gzip | Dependencies | Last release | Module | Types | Runtimes |
|---|---|---|---|---|---|---|---|---|
| mock-socket This package | 684.5k | +56% | - | 0 | 3 years ago | CommonJS | None | - |
| muk-prop | 17.1k | -20% | - | 0 | 3 years ago | CommonJS | None | - |
| @copilotkit/aimock | 1.1m | - | - | 0 | 2 days ago | ESM + CommonJS | Bundled | - |
| ts-auto-mock | 27k | -34% | - | 2 | 2 years ago | - | Bundled | - |
| ts-mockito | 172k | +1% | - | 1 | 6 years ago | CommonJS | Bundled | - |
| jest-localstorage-mock | 281k | +1% | - | 0 | 3 years ago | ESM + CommonJS | None | - |
| strong-mock | 23.3k | -6% | - | 3 | 4 months ago | ESM + CommonJS | Bundled | - |
| mountebank | 17.4k | -19% | - | 22 | 3 years ago | CommonJS | None | - |
| ng-mocks | 404.6k | -0% | - | 0 | 6 days ago | ESM + CommonJS | Bundled | - |
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)
Indexability: Indexed.