Skip to content
SPECIFICTION
Get listed

Mirage JS vs Mockttp

Mirage JS

miragejs.com

Mockttp

github.com

Side by side

FigureMirage JSMockttp
Price from—Free
Free plan—Yes
Free trial——
Open source——
WebYesYes
Windows—Yes
macOS—Yes
Linux—Yes
Self-hosted—Yes
Plans published03
Spec score · API Mocking Tools7.3 (#18)7.8 (#12)
IntegrationsOfficial guides cover Cypress and React Testing Library.The README example uses Mocha, Chai, and Superagent, while noting that these tools are optional and Mockttp can work with other promise-capable testing tools and HTTP clients.

Plans

Mirage JS

No plans published.

Mirage JS pricing →

Mockttp

  • HobbyistFree
  • ProfessionalPrice not published
  • TeamPrice not published

Mockttp pricing →

In their own words

Mirage JS

Mirage JS has no write-up on Specifiction yet; its figures are above.

Visit miragejs.com

Mockttp

Mockttp is a free, open-source JavaScript library for intercepting, transforming, or testing HTTP requests and responses. It supports integration tests in Node.js and browsers, including transparent proxying and HTTPS. Its tools can stub responses, verify requests, generate self-signed certificates for HTTPS mocking, and mock traffic inside or outside the process. It can also serve as the basis for custom proxies that capture, inspect, or rewrite traffic. For parallel tests, Mockttp can automatically configure ports, mock URLs, and proxy settings. It works with promise-capable testing tools and HTTP clients; Mocha, Chai, and Superagent appear in an example but are optional. Browser tests require an admin server running outside the browser. The setup guide warns against trusting a test certificate authority system-wide or sharing its private key, because either could allow an attacker to impersonate secure connections. Mockttp supports Linux, macOS, Windows, web, and self-hosted use.

Visit github.com