Mockttp review
A flexible choice for detailed HTTP mocking in Node and TypeScript test suites.
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Mockttp is an open-source JavaScript and TypeScript library for intercepting, transforming, proxying, and testing HTTP traffic. It is designed for developers building browser and Node.js integration tests, local mock servers, or scriptable proxies. The library supports fixed or dynamically assigned ports, transparent HTTP and HTTPS proxying, WebSocket request mocking, and requests made outside the controlling process. TypeScript typings and promise-based asynchronous APIs fit projects that want programmable test infrastructure rather than a standalone interface.
Its strongest capability is the depth of request control. Matching can use paths, query parameters, headers, bodies, hosts, protocols, and URL patterns, while responses can be static text, JSON, files, or callback-generated values. Captured request data supports inspection and verification, and tests can model connection delays, failures, timeouts, and passthrough behavior. Automatic port and URL configuration also supports parallel tests, making Mockttp suitable when a test suite needs both normal responses and controlled failure cases.
Mockttp is a focused fit for teams working in the Node.js, JavaScript, TypeScript, and browser ecosystem. Its open-source model suits developers who want a library they can include directly in test suites or run as a scriptable proxy. Choose it when detailed HTTP matching, dynamic responses, proxying, WebSockets, or request verification matter. Teams seeking broader platform coverage or a less programmable approach should consider a tool aligned with those needs instead.
Mockttp pros and cons
- Where it wins
- Matches requests by paths, headers, bodies, hosts, protocols, and URL patterns
- Supports HTTP, HTTPS, WebSocket, and programmable callback responses
- Enables inspection, failure simulation, and parallel tests with automatic port setup
- Where it doesn't
- Its documented ecosystem centers on Node.js, JavaScript, TypeScript, and browsers
- Advanced scenarios require writing matching rules or callback-based response logic
- It is focused on HTTP traffic mocking rather than broader test-platform coverage
Mockttp fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update