10 Best Node.js Mock Server Libraries

Curated by the Openbase team and community.Learn more

Curated by the Openbase team and community. 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
4
Top Feedback
3Great Documentation
2Easy to Use
1Highly Customizable
GitHub Stars
11K
Weekly Downloads
2M
Last Commit
3d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

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
233K
Last Commit
2mos ago
Bundle Size (min+gzip)
N/A
Tree-Shakeable

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
757
Last Commit
16d ago
Bundle Size (min+gzip)
595.4KB
Not Tree-Shakeable
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
242
Weekly Downloads
6K
Last Commit
7mos ago
Bundle Size (min+gzip)
36.6KB
Not Tree-Shakeable

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
34
Weekly Downloads
10K
Last Commit
4mos ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

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
29K
Last Commit
7mos ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

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
441
Weekly Downloads
2
Last Commit
14hrs ago
Bundle Size (min+gzip)
315.6KB
Not Tree-Shakeable

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
560
Weekly Downloads
10K
Last Commit
1yr ago
Bundle Size (min+gzip)
540.0KB
Not Tree-Shakeable
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
270
Weekly Downloads
2K
Last Commit
2yrs ago
Bundle Size (min+gzip)
504.0KB
Not Tree-Shakeable
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
84
Weekly Downloads
1K
Last Commit
2yrs ago
Bundle Size (min+gzip)
2.57KB
Not Tree-Shakeable
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
230
Weekly Downloads
1K
Last Commit
1yr ago
Bundle Size (min+gzip)
0.58KB
Not Tree-Shakeable
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
254
Last Commit
3yrs ago
Bundle Size (min+gzip)
216.9KB
Not Tree-Shakeable

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
43
Weekly Downloads
168
Last Commit
1yr ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
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
79
Last Commit
5yrs ago
Bundle Size (min+gzip)
432.4KB
Not Tree-Shakeable

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
272
Weekly Downloads
56
Last Commit
3yrs ago
Bundle Size (min+gzip)
0.19KB
Not Tree-Shakeable
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
65
Weekly Downloads
15
Last Commit
2yrs ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
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
11
Last Commit
4yrs ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable