10 Best JavaScript Mock Server Libraries

List hand-picked by Openbase Experts
Learn More

nock

HTTP server mocking and expectations library for Node.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.8/ 5
5
Top Feedback
3Great Documentation
2Easy to Use
1Highly Customizable
GitHub Stars
11K
Weekly Downloads
2M
Last Commit
1mo ago

pretender

A mock server library with a nice routing DSL

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
258K
Last Commit
5mos ago
ob

openapi-backend

Build, Validate, Route, Authenticate and Mock using OpenAPI

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
300
Weekly Downloads
17K
Last Commit
1mo ago

@mocks-server/core

Mocks Server core. For programmatic usage only.

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
2K
Last Commit
2mos ago
ma

mocker-api

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.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
408
Weekly Downloads
5K
Last Commit
2mos ago

@mocks-server/main

Main distribution of Mocks Server

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
49
Weekly Downloads
2K
Last Commit
2mos ago
ome

openapi-mock-express-middleware

Generates express mock server from Open API spec

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
15
Weekly Downloads
775
Last Commit
3mos ago
fau

fauxauth

Helper application for testing OAuth clients

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
33
Last Commit
1mo ago

mock-http-server

Mock an HTTP server with JS

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
35
Weekly Downloads
8K
Last Commit
2mos ago
stu

stubby

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

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
245
Weekly Downloads
7K
Last Commit
10mos ago

@mswjs/http-middleware

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
21
Weekly Downloads
533
Last Commit
1mo ago

egg-mock

Mock library for egg testing.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
138
Weekly Downloads
34K
Last Commit
10mos ago
tfb

the-fake-backend

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

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
48
Weekly Downloads
10
Last Commit
4mos ago

http-server-mock

Powerful friendly HTTP mock server & proxy

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
TypeScript Icon
Deprecated
User RatingN/A
Top Feedback
N/A
GitHub Stars
500
Weekly Downloads
2
Last Commit
1mo ago
stu

stubsy

A mock server that ships with a UI to allow configuration during runtime.

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
2
Weekly Downloads
38
Last Commit
7mos ago

drakov

Mock Server that implements the API Blueprint specification

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
472
Weekly Downloads
666
Last Commit
4mos ago

swagger-express-middleware

Swagger 2.0 middlware and mocks for Express.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
564
Weekly Downloads
9K
Last Commit
1yr ago

ldap-server-mock

Really simple basic mock for LDAP server

License Icon
License: AGPL-3.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
44
Weekly Downloads
113
Last Commit
2mos ago
hoc

hock

An HTTP mocking server with an API based on Nock.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
85
Weekly Downloads
2K
Last Commit
2yrs ago
cts

create-test-server

Creates a minimal Express server for testing

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
119
Weekly Downloads
1K
Last Commit
3yrs ago
api

apimocker

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
272
Weekly Downloads
987
Last Commit
2yrs ago
nms

node-mock-server

File based Node REST API mock server

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
234
Weekly Downloads
867
Last Commit
2yrs ago
mc

mock-couch

A node.js module designed to mock a CouchDB server, mostly for unit testing purposes.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
66
Weekly Downloads
151
Last Commit
4yrs ago

easymock

A simple but powerful mock server in nodejs

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
273
Weekly Downloads
102
Last Commit
3yrs ago

highwind

Mock API express server

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
52
Last Commit
3yrs ago
gms

gulp-mock-server

to be the most simple gulp mock tool in the world

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
34
Weekly Downloads
50
Last Commit
5yrs ago
cc

copy-cat

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
4
Weekly Downloads
5
Last Commit
6yrs ago

veggie

Mock server with response set switching

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
4
Weekly Downloads
5
Last Commit
2yrs ago
mok

moky

⚡ [npm] A proxy server with mock

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
64
Weekly Downloads
2
Last Commit
2yrs ago
ems

express-mock-server-router

An express routing middleware for easily build up a mock restful API server.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
2
Last Commit
2yrs ago
hmm

hot-mock-middleware

A express middleware that creates mock service simply, support for real-time refresh

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
2
Last Commit
3yrs ago
rs

raml-server

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
158
Weekly Downloads
2
Last Commit
5yrs ago
low

lowserver

Easy to apply a mock server into express app.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
0
Last Commit
3yrs ago

mock-n-roll

configurable rest service system mock

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
2
Weekly Downloads
0
Last Commit
5yrs ago
emb

express-mock-backend

Express mock rest api server for testing

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
1
Last Commit
N/A

hot-mock-server

An HTTP Server for Mock Data.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
4
Weekly Downloads
0
Last Commit
4yrs ago
em

express-mocker

NodeJS Multipurpose Mockup Server

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
4
Weekly Downloads
1
Last Commit
8yrs ago
el

express-leaf

Leaf mock server for Express

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
1
Last Commit
N/A
msc

mockjs-server-cli

An express server that relies on mockjs to simulate the CLI of interface data

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
0
Last Commit
3yrs ago