{"id":20632021,"url":"https://github.com/rhaidiz/yves","last_synced_at":"2025-09-04T19:24:35.435Z","repository":{"id":57651365,"uuid":"372952028","full_name":"rhaidiz/yves","owner":"rhaidiz","description":"An HTTP(s) and WebSocket Man-in-The-Middle proxy library written in Go.","archived":false,"fork":false,"pushed_at":"2023-10-28T08:50:00.000Z","size":30,"stargazers_count":20,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T23:51:12.315Z","etag":null,"topics":["http","mitm","proxy","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rhaidiz.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,"publiccode":null,"codemeta":null}},"created_at":"2021-06-01T20:20:19.000Z","updated_at":"2024-08-14T13:06:44.000Z","dependencies_parsed_at":"2022-09-05T13:40:12.422Z","dependency_job_id":"c376c42a-b91a-4d7b-9c82-f4d981dbd588","html_url":"https://github.com/rhaidiz/yves","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhaidiz%2Fyves","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhaidiz%2Fyves/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhaidiz%2Fyves/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhaidiz%2Fyves/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhaidiz","download_url":"https://codeload.github.com/rhaidiz/yves/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249135763,"owners_count":21218365,"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":["http","mitm","proxy","websocket"],"created_at":"2024-11-16T14:14:41.638Z","updated_at":"2025-04-15T18:54:51.431Z","avatar_url":"https://github.com/rhaidiz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yves\nYves is a simple HTTP(s) and WebSocket Man-in-The-Middle proxy.\n\n# Main Features\n* HTTP(s) and WebSocket Man-in-The-Middle proxy;\n* Custom HTTP request\\response handlers;\n* Custom WebSocket request\\response handlers;\n* Custom CA for TLS connections;\n* Support for upstream proxy.\n\n# Usage\n\n## Start a server\nThe following snippets of code shows how to start a simple mitm proxy.\nMore usage examples can be found in the examples folder.\n\n```go\npackage main\n\nimport (\n        \"log\"\n        \"net/http\"\n\n        \"github.com/rhaidiz/yves\"\n)\n\nfunc main() {\n        // create a new mitm proxy\n        proxy := yves.NewProxy()\n\n        // Listen on local port 8080\n        log.Fatal(http.ListenAndServe(\":8080\", proxy))\n}\n```\n\n## Request handler\nThe following example shows how to use request handler to add a custom header to every request:\n```go\nproxy.HandleRequest = func(id int64, req *http.Request) *http.Response {\n\treq.Header.Add(\"custom\", \"myval\")\n\tlog.Printf(\"session: %v\\n\", id)\n\treturn nil\n}\n```\n\n## Response handler\nThe following example shows how to prevent access to a requests performed toward a specific host.\n\n```go\nproxy.HandleRequest = func(id int64, req *http.Request) *http.Response {\n\tif req.Host == \"example.com\" {\n\t\treturn \u0026http.Response{StatusCode: 500}\n\t}\n\treturn nil\n```\n\n## Examples\n\nMore usage can be found in the [examples](examples/) folder.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhaidiz%2Fyves","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhaidiz%2Fyves","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhaidiz%2Fyves/lists"}