{"id":21909209,"url":"https://github.com/somehowchris/peek-reverse-proxy","last_synced_at":"2025-04-16T01:54:45.930Z","repository":{"id":38020134,"uuid":"470627398","full_name":"somehowchris/peek-reverse-proxy","owner":"somehowchris","description":"Simple reverse proxy to peek into requests","archived":false,"fork":false,"pushed_at":"2025-04-15T08:08:28.000Z","size":284,"stargazers_count":4,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T09:24:40.914Z","etag":null,"topics":["api","http","hyper","peek","reverse-proxy","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/somehowchris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-03-16T14:50:18.000Z","updated_at":"2024-09-02T12:53:40.000Z","dependencies_parsed_at":"2023-02-18T22:15:34.905Z","dependency_job_id":"30f6a268-4477-4876-a003-1134d35a2877","html_url":"https://github.com/somehowchris/peek-reverse-proxy","commit_stats":{"total_commits":118,"total_committers":4,"mean_commits":29.5,"dds":0.5169491525423728,"last_synced_commit":"0c407f5ed418df4af72b50d02d26da0b8574bf1a"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somehowchris%2Fpeek-reverse-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somehowchris%2Fpeek-reverse-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somehowchris%2Fpeek-reverse-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somehowchris%2Fpeek-reverse-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/somehowchris","download_url":"https://codeload.github.com/somehowchris/peek-reverse-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249042514,"owners_count":21203303,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","http","hyper","peek","reverse-proxy","rust"],"created_at":"2024-11-28T17:15:59.138Z","updated_at":"2025-04-16T01:54:45.913Z","avatar_url":"https://github.com/somehowchris.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# peek reverse proxy\n\nSometimes you do not have a network traffic interceptor, proxy such as burp or F12 debug tools to inspect requests. This simple reverse proxy is a simple solution to that.\n\u003e DISCLAIMER: do not use this as a production ready thing, was never designed for this\n\n## Purpose\n\nSometimes there are is just that one environment where you can't have a debug mode.\n\nIf you've mocked an API just to look at the request sent fear no more. This client lets you host a http listener to peek into request details such as bodies, queries, headers and proxy the request to the destination at the same time.\n\n## Usage\n\n### Install\n\nYou can use this crate via several distributions:\n - `cargo install` via crates.io\n - `cargo install` from source\n - `docker`, `podman` or any OCI container runtime\n - `cargo binstall`\n - binaries from gh releases\n\n#### Cargo binstall\n\nTo install this crate via `cargo-binstall`:\n```sh\ncargo binstall peek-reverse-proxy\n```\n\n#### Cargo\n\nTo install this crate via `cargo`:\n```sh\ncargo install peek-reverse-proxy\n```\n\n#### From Source\n\n```\ngit clone https://github.com/somehowchris/peek-reverse-proxy.git\n\ncd peek-reverse-proxy\n\ncargo install --path .\n```\n\n#### Docker/Containers\n\n```sh\ndocker pull ghcr.io/somehowchris/peek-reverse-proxy:0.1.12\n```\n\n### Run it\n\n#### Installed binary\n\nOnce installed, you can run it via:\n```sh\npeek-reverse-proxy\n```\n\n##### Configuration\n\nEnv variables allow you to configure things to your needs:\n- `HOST_ADDRESS`: address on which to listen on i.e. `0.0.0.0:8080`\n- `DESTINATION_URL`: destination url including host and scheme i.e. `https://www.google.com`\n- (optional) `LOG_LEVEL`: level of logs to log __off__, __debug__, __normal__, __critical__, defaults to `normal`\n- (optional) `PRINT_STYLE`: print style for logs, either __json__ (outputs everything in json style), __plain__ (outputs everything in standard log formats but has no json field formatting), __pretty__ (just as plain, but formats outputs of json fields with serde_jsons pretty option), defaults to `pretty`\n\n\nFor example:\n\n```sh\nexport HOST_ADDRESS=\"0.0.0.0:8080\"\nexport DESTINATION_URL=\"https://www.google.com\"\nexport PRINT_STYLE=\"json\"\nexport LOG_LEVEL=\"normal\"\n\npeek-reverse-proxy\n```\n\n#### Docker\n\n```sh\ndocker run -e HOST_ADDRESS=\"0.0.0.0:8080\" -e DESTINATION_URL=\"https://www.google.com\" -p 8080:8080 ghcr.io/somehowchris/peek-reverse-proxy:0.1.12\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomehowchris%2Fpeek-reverse-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsomehowchris%2Fpeek-reverse-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomehowchris%2Fpeek-reverse-proxy/lists"}