https://github.com/sbarre/json-scrambler-proxy
An HTTPS Proxy that uses json-scrambler to scramble upstream responses in realtime.
https://github.com/sbarre/json-scrambler-proxy
fastify fuzzing json proxy testing
Last synced: about 2 months ago
JSON representation
An HTTPS Proxy that uses json-scrambler to scramble upstream responses in realtime.
- Host: GitHub
- URL: https://github.com/sbarre/json-scrambler-proxy
- Owner: sbarre
- License: mit
- Created: 2024-02-03T15:21:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-05T18:10:02.000Z (over 2 years ago)
- Last Synced: 2024-02-06T05:23:40.583Z (over 2 years ago)
- Topics: fastify, fuzzing, json, proxy, testing
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON Scrambler Proxy
**An HTTPS Proxy that uses [json-scrambler](https://github.com/sbarre/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](https://fastify.dev/) and the [@fastify/http-proxy](https://github.com/fastify/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.