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
vite
Native-ESM powered web dev build tool
131.2m+317%-1 day ago
8.3.1
ESM onlyBundledBuild tools, Bundlers
fast-check
Property based testing framework for JavaScript (like QuickCheck)
30m+535%-5 days ago
4.10.2
ESM + CommonJSBundledTesting, Dev servers and API mocking
responselike
A response-like object for mocking a Node.js HTTP response stream
24.6m+38%-11 months ago
4.0.2
ESM onlyBundledDev servers and API mocking, Testing
http-proxy-middleware
The one-liner node.js proxy middleware for connect, express, next.js and more
21.4m+19%-2 months ago
4.2.0
ESM onlyBundledHTTP servers and web frameworks, WebSockets and realtime
@mswjs/interceptors
Low-level network interception library for Node.js.
15.6m+155%-today
0.45.1
ESM onlyBundledTesting, Dev servers and API mocking
msw
Seamless REST/GraphQL API mocking library for browser and Node.js.
14.4m+159%-2 months ago
2.15.0
ESM + CommonJSBundledDev servers and API mocking, Testing
@vitejs/plugin-react-swc
Speed up your Vite dev server with SWC
8.5m+141%-1 month ago
4.3.3
ESM onlyBundledReact, Bundler plugins and loaders
cross-inspect
Cross platform implementation of Node's util.inspect
7m+57%-2 years ago
1.0.1
ESM + CommonJSBundledDev servers and API mocking, TypeScript tooling
sponge-case
Transform into a string with random capitalization applied
6.1m+84%-2 years ago
2.0.3
ESM onlyBundledDev servers and API mocking
nock
HTTP server mocking and expectations library for Node.js
5m+11%-1 month ago
14.0.17
CommonJSBundledDev servers and API mocking
aws-sdk-client-mock
Easy and powerful mocking of AWS SDK v3 Clients
2.3m+82%-1 year ago
4.1.0
ESM + CommonJSBundledCloud SDKs, Testing
msw-storybook-addon
Mock APIs in Storybook using Mock Service Worker.
2m+112%-9 days ago
3.0.3
ESM onlyNoneDev servers and API mocking, WebSockets and realtime
jest-canvas-mock
Mock a canvas in your jest tests.
2m-5%-2 months ago
2.5.8
CommonJSBundledTesting, Dev servers and API mocking
browser-tabs-lock
provides locking mechanism to sync across browser tabs
1.9m+294%-3 years ago
1.3.0
CommonJSNoneDOM and browser utilities, Dev servers and API mocking
orval
A swagger client generator for typescript
1.6m+286%-1 day ago
8.37.0
--Dev servers and API mocking, Documentation tooling
@copilotkit/aimock
Mock infrastructure for AI application testing — point your SDK at one local port and every provider, protocol, and service answers deterministically.
1.1m---2 days ago
1.43.0
ESM + CommonJSBundledTesting, WebSockets and realtime
vitest-canvas-mock
🌗 A module used to mock canvas in Vitest.
819.6k+98%-20 days ago
1.2.0
ESM + CommonJSBundledTesting, Dev servers and API mocking
mock-socket
Javascript mocking library for websockets and socket.io
684.5k+56%-3 years ago
9.3.1
CommonJSNoneTesting, WebSockets and realtime
browser-sync
Live CSS Reload & Browser Syncing
596.1k-16%-1 year ago
3.0.4
CommonJSNoneDev servers and API mocking
browser-sync-ui
User Interface for BrowserSync
589.8k-16%-1 year ago
3.0.4
-NoneDev servers and API mocking
graphql-tools
Useful tools to create and manipulate GraphQL schemas.
571.5k-10%-17 days ago
9.0.35
ESM + CommonJSBundledGraphQL, TypeScript tooling
rewire
Easy dependency injection for node.js unit testing
509.2k+16%-1 year ago
9.0.1
CommonJSNoneTesting, Dev servers and API mocking
@jest-mock/express
A lightweight Jest mock for unit testing Express
502.9k---1 year ago
3.0.0
CommonJSBundledTesting, TypeScript tooling
fetch-mock-cache
Caching mock fetch implementation for all runtimes and frameworks.
456.8k+15640%-2 months ago
3.1.0
ESM onlyBundledTesting, Dev servers and API mocking
mock-property
Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.
450.6k+13%-3 months ago
1.1.2
CommonJSBundledTesting, Dev servers and API mocking
wxt
⚡ Next-gen Web Extension Framework
406.6k+848%-1 month ago
0.21.4
ESM onlyBundledBundlers, Build tools
ng-mocks
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.
404.6k-0%-6 days ago
14.18.1
ESM + CommonJSBundledTesting, Angular
mockttp
Mock HTTP server for testing HTTP clients and stubbing webservices
399.2k+42%-13 days ago
4.6.3
CommonJSBundledTesting, Dev servers and API mocking
aws-sdk-client-mock-jest
Custom Jest matchers for AWS SDK v3 Client mock
393.4k+22%-1 year ago
4.1.0
ESM + CommonJSBundledCloud SDKs, Testing
node-request-interceptor
Low-level HTTP/HTTPS/XHR request interception library for NodeJS
382.7k+32%-5 years ago
0.6.3
CommonJSBundledDev servers and API mocking
json-server
[![Node.js CI](https://github.com/typicode/json-server/actions/workflows/node.js.yml/badge.svg)](https://github.com/typicode/json-server/actions/workflows/node.js.yml)
356.8k+12%-6 months ago
1.0.0-beta.15
ESM onlyNoneDev servers and API mocking, Testing
@compodoc/live-server
Simple development http server with live reload capability
333k---4 years ago
1.2.3
-NoneHTTP servers and web frameworks, CLI tools and terminal utilities
xhr-mocklet
Utility for mocking XMLHttpRequests in the browser or nodejs.
332.8k+412%-7 years ago
1.2.3
ESM + CommonJSBundledTesting, Dev servers and API mocking
rolldown-vite
Vite on Rolldown preview
310.5k+33%-8 months ago
7.3.1
ESM onlyBundledBuild tools, Bundlers
pretender
Pretender is a mock server library for XMLHttpRequest and Fetch, that comes with an express/sinatra style syntax for defining routes and their handlers.
300.6k+14%--
3.4.7
ESM + CommonJSBundledDev servers and API mocking
connect-livereload
connect middleware for adding the livereload script to the response
292.4k-10%--
0.6.1
CommonJSNoneDev servers and API mocking
jest-localstorage-mock
Auto mock all localstorage and sessionstorage APIs for your Jest tests
281k+1%-3 years ago
2.4.26
ESM + CommonJSNoneTesting, Dev servers and API mocking
miragejs
A client-side server to help you build, test and demo your JavaScript app
264.2k+10%-2 years ago
0.1.48
ESM + CommonJSBundledDev servers and API mocking, Testing
@web/config-loader
Load a esm or cjs config from the file system
221.4k---2 months ago
1.0.0
ESM + CommonJSBundledDev servers and API mocking, Testing
jest-websocket-mock
Mock websockets and assert complex websocket interactions with Jest
212.9k+47%-3 years ago
2.5.0
ESM + CommonJSBundledTesting, WebSockets and realtime
@web/parse5-utils
Utils for using parse5
195.5k---2 months ago
3.0.0
ESM + CommonJSBundledDev servers and API mocking, Testing
ts-mockito
Mocking library for TypeScript
172k+1%-6 years ago
2.6.1
CommonJSBundledTesting, TypeScript tooling
@web/browser-logs
Capture browser logs for logging in NodeJS
164k---2 months ago
1.0.0
ESM + CommonJSBundledDev servers and API mocking, Testing
xhr-mock
Utility for mocking XMLHttpRequest.
161.6k+29%-6 years ago
2.5.1
CommonJSBundledDev servers and API mocking, Testing
@msw/playwright
Mock Service Worker binding for Playwright
144.1k---5 months ago
0.6.7
ESM onlyBundledTesting, Scraping and browser automation
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
143.4k+279%-21 days ago
9.2.0
ESM onlyBundledTesting, Dev servers and API mocking
@web/dev-server-rollup
Use rollup plugins in @web/dev-server
141k---2 months ago
1.0.0
ESM + CommonJSBundledTesting, Dev servers and API mocking
@web/dev-server
Dev server for web applications
138.2k---2 months ago
1.0.0
ESM + CommonJSBundledDev servers and API mocking
@web/test-runner-coverage-v8
Code coverage using v8
119.5k---2 months ago
1.0.0
ESM + CommonJSBundledTesting, Dev servers and API mocking
fictional
Generate fake data deterministically from a given input
102.1k+220%-1 year ago
3.0.1
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.

  • viteNative-ESM powered web dev build tool
  • fast-checkProperty based testing framework for JavaScript (like QuickCheck)
  • responselikeA response-like object for mocking a Node.js HTTP response stream
  • http-proxy-middlewareThe one-liner node.js proxy middleware for connect, express, next.js and more
  • @mswjs/interceptorsLow-level network interception library for Node.js.
  • mswSeamless REST/GraphQL API mocking library for browser and Node.js.
  • @vitejs/plugin-react-swcSpeed up your Vite dev server with SWC
  • cross-inspectCross platform implementation of Node's util.inspect
  • sponge-caseTransform into a string with random capitalization applied
  • nockHTTP server mocking and expectations library for Node.js
  • aws-sdk-client-mockEasy and powerful mocking of AWS SDK v3 Clients
  • msw-storybook-addonMock APIs in Storybook using Mock Service Worker.
  • jest-canvas-mockMock a canvas in your jest tests.
  • browser-tabs-lockprovides locking mechanism to sync across browser tabs
  • orvalA swagger client generator for typescript
  • @copilotkit/aimockMock infrastructure for AI application testing — point your SDK at one local port and every provider, protocol, and service answers deterministically.
  • vitest-canvas-mock🌗 A module used to mock canvas in Vitest.
  • mock-socketJavascript mocking library for websockets and socket.io
  • browser-syncLive CSS Reload & Browser Syncing
  • browser-sync-uiUser Interface for BrowserSync
  • graphql-toolsUseful tools to create and manipulate GraphQL schemas.
  • rewireEasy dependency injection for node.js unit testing
  • @jest-mock/expressA lightweight Jest mock for unit testing Express
  • fetch-mock-cacheCaching mock fetch implementation for all runtimes and frameworks.
  • mock-propertyGiven an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.
  • wxt⚡ Next-gen Web Extension Framework
  • ng-mocksng-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.
  • mockttpMock HTTP server for testing HTTP clients and stubbing webservices
  • aws-sdk-client-mock-jestCustom Jest matchers for AWS SDK v3 Client mock
  • node-request-interceptorLow-level HTTP/HTTPS/XHR request interception library for NodeJS
  • json-server[![Node.js CI](https://github.com/typicode/json-server/actions/workflows/node.js.yml/badge.svg)](https://github.com/typicode/json-server/actions/workflows/node.js.yml)
  • @compodoc/live-serverSimple development http server with live reload capability
  • xhr-mockletUtility for mocking XMLHttpRequests in the browser or nodejs.
  • rolldown-viteVite on Rolldown preview
  • pretenderPretender is a mock server library for XMLHttpRequest and Fetch, that comes with an express/sinatra style syntax for defining routes and their handlers.
  • connect-livereloadconnect middleware for adding the livereload script to the response
  • jest-localstorage-mockAuto mock all localstorage and sessionstorage APIs for your Jest tests
  • miragejsA client-side server to help you build, test and demo your JavaScript app
  • @web/config-loaderLoad a esm or cjs config from the file system
  • jest-websocket-mockMock websockets and assert complex websocket interactions with Jest
  • @web/parse5-utilsUtils for using parse5
  • ts-mockitoMocking library for TypeScript
  • @web/browser-logsCapture browser logs for logging in NodeJS
  • xhr-mockUtility for mocking XMLHttpRequest.
  • @msw/playwrightMock Service Worker binding for Playwright
  • oauth2-mock-serverOAuth2 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
  • @web/dev-server-rollupUse rollup plugins in @web/dev-server
  • @web/dev-serverDev server for web applications
  • @web/test-runner-coverage-v8Code coverage using v8
  • fictionalGenerate fake data deterministically from a given input