Build an HTTPS-intercepting JavaScript proxy in 30 seconds flat | HTTP Toolkit
Mockttp is the open-source HTTP library that powers all the internals of HTTP Toolkit, built in TypeScript. It can act as an HTTP(S) server or proxy, to intercept and mock traffic, transform responses, inject errors, or fire events for all the traffic it receives.