Mock HTTP calls without coding. Designed specially for testing and testers.
Alternatives To Stubmatic
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Nock12,30828,45412,675a day ago404July 13, 202381mitJavaScript
HTTP server mocking and expectations library for Node.js
Vcrpy2,47886015616 days ago70July 31, 2023131mitPython
Automatically mock your HTTP interactions to simplify and speed up testing
Jvm Sandbox Repeater2,281
11 hours ago93apache-2.0Java
A Java server-side recording and playback solution based on JVM-Sandbox
Httpretty2,0382,6401165 months ago59August 16, 2021113mitPython
Intercept HTTP requests at the Python socket level. Fakes the whole socket module
a month ago28apache-2.0TypeScript
Generate custom HTTP responses, the simpler way to test your Web Services
Gock1,914120547a month ago21August 03, 202139mitGo
HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
5 months ago64mitJavaScript
A tool to quickly mock out end points, setup delays and more...
Pact Js1,456959423 days ago180July 18, 202384otherTypeScript
JS version of Pact. Pact is a contract testing framework for HTTP APIs and non-HTTP asynchronous messaging systems.
Stripe Mock1,224
2 days ago240September 07, 20233mitGo
stripe-mock is a mock HTTP server that responds like the real Stripe API. It can be used instead of Stripe's testmode to make test suites integrating with Stripe faster and less brittle.
Fetch Mock1,2012,9352,1249 months ago204November 21, 202071mitJavaScript
Mock http requests made using fetch
Alternatives To Stubmatic
Select To Compare

Alternative Project Comparisons


Mock HTTP calls without coding. Designed specially for testing and testers.

NPM quality Travis ci Build Status Gitter Known Vulnerabilities Coverage Status

Stubmatic donate button Stubmatic logo
  1. Installation : $npm install stubmatic -g
  2. Set up repo : $stubmatic init [repo-name]
  3. Start server : $stubmatic [-d <repo-name>]
  4. Help : $stubmatic --help

Important links : Video Tutorial, Wiki, NPM, Demo application, issues, changelogs Stubmatic donate button


Main features

  • Mock HTTP(s) calls. (Hence can mock REST/SOAP web services)
  • Inspect HTTP calls from CLI or log them for more detail.
  • No code. Designed specially for testing and testers.
  • Mock messagepack or Nimn (निम्न) response easily. Write in JSON parse in desirable format.
  • Support SSL certificates.
  • Optional configuration
  • Dynamic response
    • Use Regular Expressions to match a request, capture some part of the request, to decide response file at runtime, to change contents of response at runtime etc.
    • Use Expressions (functions and markers) to display dynamic dates, random number etc.
    • Devide your response into multiple files (called dumps) for readability, reusability, and consistency.
    • Create a response skeleton with DB sets and fill data as per matched request.
    • Delay response for fixed or random time.
  • Send response as a stream (downloadable file)
  • Compress response automatically.
  • Route requests to other server using proxy.
  • Memory and CPU efficient
  • Ready to be used in performance environment
  • And much more like short notations, multiple mapping files, file strategy etc.


To install stubmatic, you need to install nodejs and npm first. It is recommanded to be on latest version of both. npm is bundeled with nodejs. Now follow above commands to install stubmatic and to set up a repo.

How to start

Stubmatic works on request response mappings specified in a yaml file. Response contents can be read from body or file attribute of a maping.

-  request:
      url: /stubs/(admin|staff|customer|security)/([0-9]+)/2

      body: >
        multiple line response
        another line

When a request reaches to stubmatic server, it matches the request against all mappings. Whichever mapping matches first(top to bottom), will be used to serve the response. A complete response can be built with multiple files. It can also have some placeholder to show dynamic data, like date, or some random number or some part from request itself. Stubmatic first process and build complete response then respond back to any HTTP(s) request.

Using regular expression, single mapping can be used to match multiple requests and serve response from different files.

Sample SOAP request mapping

-  request:
     method: POST
     url: /soap-simulator/services/ServiceName
     post: actionName[\s\S]*mobile.([0-9]+)
           content-type: text/xml
     strategy: "first-found"
     files: ["stubs/<% post.1 %>/response.xml","stubs/ServiceName/actionName/default.xml"]

Sample REST request mapping

-  request:
     method: GET
     url: /rest-simulator/services/ServiceName/actionName/([0-9]+)
           content-type: text/xml
     strategy: "first-found"
     files: ["stubs/<% url.1 %>/response.xml","stubs/ServiceName/actionName/default.xml"]

Our other projects and research you must try

  • BigBit standard :
    • Single text encoding to replace UTF-8, UTF-16, UTF-32 and more with less memory.
    • Single Numeric datatype alternative of integer, float, double, long, decimal and more without precision loss.
  • Cytorus: Now be specific and flexible while running E2E tests.
    • Run tests only for a particular User Story
    • Run tests for a route or from a route
    • Customizable reporting
    • Central dashboard for better monitoring
  • imglab : Web based tool to label images for object. So that they can be used to train dlib or other object detectors. You can integrate 3rd party libraries for fast labeling.



This project exists thanks to all the people who contribute. [Contribute].


Thank you to all our backers! 🙏 [Become a backer]


[Become a sponsor] Support this project by becoming a sponsor. Your logo will show up here with a link to your website. Please also share your detail so we can thankyou on SocialMedia.

Helpful articles and tutorials

Popular Http Projects
Popular Mock Projects
Popular Networking Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.