An HTTPS Proxy that uses json-scrambler to scramble upstream responses in realtime.
An easy way to proxy any HTTPS API that returns JSON and apply JSON Scrambler's scramble()
to the response body before returning it to the client.
Built on Fastify and the @fastify/http-proxy plugin.
Create a .env
file in the directory with the following values:
Variable Name | Description |
---|---|
PROXY_PORT | The port on which you want to run the proxy server (default: 4000) |
PROXY_UPSTREAM | The full URL to the API you want to proxy (default: http://localhost:3000) |
SCRAMBLER_CHAOS | The chaos property to pass to json-scrambler , a value between 0 and 100. (default: 10) |
Then run:
npm start
Docker configuration coming soon!
Tests coming soon!
json-scrambler-proxy is licensed under the MIT license.