Skip to content

An HTTPS Proxy that uses json-scrambler to scramble upstream responses in realtime.

License

Notifications You must be signed in to change notification settings

sbarre/json-scrambler-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Scrambler Proxy

An HTTPS Proxy that uses json-scrambler to scramble upstream responses in realtime.

What is this about?

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.

Installation

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

Tests coming soon!

LICENSE

json-scrambler-proxy is licensed under the MIT license.

About

An HTTPS Proxy that uses json-scrambler to scramble upstream responses in realtime.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published