{"id":36967407,"url":"https://github.com/open-zhy/fwd-proxy","last_synced_at":"2026-01-13T20:03:31.738Z","repository":{"id":329011856,"uuid":"1117759378","full_name":"open-zhy/fwd-proxy","owner":"open-zhy","description":"A very simple and lighweight proxy/forwarder","archived":false,"fork":false,"pushed_at":"2025-12-16T19:23:19.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-20T10:23:58.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/open-zhy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-16T19:16:34.000Z","updated_at":"2025-12-16T19:23:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/open-zhy/fwd-proxy","commit_stats":null,"previous_names":["open-zhy/fwd-proxy"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/open-zhy/fwd-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-zhy%2Ffwd-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-zhy%2Ffwd-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-zhy%2Ffwd-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-zhy%2Ffwd-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-zhy","download_url":"https://codeload.github.com/open-zhy/fwd-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-zhy%2Ffwd-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28399508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-13T20:03:31.056Z","updated_at":"2026-01-13T20:03:31.732Z","avatar_url":"https://github.com/open-zhy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fwd-proxy\n\n`fwd-proxy` is a lightweight, cross-platform HTTP Reverse Proxy written in Go. It is designed to be a simple, easy-to-deploy tool for forwarding requests to a backend server, with built-in support for CORS, custom headers, and cross-platform compatibility.\n\n![License](https://img.shields.io/badge/license-MIT-blue.svg)\n![Go Version](https://img.shields.io/badge/go-1.24.3-blue)\n\n## Features\n\n- **HTTP/TCP Proxying**: Forwards HTTP requests to a specified target server.\n- **CORS Support**: Easily enable default CORS headers with a single flag.\n- **Custom Headers**: Inject custom response headers (e.g., for testing or specific client requirements).\n- **Cross-Platform**: Binaries available for Linux, macOS, and Windows (amd64/arm64).\n- **Zero Dependency**: Single static binary, no dependencies required on the host.\n\n## Installation\n\n### Quick Install (Linux/macOS)\n\nYou can install the latest release using the installation script:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/open-zhy/fwd-proxy/main/install.sh | sh\n```\n\n### Manual Download\n\nDownload the latest binary for your OS and Architecture from the [Releases](https://github.com/open-zhy/fwd-proxy/releases) page.\n\n### From Source\n\nRequirements: Go 1.24+\n\n```bash\ngit clone https://github.com/open-zhy/fwd-proxy.git\ncd fwd-proxy\nmake build\n# Binary will be in bin/fwd-proxy\n```\n\n## Usage\n\n```bash\n./fwd-proxy -port \u003cPORT\u003e -target \u003cTARGET_URL\u003e [OPTIONS]\n```\n\n### Flags\n\n| Flag | Description | Default |\n|------|-------------|---------|\n| `-port` | Local port to listen on. | `8080` |\n| `-target` | **Required.** The target server URL (e.g., `http://localhost:9000`). | |\n| `-cors` | Enable default CORS headers (`Access-Control-Allow-Origin: *`, etc.). | `false` |\n| `-header` | Custom header to add to response. Format: `Key:Value`. Can be used multiple times. | |\n| `-version`| Print version information and exit. | |\n\n### Examples\n\n**Basic Forwarding:**\nForward traffic from localhost:8080 to localhost:3000:\n```bash\n./fwd-proxy -target http://localhost:3000\n```\n\n**With Custom Port:**\nListen on port 9090 and forward to a remote API:\n```bash\n./fwd-proxy -port 9090 -target https://api.example.com\n```\n\n**Testing with CORS and Custom Headers:**\nUseful for frontend development against an API that doesn't send CORS headers:\n```bash\n./fwd-proxy -target http://localhost:3000 -cors -header \"X-Debug: True\" -header \"Cache-Control: no-cache\"\n```\n\n## Development\n\n### Running Tests\n```bash\nmake test\n```\n\n### Building Cross-Platform Binaries\n```bash\nmake build-all\n```\nThis command generates binaries for all supported platforms in the `bin/` directory.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-zhy%2Ffwd-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-zhy%2Ffwd-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-zhy%2Ffwd-proxy/lists"}