Skip to content
JS
Package category

Dev servers and API mocking

Local servers, proxies, mock APIs and fixtures for development.

213 packages8 comparisons

Packages compared

213 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
mockserver-client
A node client for the MockServer
95.8k+31%-9 days ago
8.0.0
-BundledTesting, Dev servers and API mocking
mock-xmlhttprequest
XMLHttpRequest mock for testing
94k-31%-1 year ago
8.4.1
ESM + CommonJSBundledTesting, Dev servers and API mocking
live-server
simple development http server with live reload capability
93.1k+2%-4 years ago
1.2.2
-NoneHTTP servers and web frameworks, CLI tools and terminal utilities
testdouble
A minimal test double library for TDD with JavaScript
88.9k-46%-3 days ago
3.21.0
ESM + CommonJSBundledTesting, Dev servers and API mocking
browser-sync-webpack-plugin
BrowserSync and Webpack integration
83.9k-9%-1 year ago
2.4.0
CommonJSNoneBundler plugins and loaders, Dev servers and API mocking
@adonisjs/assembler
Provides utilities to run AdonisJS development server and build project for production
82.4k---2 days ago
8.5.2
ESM onlyBundledDev servers and API mocking
storybook-addon-mock-date
Storybook addon that mocks the JavaScript Date — and opt-in Temporal and Intl.DateTimeFormat — for individual stories.
79.3k+85%-1 month ago
3.2.1
ESM onlyBundledDev servers and API mocking
openapi-backend
Build, Validate, Route, Authenticate and Mock using OpenAPI definitions. Framework-agnostic
77.3k+96%-6 days ago
5.21.1
CommonJSBundledDocumentation tooling, Cloud SDKs
jest-launchdarkly-mock
Easily unit test LaunchDarkly feature flagged components with jest
76.6k-24%-6 months ago
2.2.1
CommonJSBundledTesting, Dev servers and API mocking
mock-json-schema
Simple utility to mock example objects based on JSON schema definitions
76.1k+82%-9 days ago
1.1.3
CommonJSBundledSchema validation, Documentation tooling
mocked-env
Easy way to mock process.env during BDD testing
75.4k+13%-5 years ago
1.3.5
CommonJSBundledTesting, Utility libraries
moxios
Mock axios requests for testing
74.1k-2%-9 years ago
0.4.0
CommonJSNoneTesting, Dev servers and API mocking
@msw/cloudflare
Mock API in Cloudflare with Mock Service Worker.
72.5k---2 months ago
0.0.1
ESM onlyNoneCloud SDKs, Dev servers and API mocking
vitest-websocket-mock
Mock websockets and assert complex websocket interactions with Vitest
67.3k+191%-15 days ago
0.8.0
ESM onlyBundledTesting, WebSockets and realtime
@msw/data
Data querying library for testing JavaScript applications.
65.2k---26 days ago
1.1.8
ESM onlyNoneDev servers and API mocking, Testing
esmock
provides native ESM import and globals mocking for unit tests
65k+81%-3 months ago
2.7.6
ESM onlyBundledTesting, Dev servers and API mocking
moq.ts
Moq library for Typescript inspired by c# moq
63.2k+170%-3 years ago
10.0.8
ESM + CommonJSBundledTypeScript tooling, Dev servers and API mocking
casual-browserify
Fake data generator (Browserify friendly)
62.9k+201%-8 years ago
1.5.19-2
CommonJSNoneDev servers and API mocking, Testing
ts-mock-imports
Intuitive mocking for Typescript class imports
60k+52%-11 months ago
1.3.19
CommonJSBundledTypeScript tooling, Dev servers and API mocking
esmoduleserve
Serve ES modules over HTTP, rewriting imports
54k+349%-3 months ago
0.3.3
CommonJSNoneDev servers and API mocking
@elastic/elasticsearch-mock
Mock utility for the Elasticsearch's Node.js client
51.6k---1 year ago
2.1.0
CommonJSBundledDev servers and API mocking, Testing
jest-useragent-mock
Mock `navigator.userAgent` when run unit test cases with jest.
46.6k+85%-6 years ago
0.1.1
CommonJSBundledTesting, Dev servers and API mocking
@web/dev-server-esbuild
Plugin for using esbuild in @web/dev-server
45.8k---2 months ago
2.0.0
ESM + CommonJSBundledTesting, TypeScript tooling
rewiremock
Advanced dependency mocking device.
45.3k-34%-1 year ago
3.14.6
ESM + CommonJSBundledDev servers and API mocking, Testing
@automock/jest
> [!WARNING] > ## Automock is Now Suites > > Automock has stopped at **version 2.1.0** and the project has been renamed to **Suites**, a more mature, actively > developed unit testing framework that extends and improves Automock's original design. > > ##
43.9k---9 months ago
2.1.2
CommonJSBundledDev servers and API mocking, Testing
scenario-mock-server
Mock server powered by scenarios
39.8k+281%-3 years ago
1.2.0
ESM + CommonJSBundledDev servers and API mocking, Testing
@kubb/plugin-msw
Generate Mock Service Worker (MSW) request handlers with Kubb. Intercept HTTP requests in the browser or Node.js for frontend development and testing.
35k---11 days ago
5.0.4
ESM + CommonJSBundledDev servers and API mocking
mock-match-media
mock window.matchMedia for tests or node
31.2k+66%-11 months ago
1.0.3
ESM + CommonJSBundledTesting, Static site generators and meta-frameworks
msw-auto-mock
Generate random mock data from OpenAPI descriptions for msw.
29.8k+34%-5 months ago
0.32.1
CommonJSNoneDev servers and API mocking, Documentation tooling
html-webpack-harddisk-plugin
Write html files to hard disk even when using the webpack dev server or middleware
28.2k-21%-5 years ago
2.0.0
CommonJSBundledDev servers and API mocking
html-webpack-inline-source-plugin
Embed javascript and css source inline when using the webpack dev server or middleware
27.9k-1%-8 years ago
0.0.10
CommonJSNoneDev servers and API mocking
mongodb-memory-server-global
MongoDB Server for testing (auto-download latest version to ~/.cache/mongodb-binaries).
27.3k+77%-3 days ago
11.3.0
CommonJSBundledTesting, Dev servers and API mocking
@web/rollup-plugin-copy
Rollup plugin which copies asset files while retaining the relative folder structure.
27.2k---2 months ago
1.0.0
ESM + CommonJSBundledDev servers and API mocking, Testing
electronmon
watch and reload your electron app the easy way
27.1k+143%-10 months ago
2.0.4
CommonJSNoneNode.js utilities, Dev servers and API mocking
ts-auto-mock
Typescript transformer to unlock automatic mock creation for interfaces and classes
27k-34%-2 years ago
3.7.4
-BundledTesting, TypeScript tooling
inject-loader
A Webpack loader for injecting code into modules via their dependencies
26.8k-13%-8 years ago
4.0.1
CommonJSNoneBundler plugins and loaders, Testing
specmatic
Node wrapper for Specmatic
26.7k+406%-8 days ago
2.54.1
CommonJSBundledDocumentation tooling, Testing
zod-schema-faker
Generates mock data from zod schema. Powered by @faker-js/faker and randexp.js
26.5k+512%-6 months ago
2.1.1
ESM + CommonJSBundledDev servers and API mocking, Schema validation
kubb
The meta framework for code generation. Point Kubb at a schema and it generates types, clients, hooks, validators, mocks, and more.
26.3k+990%-today
5.3.16
ESM + CommonJSBundledTypeScript tooling, Schema validation
jest-mock-vscode
VS Code Mock for jest
26k-12%-1 month ago
4.13.0
CommonJSBundledTesting, Dev servers and API mocking
@short.io/opensearch-mock
Mock utility for the Elasticsearch's Node.js client
23.9k---2 years ago
0.4.0
CommonJSBundledDev servers and API mocking, Testing
strong-mock
Type safe mocking library for TypeScript
23.3k-6%-4 months ago
9.2.2
ESM + CommonJSBundledTesting, TypeScript tooling
sinon-express-mock
Simple request and response mock objects to pass into Express routes when testing using Sinon.
18.8k-14%-7 years ago
2.2.1
CommonJSNoneTesting, Dev servers and API mocking
vitest-mock-express
A lightweight Vitest mock for unit testing Express
18.5k+37%-2 years ago
2.2.0
ESM onlyBundledTesting, TypeScript tooling
mountebank
Over the wire test doubles
17.4k-19%-3 years ago
2.9.1
CommonJSNoneTesting, Dev servers and API mocking
muk-prop
Mock object methods and properties.
17.1k-20%-3 years ago
3.0.1
CommonJSNoneTesting, Dev servers and API mocking
swagger-to-mock
mock data generator from Swagger (OpenAPI 3)
16.8k-42%-6 years ago
0.1.12
CommonJSBundledDev servers and API mocking, CLI tools and terminal utilities
http-request-mock
Intercept & mock http requests issued by XMLHttpRequest, fetch, nodejs https/http module, axios, jquery, superagent, ky, node-fetch, request, got or any other request libraries by intercepting XMLHttpRequest, fetch and nodejs native requests in low level.
16.7k+34%-1 year ago
2.0.2
ESM + CommonJSBundledDev servers and API mocking
@storybook-community/storybook-addon-cookie
Set document.cookie in your stories.
14.6k---2 months ago
5.0.1
ESM onlyBundledDev servers and API mocking
rollup-plugin-workbox
Rollup plugin that builds a service worker with workbox as part of your rollup build
14.4k+12%-2 months ago
9.0.0
ESM + CommonJSBundledDev servers and API mocking, Testing

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, as measured by Bundlephobia. "-" means the value has not been fetched.

  • mockserver-clientA node client for the MockServer
  • mock-xmlhttprequestXMLHttpRequest mock for testing
  • live-serversimple development http server with live reload capability
  • testdoubleA minimal test double library for TDD with JavaScript
  • browser-sync-webpack-pluginBrowserSync and Webpack integration
  • @adonisjs/assemblerProvides utilities to run AdonisJS development server and build project for production
  • storybook-addon-mock-dateStorybook addon that mocks the JavaScript Date — and opt-in Temporal and Intl.DateTimeFormat — for individual stories.
  • openapi-backendBuild, Validate, Route, Authenticate and Mock using OpenAPI definitions. Framework-agnostic
  • jest-launchdarkly-mockEasily unit test LaunchDarkly feature flagged components with jest
  • mock-json-schemaSimple utility to mock example objects based on JSON schema definitions
  • mocked-envEasy way to mock process.env during BDD testing
  • moxiosMock axios requests for testing
  • @msw/cloudflareMock API in Cloudflare with Mock Service Worker.
  • vitest-websocket-mockMock websockets and assert complex websocket interactions with Vitest
  • @msw/dataData querying library for testing JavaScript applications.
  • esmockprovides native ESM import and globals mocking for unit tests
  • moq.tsMoq library for Typescript inspired by c# moq
  • casual-browserifyFake data generator (Browserify friendly)
  • ts-mock-importsIntuitive mocking for Typescript class imports
  • esmoduleserveServe ES modules over HTTP, rewriting imports
  • @elastic/elasticsearch-mockMock utility for the Elasticsearch's Node.js client
  • jest-useragent-mockMock `navigator.userAgent` when run unit test cases with jest.
  • @web/dev-server-esbuildPlugin for using esbuild in @web/dev-server
  • rewiremockAdvanced dependency mocking device.
  • @automock/jest> [!WARNING] > ## Automock is Now Suites > > Automock has stopped at **version 2.1.0** and the project has been renamed to **Suites**, a more mature, actively > developed unit testing framework that extends and improves Automock's original design. > > ##
  • scenario-mock-serverMock server powered by scenarios
  • @kubb/plugin-mswGenerate Mock Service Worker (MSW) request handlers with Kubb. Intercept HTTP requests in the browser or Node.js for frontend development and testing.
  • mock-match-mediamock window.matchMedia for tests or node
  • msw-auto-mockGenerate random mock data from OpenAPI descriptions for msw.
  • html-webpack-harddisk-pluginWrite html files to hard disk even when using the webpack dev server or middleware
  • html-webpack-inline-source-pluginEmbed javascript and css source inline when using the webpack dev server or middleware
  • mongodb-memory-server-globalMongoDB Server for testing (auto-download latest version to ~/.cache/mongodb-binaries).
  • @web/rollup-plugin-copyRollup plugin which copies asset files while retaining the relative folder structure.
  • electronmonwatch and reload your electron app the easy way
  • ts-auto-mockTypescript transformer to unlock automatic mock creation for interfaces and classes
  • inject-loaderA Webpack loader for injecting code into modules via their dependencies
  • specmaticNode wrapper for Specmatic
  • zod-schema-fakerGenerates mock data from zod schema. Powered by @faker-js/faker and randexp.js
  • kubbThe meta framework for code generation. Point Kubb at a schema and it generates types, clients, hooks, validators, mocks, and more.
  • jest-mock-vscodeVS Code Mock for jest
  • @short.io/opensearch-mockMock utility for the Elasticsearch's Node.js client
  • strong-mockType safe mocking library for TypeScript
  • sinon-express-mockSimple request and response mock objects to pass into Express routes when testing using Sinon.
  • vitest-mock-expressA lightweight Vitest mock for unit testing Express
  • mountebankOver the wire test doubles
  • muk-propMock object methods and properties.
  • swagger-to-mockmock data generator from Swagger (OpenAPI 3)
  • http-request-mockIntercept & mock http requests issued by XMLHttpRequest, fetch, nodejs https/http module, axios, jquery, superagent, ky, node-fetch, request, got or any other request libraries by intercepting XMLHttpRequest, fetch and nodejs native requests in low level.
  • @storybook-community/storybook-addon-cookieSet document.cookie in your stories.
  • rollup-plugin-workboxRollup plugin that builds a service worker with workbox as part of your rollup build