{"id":50266224,"url":"https://github.com/dortanes/prox","last_synced_at":"2026-05-31T23:01:04.412Z","repository":{"id":356738193,"uuid":"1233713230","full_name":"dortanes/prox","owner":"dortanes","description":"Modular fast reverse proxy with config-driven routing and L4/L7 dispatching.","archived":false,"fork":false,"pushed_at":"2026-05-27T14:24:50.000Z","size":268,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T14:27:32.676Z","etag":null,"topics":["go","golang","http-server","https-proxy","https-server","reverse-proxy","tcp-server"],"latest_commit_sha":null,"homepage":"http://prox.dortanes.com/","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/dortanes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2026-05-09T09:09:03.000Z","updated_at":"2026-05-27T14:26:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dortanes/prox","commit_stats":null,"previous_names":["dortanes/prox"],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/dortanes/prox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dortanes%2Fprox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dortanes%2Fprox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dortanes%2Fprox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dortanes%2Fprox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dortanes","download_url":"https://codeload.github.com/dortanes/prox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dortanes%2Fprox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33752286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","golang","http-server","https-proxy","https-server","reverse-proxy","tcp-server"],"created_at":"2026-05-27T14:01:26.435Z","updated_at":"2026-05-31T23:01:04.401Z","avatar_url":"https://github.com/dortanes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prox\n\nA modular reverse proxy with config-driven routing, load balancing, L4/L7 dispatching, hot reload, and plugin middleware.\n\n[![CI](https://github.com/dortanes/prox/actions/workflows/ci.yml/badge.svg)](https://github.com/dortanes/prox/actions/workflows/ci.yml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/dortanes/prox.svg)](https://pkg.go.dev/github.com/dortanes/prox)\n[![Go Report Card](https://goreportcard.com/badge/github.com/dortanes/prox)](https://goreportcard.com/report/github.com/dortanes/prox)\n[![Release](https://img.shields.io/github/v/release/dortanes/prox?logo=github\u0026color=blue)](https://github.com/dortanes/prox/releases)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n**[Documentation](https://dortanes.github.io/prox)** · [Getting Started](https://dortanes.github.io/prox/getting-started) · [Configuration](https://dortanes.github.io/prox/configuration/) · [Plugins](https://dortanes.github.io/prox/plugins/) · [Deployment](https://dortanes.github.io/prox/deployment)\n\n---\n\n## Install\n\n```bash\ngo install github.com/dortanes/prox/cmd/prox@latest\n```\n\n## Usage\n\n```bash\nprox serve -config config.json5\n```\n\nMinimal configuration:\n\n```json5\n{\n  services: {\n    web: {\n      listen: \":8080\",\n      routes: [\n        { match: { domain: \"api.example.com\", path: \"/v1/*\" }, action: \"api\" },\n        { match: { domain: \"*.example.com\" }, action: \"site\" },\n      ],\n    },\n  },\n  actions: {\n    api:  { type: \"proxy\", upstream: \"localhost:3000\" },\n    site: { type: \"serve\", root: \"./public\" },\n  },\n}\n```\n\n## Features\n\n- **JSON5 routing** — services, routes, actions, and resources\n- **Domain wildcards** — `*.example.com`, `cdn-*.**`\n- **L4 + L7** — SNI-based TCP pass-through alongside HTTP on the same port\n- **Load balancing** — round-robin, random, least-connections\n- **Speed limiting** — per-route, per-connection, or shared bandwidth caps\n- **Plugin middleware** — auth, response modification, service discovery via [Go SDK](https://dortanes.github.io/prox/plugins/sdk)\n- **Hot reload** — zero-downtime config swap via file watcher or SIGHUP\n- **Admin API** — optional REST API for [health checks, reload, and runtime inspection](https://dortanes.github.io/prox/admin-api)\n- **WebSocket \u0026 HTTP/2** — transparent proxying with h2c upstream support\n- **TLS** — multi-cert SNI with directory-based certificate loading\n- **Automatic HTTPS** — ACME certificates via Let's Encrypt / ZeroSSL with [Cloudflare DNS](https://dortanes.github.io/prox/tls) for wildcard support\n\n## Performance\n\n~88K req/s — 2.87 ms avg latency (HTTP/1.1, no TLS, single node).\n\n| Proxy | Req/s | Avg | P99 |\n|-------|------:|----:|----:|\n| HAProxy | 90,080 | 2.78 ms | 4.12 ms |\n| **prox** | **88,643** | **2.87 ms** | **3.96 ms** |\n| Nginx | 87,768 | 2.90 ms | 3.74 ms |\n| Traefik | 82,737 | 3.08 ms | 5.84 ms |\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\nApple M4 Pro, 12-core, 24 GB · `wrk -t4 -c256 -d10s` · Go upstream (200 OK, 2 bytes) · `bash bench/run.sh`\n\u003c/details\u003e\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdortanes%2Fprox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdortanes%2Fprox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdortanes%2Fprox/lists"}