10 Best JavaScript Mock Server Libraries

List hand-picked by Openbase Experts
Learn More

nock

HTTP server mocking and expectations library for Node.js

2.5M
11.9K
Built-in
MIT
@mocks-server/core

Mocks Server monorepo

8.7K
98
No support
Apache-2.0
@mocks-server/main

Mocks Server monorepo

8.4K
98
No support
Apache-2.0
ob

Build, Validate, Route, Authenticate and Mock using OpenAPI

21.6K
425
Built-in
MIT
pretender

A mock server library with a nice routing DSL

269K
1.2K
Built-in
MIT
ma

mocker-api that creates mocks for REST APIs. It will be helpful when you try to test your application without the actual REST API server.

4K
428
Built-in
MIT
@mswjs/http-middleware

Spawn an HTTP server from your request handlers or apply them to an existing server using a middleware.

5.5K
50
Built-in
MIT
egg-mock

Mock library for egg testing.

15.8K
145
Built-in
swagger-express-middleware

Swagger 2.0 middlware and mocks for Express.js

7.4K
571
DefinitelyTyped
MIT
stu

A configurable server for mocking/stubbing external systems during development.

6.8K
254
DefinitelyTyped
Apache-2.0
cts

Creates a minimal Express server for testing

2.5K
119
DefinitelyTyped
MIT
nms

File based Node REST API mock server

2.1K
242
No support
MIT
api

node.js module to run a simple http server for mock service responses.

1.2K
272
DefinitelyTyped
MIT
drakov

Mock Server that implements the API Blueprint specification

777
476
No support
MIT
ome

Generates express mock-servers from OpenAPI specs

379
18
Built-in
MIT
tfb

Build a fake backend by providing the content of files or JavaScript objects through configurable routes.

11
53
Built-in
ISC
easymock

A simple but powerful mock server in nodejs

33
272
No support
hsm

Mock HTTP server for testing HTTP clients and stubbing webservices

6
Built-in
MIT
cc

A standalone server to mock various communications services for push messaging, email, and sms.

3
4
No support
MIT
hot-mock-server

An HTTP Server for Mock Data.

3
4
No support
MIT
rs

run a mocked server JUST based on a RAML API's definition .. zero coding

0
157
No support
MIT
Description
Author
License
Type Definitions
ESM Support
Tree Shakeable
Popularity
Downloads/wk
GitHub Stars
Reviews
User Rating
Voted Good Docs
Voted Easy of Use
Voted Performant
Top Positive Review
Top Negative Review
Issues
Total Issues
Open Issues
Avg Time to Close
Pull Requests
Total Pull Requests
Open Pull Requests
Avg Time to Merge
Community
Maintainers
Contributors
Contributors with 3+ commits
Top Committers
GitHub Forks
Versions
# of Versions
Latest
Next
Beta
Newest
Oldest
Major Every
Minor Every
Patch Every
Dependencies
Dependencies
Dev Dependencies
Links
More Info
README
Tutorials
Install Command
There's Nothing Here
No packages are selected.
Select a few packages to compare.