{"id":46267393,"url":"https://github.com/taigrr/toga","last_synced_at":"2026-05-31T01:01:01.916Z","repository":{"id":341522435,"uuid":"1170170290","full_name":"taigrr/toga","owner":"taigrr","description":"Drop-in replacement for Athens Go module proxy, powered by goproxy","archived":false,"fork":false,"pushed_at":"2026-04-15T01:34:32.000Z","size":7233,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-15T03:22:46.272Z","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":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taigrr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["taigrr"]}},"created_at":"2026-03-01T19:58:07.000Z","updated_at":"2026-04-15T01:34:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/taigrr/toga","commit_stats":null,"previous_names":["taigrr/toga"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/taigrr/toga","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Ftoga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Ftoga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Ftoga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Ftoga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taigrr","download_url":"https://codeload.github.com/taigrr/toga/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Ftoga/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33715211,"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-30T02:00:06.278Z","response_time":92,"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":[],"created_at":"2026-03-04T02:23:50.754Z","updated_at":"2026-05-31T01:01:01.872Z","avatar_url":"https://github.com/taigrr.png","language":"Go","funding_links":["https://github.com/sponsors/taigrr"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"logo.svg\" width=\"200\" alt=\"Toga\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eToga\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eA modern Go module proxy — drop-in replacement for Athens\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/demo.gif\" alt=\"Toga Demo\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/taigrr/toga/actions\"\u003e\u003cimg src=\"https://github.com/taigrr/toga/actions/workflows/ci.yml/badge.svg\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/taigrr/toga\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/taigrr/toga\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-0BSD-blue\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nToga is a Go module proxy powered by [goproxy](https://github.com/goproxy/goproxy). It correctly handles vanity imports, `gopkg.in` redirects, and the full `GOPROXY` protocol by delegating module fetching to goproxy's `GoFetcher`, which uses the Go toolchain directly.\n\nToga maintains Athens-compatible storage layouts — point it at your existing S3/GCS/MinIO/Azure bucket and it just works.\n\n## Why Toga?\n\nAthens has a [long-standing bug](https://github.com/gomods/athens/issues/2029) where vanity import URLs don't resolve correctly, and the project is no longer actively maintained. Toga fixes this while keeping full compatibility with your existing Athens storage.\n\n## Features\n\n- **Athens-compatible storage** — works with your existing module cache, no data migration\n- **Vanity import support** — correctly resolves vanity URLs and `gopkg.in` redirects\n- **5 storage backends** — Disk, S3, MinIO, GCS, Azure Blob\n- **Web UI** — browse cached modules with syntax-highlighted `go.mod` previews\n- **Health endpoints** — `/healthz` and `/readyz` for orchestration\n- **TLS \u0026 basic auth** — production-ready out of the box\n- **Network modes** — `fallback` (default), `strict` (cache-only misses error), `offline` (no upstream)\n- **Single binary** — no dependencies, no database\n\n## Quick Start\n\n### Binary\n\n```bash\n# Install\ngo install github.com/taigrr/toga/cmd/toga@latest\n\n# Run with disk storage (default)\ntoga\n\n# Point Go at it\ngo env -w GOPROXY=http://localhost:6060,direct\n```\n\n### Docker\n\n```bash\ndocker run -p 6060:6060 ghcr.io/taigrr/toga\n```\n\n### With S3\n\n```bash\nTOGA_STORAGE_TYPE=s3 \\\nTOGA_S3_REGION=us-east-1 \\\nTOGA_S3_BUCKET=my-go-modules \\\ntoga\n```\n\n## Storage Backends\n\n| Backend    | `TOGA_STORAGE_TYPE` | Athens Compatible |\n| ---------- | ------------------- | :---------------: |\n| Disk       | `disk`              |        Yes        |\n| S3         | `s3`                |        Yes        |\n| MinIO      | `minio`             |        Yes        |\n| GCS        | `gcs`               |        Yes        |\n| Azure Blob | `azureblob`         |        Yes        |\n\n## Configuration\n\nToga is configured with environment variables (prefix `TOGA_`) or a config file (`toga.toml`, `toga.yaml`, `toga.json`).\n\n### Server\n\n| Variable                | Default    | Description                                  |\n| ----------------------- | ---------- | -------------------------------------------- |\n| `TOGA_PORT`             | `:6060`    | Listen address                               |\n| `TOGA_UNIX_SOCKET`      |            | Unix socket path (overrides port)            |\n| `TOGA_TIMEOUT`          | `300s`     | Request timeout                              |\n| `TOGA_SHUTDOWN_TIMEOUT` | `30s`      | Graceful shutdown timeout                    |\n| `TOGA_PATH_PREFIX`      |            | URL path prefix                              |\n| `TOGA_LOG_LEVEL`        | `info`     | Log level (`debug`, `info`, `warn`, `error`) |\n| `TOGA_NETWORK_MODE`     | `fallback` | `fallback`, `strict`, or `offline`           |\n| `TOGA_GO_BINARY`        | `go`       | Path to Go binary                            |\n| `TOGA_SUM_DBS`          |            | Comma-separated sum DBs to proxy             |\n\n### TLS \u0026 Auth\n\n| Variable               | Description          |\n| ---------------------- | -------------------- |\n| `TOGA_TLS_CERT`        | TLS certificate file |\n| `TOGA_TLS_KEY`         | TLS key file         |\n| `TOGA_BASIC_AUTH_USER` | Basic auth username  |\n| `TOGA_BASIC_AUTH_PASS` | Basic auth password  |\n\n### Storage: Disk\n\n| Variable              | Default             | Description       |\n| --------------------- | ------------------- | ----------------- |\n| `TOGA_DISK_ROOT_PATH` | `/tmp/toga-storage` | Storage directory |\n\n### Storage: S3\n\n| Variable                   | Description                 |\n| -------------------------- | --------------------------- |\n| `TOGA_S3_REGION`           | AWS region                  |\n| `TOGA_S3_BUCKET`           | Bucket name                 |\n| `TOGA_S3_KEY`              | Access key ID               |\n| `TOGA_S3_SECRET`           | Secret access key           |\n| `TOGA_S3_TOKEN`            | Session token               |\n| `TOGA_S3_ENDPOINT`         | S3-compatible endpoint      |\n| `TOGA_S3_FORCE_PATH_STYLE` | Path-style access (`false`) |\n\n### Storage: MinIO\n\n| Variable                | Description          |\n| ----------------------- | -------------------- |\n| `TOGA_MINIO_ENDPOINT`   | MinIO endpoint       |\n| `TOGA_MINIO_KEY`        | Access key           |\n| `TOGA_MINIO_SECRET`     | Secret key           |\n| `TOGA_MINIO_BUCKET`     | Bucket name          |\n| `TOGA_MINIO_REGION`     | Region               |\n| `TOGA_MINIO_ENABLE_SSL` | Enable SSL (`false`) |\n\n### Storage: GCS\n\n| Variable                    | Description               |\n| --------------------------- | ------------------------- |\n| `TOGA_GCS_BUCKET`           | Bucket name               |\n| `TOGA_GCS_PROJECT_ID`       | GCP project ID            |\n| `TOGA_GCS_CREDENTIALS_FILE` | Service account JSON path |\n\n### Storage: Azure Blob\n\n| Variable                        | Description          |\n| ------------------------------- | -------------------- |\n| `TOGA_AZUREBLOB_ACCOUNT_NAME`   | Storage account name |\n| `TOGA_AZUREBLOB_ACCOUNT_KEY`    | Storage account key  |\n| `TOGA_AZUREBLOB_CONTAINER_NAME` | Container name       |\n\n## API Endpoints\n\n| Endpoint                          | Description           |\n| --------------------------------- | --------------------- |\n| `GET /healthz`                    | Liveness probe        |\n| `GET /readyz`                     | Readiness probe       |\n| `GET /\u003cmodule\u003e/@v/list`           | List versions         |\n| `GET /\u003cmodule\u003e/@v/\u003cversion\u003e.info` | Version metadata      |\n| `GET /\u003cmodule\u003e/@v/\u003cversion\u003e.mod`  | `go.mod` file         |\n| `GET /\u003cmodule\u003e/@v/\u003cversion\u003e.zip`  | Module source archive |\n\n## Running as a Service\n\n### Linux (systemd user service)\n\nCreate `~/.config/systemd/user/toga.service`:\n\n```ini\n[Unit]\nDescription=Toga Go Module Proxy\nAfter=network.target\n\n[Service]\nType=simple\nExecStart=%h/go/bin/toga\nEnvironment=\"TOGA_PORT=:6060\"\nEnvironment=\"TOGA_STORAGE_TYPE=disk\"\nEnvironment=\"TOGA_DISK_ROOT_PATH=%h/.cache/toga\"\nRestart=always\nRestartSec=5\n\n[Install]\nWantedBy=default.target\n```\n\n```bash\n# Reload, enable, start\nsystemctl --user daemon-reload\nsystemctl --user enable toga\nsystemctl --user start toga\n\n# Enable lingering (keeps service running after logout)\nloginctl enable-linger $USER\n\n# Check status\nsystemctl --user status toga\njournalctl --user -u toga -f\n```\n\n### macOS (launchd)\n\nCreate `~/Library/LaunchAgents/com.taigrr.toga.plist`:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003cdict\u003e\n    \u003ckey\u003eLabel\u003c/key\u003e\n    \u003cstring\u003ecom.taigrr.toga\u003c/string\u003e\n    \u003ckey\u003eProgramArguments\u003c/key\u003e\n    \u003carray\u003e\n        \u003cstring\u003e/path/to/toga\u003c/string\u003e\n    \u003c/array\u003e\n    \u003ckey\u003eEnvironmentVariables\u003c/key\u003e\n    \u003cdict\u003e\n        \u003ckey\u003eTOGA_PORT\u003c/key\u003e\n        \u003cstring\u003e:6060\u003c/string\u003e\n        \u003ckey\u003eTOGA_STORAGE_TYPE\u003c/key\u003e\n        \u003cstring\u003edisk\u003c/string\u003e\n        \u003ckey\u003eTOGA_DISK_ROOT_PATH\u003c/key\u003e\n        \u003cstring\u003e/path/to/storage\u003c/string\u003e\n    \u003c/dict\u003e\n    \u003ckey\u003eRunAtLoad\u003c/key\u003e\n    \u003ctrue/\u003e\n    \u003ckey\u003eKeepAlive\u003c/key\u003e\n    \u003ctrue/\u003e\n    \u003ckey\u003eStandardOutPath\u003c/key\u003e\n    \u003cstring\u003e/tmp/toga.log\u003c/string\u003e\n    \u003ckey\u003eStandardErrorPath\u003c/key\u003e\n    \u003cstring\u003e/tmp/toga.err\u003c/string\u003e\n\u003c/dict\u003e\n\u003c/plist\u003e\n```\n\n```bash\n# Load and start\nlaunchctl load ~/Library/LaunchAgents/com.taigrr.toga.plist\n\n# Unload\nlaunchctl unload ~/Library/LaunchAgents/com.taigrr.toga.plist\n\n# Check status\nlaunchctl list | grep toga\n```\n\n## Migrating from Athens\n\nToga reads Athens storage layouts directly — no data migration required. See the full **[Migration Guide](docs/MIGRATION_GUIDE.md)** for step-by-step instructions.\n\nThe short version:\n\n1. Keep your existing storage bucket\n2. Rename `ATHENS_*` env vars to `TOGA_*` equivalents\n3. Swap the container image\n\n## License\n\n[0BSD](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaigrr%2Ftoga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaigrr%2Ftoga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaigrr%2Ftoga/lists"}