{"id":47608881,"url":"https://github.com/stuttgart-things/clusterscope","last_synced_at":"2026-04-01T19:50:03.898Z","repository":{"id":345362937,"uuid":"1185611789","full_name":"stuttgart-things/clusterscope","owner":"stuttgart-things","description":"parses GitOps cluster directories and generates interactive, self-contained HTML visualizations of the resource dependency graph ","archived":false,"fork":false,"pushed_at":"2026-03-18T19:24:59.000Z","size":21,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-19T08:42:30.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuttgart-things.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":"2026-03-18T19:07:48.000Z","updated_at":"2026-03-18T19:26:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/stuttgart-things/clusterscope","commit_stats":null,"previous_names":["stuttgart-things/clusterscope"],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/stuttgart-things/clusterscope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fclusterscope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fclusterscope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fclusterscope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fclusterscope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuttgart-things","download_url":"https://codeload.github.com/stuttgart-things/clusterscope/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fclusterscope/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"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-04-01T19:49:59.665Z","updated_at":"2026-04-01T19:50:03.877Z","avatar_url":"https://github.com/stuttgart-things.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clusterscope\n\n**clusterscope** is a CLI tool and HTTP dashboard that parses GitOps cluster directories and generates interactive, self-contained HTML visualizations of the resource dependency graph — no running cluster required.\n\nPoint it at a Flux or ArgoCD cluster folder and get a standalone HTML file you can open in any browser, commit to Git, or attach to a pull request.\n\n## Features\n\n- Parses **FluxCD** `Kustomization`, `GitRepository`, and `FluxInstance` resources\n- Parses **ArgoCD** `Application`, `ApplicationSet`, and `AppProject` resources\n- Interactive **D3.js** dependency graph with layered DAG layout\n- Layer toggles, live search, hover highlighting, and click-to-detail panel\n- Cards view alongside the graph for quick scanning\n- SOPS-encrypted substitution values are automatically stripped from the output\n- **PR preview** — visual diff of what a pull request changes in the cluster graph\n- **Live mode** — real-time reconciliation status from a running cluster\n- HTTP dashboard with HTMX-driven multi-cluster view\n- PDF export via headless Chromium\n- Prometheus metrics endpoint\n\n## Installation\n\n```bash\ngit clone https://github.com/stuttgart-things/clusterscope.git\ncd clusterscope\ngo build -o clusterscope ./cmd/clusterscope\n```\n\n## Quick Start\n\n### Generate an HTML profile\n\n```bash\nclusterscope -dir ./clusters/labul/vsphere/movie-scripts -out profile.html\nopen profile.html\n```\n\n### Run the dashboard\n\n```bash\nclusterscope -serve :8080 -root ./clusters/labul/vsphere\n# Open http://localhost:8080\n```\n\n### PR preview (CLI)\n\nCompare two cluster directories and output a markdown diff:\n\n```bash\nclusterscope -diff \\\n  -base-dir ./clusters/labul/vsphere/movie-scripts \\\n  -head-dir ./pr-branch/clusters/labul/vsphere/movie-scripts\n```\n\n### PR preview (dashboard)\n\n```bash\nclusterscope -serve :8080 -root ./clusters/labul/vsphere\n# Open http://localhost:8080 → use the \"PR Preview\" form in the sidebar\n# Enter repo URL, PR number, and cluster name\n```\n\nSee [PR Preview](docs/preview.md) for full documentation.\n\n## Flags\n\n| Flag | Default | Description |\n|---|---|---|\n| `-dir` | `.` | Path to the cluster directory to parse |\n| `-out` | stdout | Output file path |\n| `-tech` | `flux` | Technology to parse: `flux` \\| `argocd` |\n| `-root` | `.` | Root directory containing cluster subdirs |\n| `-serve` | — | Start HTTP dashboard server (e.g. `:8080`) |\n| `-live` | `false` | Enrich graph with real-time reconciliation status |\n| `-kubeconfig` | — | Path to kubeconfig file |\n| `-refresh` | `30` | Live status refresh interval in seconds |\n| `-diff` | `false` | Compare two cluster directories and output a diff |\n| `-base-dir` | — | Base cluster directory (used with `-diff`) |\n| `-head-dir` | — | Head cluster directory (used with `-diff`) |\n| `-format` | `markdown` | Diff output format: `markdown` \\| `json` \\| `html` |\n| `-preview-root` | — | Directory containing PR head ref cluster files (used with `-serve`) |\n\n## Documentation\n\n- [CLI Reference](docs/usage.md)\n- [Serve Mode](docs/serve.md)\n- [PR Preview](docs/preview.md)\n- [Live Mode](docs/live.md)\n- [PDF Export](docs/pdf.md)\n- [KCL Deployment](docs/kcl.md)\n- [Architecture](docs/architecture.md)\n- [Configuration](docs/configuration.md)\n\n## Project structure\n\n```\nclusterscope/\n├── cmd/clusterscope/main.go        # CLI entrypoint\n├── internal/\n│   ├── diff/                        # Graph diff engine + markdown output\n│   ├── graph/graph.go               # Shared data model (Node, Edge, ClusterProfile)\n│   ├── live/live.go                 # Kubernetes real-time enrichment\n│   ├── preview/clone.go             # On-demand git clone for PR preview\n│   ├── render/                      # HTML templates (cluster, diff, shell, index)\n│   ├── scan/scan.go                 # Tech detection + cluster discovery\n│   └── serve/serve.go               # HTTP server + file watcher\n├── pkg/\n│   ├── flux/parser.go               # FluxCD YAML parser\n│   └── argocd/parser.go             # ArgoCD parser\n├── kcl/                             # KCL Kubernetes deployment manifests\n└── docs/                            # Documentation\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fclusterscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuttgart-things%2Fclusterscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fclusterscope/lists"}