{"id":31287285,"url":"https://github.com/carlosrabelo/karoo","last_synced_at":"2025-09-24T11:03:17.734Z","repository":{"id":315964563,"uuid":"1061399544","full_name":"carlosrabelo/karoo","owner":"carlosrabelo","description":"Karoo Stratum Proxy","archived":false,"fork":false,"pushed_at":"2025-09-21T21:00:44.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-21T23:18:09.441Z","etag":null,"topics":["blockchain","cryptocurrency","golang","mining-proxy","multi-protocol","nerdminer","observability","stratum","tcp-server","vardiff"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carlosrabelo.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-09-21T20:36:41.000Z","updated_at":"2025-09-21T21:00:47.000Z","dependencies_parsed_at":"2025-09-21T23:18:12.818Z","dependency_job_id":null,"html_url":"https://github.com/carlosrabelo/karoo","commit_stats":null,"previous_names":["carlosrabelo/karoo"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/carlosrabelo/karoo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosrabelo%2Fkaroo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosrabelo%2Fkaroo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosrabelo%2Fkaroo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosrabelo%2Fkaroo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlosrabelo","download_url":"https://codeload.github.com/carlosrabelo/karoo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosrabelo%2Fkaroo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276737524,"owners_count":25695700,"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","status":"online","status_checked_at":"2025-09-24T02:00:09.776Z","response_time":97,"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":["blockchain","cryptocurrency","golang","mining-proxy","multi-protocol","nerdminer","observability","stratum","tcp-server","vardiff"],"created_at":"2025-09-24T11:01:14.411Z","updated_at":"2025-09-24T11:03:17.729Z","avatar_url":"https://github.com/carlosrabelo.png","language":"Go","readme":"# Karoo Stratum Proxy\n\n\u003e Author: Carlos Rabelo - contato@carlosrabelo.com.br\n\nKaroo started as a weekend experiment: a lightweight Stratum proxy so a rack of Nerdminers could share a single upstream connection. The idea quickly grew into a general-purpose, multi-protocol Stratum front-end that keeps upstream pools happy while CPU, GPU, or embedded rigs hammer away behind it.\n\n## Features\n\n- **Upstream on demand** – automatically dials the configured pool only when miners are connected and backs off with jittered retries on failures.\n- **Protocol aware fan-out** – normalises `mining.subscribe`, `mining.authorize`, and `mining.submit` flows while preserving client IDs and minimizing extranonce collisions.\n- **Share accounting \u0026 reporting** – detailed logs per worker (latency, spacing between accepted shares) plus periodic aggregate reports and HTTP `/status` / `/healthz` endpoints.\n- **VarDiff scaffold** – optional, per-worker difficulty adjustments with room to grow into a full moving-average controller.\n- **Flexible transport** – TCP today, with plumbing designed to extend to TLS or additional wire protocols.\n\n## Getting Started\n\n```bash\nmake build        # compile to build/karoo\nmake build-static # compile to build/karoo-static (CGO disabled)\nmake run          # run with ./config.json\n```\n\nThe default configuration listens on `:3334` for Stratum clients and connects to the upstream pool defined in `config.json`. HTTP status endpoints are exposed at `:8080` by default.\n\n### Configuration Highlights\n\n- `proxy.listen` – downstream address the miners connect to.\n- `upstream.{host,port,user,pass}` – upstream Stratum pool credentials.\n- `proxy.client_idle_ms` – disconnect idle miners after the specified timeout.\n- `compat.strict_broadcast` – when `false`, forwards unfamiliar `mining.*` messages unchanged.\n- `vardiff.enabled` – toggle simple per-worker VarDiff adjustments.\n\nSee the commented sample at the bottom of `main.go` for a full reference.\n\n## Development Workflow\n\n- Build with `make build` (outputs `build/karoo`).\n- Run unit-style checks by executing `go test ./...` (once tests are added).\n- Format code with `gofmt` (the Makefile target already does this before building).\n- Publish binaries by pushing a tag like `v1.0.0` or running the GitHub Actions workflow manually.\n\n## Roadmap\n\n- Expand the VarDiff loop into a moving average controller with bucketed share statistics.\n- Add downstream protocol adapters (e.g., WebSockets) and upstream failover lists.\n- Ship structured metrics (Prometheus/OpenTelemetry) to complement the existing logs.\n\n## License\n\nKaroo is released under the GNU General Public License, version 2. See [LICENSE](LICENSE) for the full text.\n\n## Donations\n\nIf Karoo is useful to you, consider supporting development:\n\n- **BTC**: `bc1qw2raw7urfuu2032uyyx9k5pryan5gu6gmz6exm`\n- **DOGE**: `DTAkhF6oHiK9HmcsSk3RPZp5XqR2bvCaHK`\n- **ETH**: `0xdb4d2517C81bE4FE110E223376dD9B23ca3C762E`\n- **LTC**: `LSQFLPM89gABNEGutwWMFA4ma24qDVwy8m`\n- **TRX**: `TTznF3FeDCqLmL5gx8GingeahUyLsJJ68A`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosrabelo%2Fkaroo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlosrabelo%2Fkaroo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosrabelo%2Fkaroo/lists"}