{"id":49102311,"url":"https://github.com/lost-coder/panvex","last_synced_at":"2026-04-21T00:01:41.199Z","repository":{"id":348264308,"uuid":"1197171244","full_name":"lost-coder/panvex","owner":"lost-coder","description":"Panel \u0026 agent system for Telemt fleet management","archived":false,"fork":false,"pushed_at":"2026-04-18T16:59:56.000Z","size":31335,"stargazers_count":32,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-18T18:13:01.317Z","etag":null,"topics":["fleet-management","go","panel","react","telemt"],"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/lost-coder.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":".github/CODEOWNERS","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-31T11:36:28.000Z","updated_at":"2026-04-18T17:00:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lost-coder/panvex","commit_stats":null,"previous_names":["lost-coder/panvex"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lost-coder/panvex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lost-coder%2Fpanvex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lost-coder%2Fpanvex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lost-coder%2Fpanvex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lost-coder%2Fpanvex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lost-coder","download_url":"https://codeload.github.com/lost-coder/panvex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lost-coder%2Fpanvex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32071013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["fleet-management","go","panel","react","telemt"],"created_at":"2026-04-21T00:01:27.199Z","updated_at":"2026-04-21T00:01:41.194Z","avatar_url":"https://github.com/lost-coder.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Panvex-Control%20Plane-0ea5e9?style=for-the-badge\u0026logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIGQ9Ik0yMiAxMmgtNGwtMyA5TDkgM2wtMyA5SDIiLz48L3N2Zz4=\u0026logoColor=white\" alt=\"Panvex\" /\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eFleet management control plane for Telemt MTProto proxy nodes\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-quick-install\"\u003eQuick Install\u003c/a\u003e \u0026nbsp;\u0026bull;\u0026nbsp;\n  \u003ca href=\"#-features\"\u003eFeatures\u003c/a\u003e \u0026nbsp;\u0026bull;\u0026nbsp;\n  \u003ca href=\"#%EF%B8%8F-architecture\"\u003eArchitecture\u003c/a\u003e \u0026nbsp;\u0026bull;\u0026nbsp;\n  \u003ca href=\"#-development\"\u003eDevelopment\u003c/a\u003e \u0026nbsp;\u0026bull;\u0026nbsp;\n  \u003ca href=\"#-docker\"\u003eDocker\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Go-1.26-00ADD8?logo=go\u0026logoColor=white\" alt=\"Go\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/React-19-61DAFB?logo=react\u0026logoColor=black\" alt=\"React\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/gRPC-mTLS-4285F4?logo=google\u0026logoColor=white\" alt=\"gRPC\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Linux-only-FCC624?logo=linux\u0026logoColor=black\" alt=\"Linux\" /\u003e\n\u003c/p\u003e\n\n---\n\n## ✨ Features\n\n| | Feature | Description |\n|---|---------|-------------|\n| 📊 | **Fleet Dashboard** | Real-time monitoring with metrics, health indicators, and alerts |\n| 👥 | **Managed Clients** | Centralized client management with secret rotation and quotas |\n| 🤖 | **Agent System** | Lightweight per-node agents with mTLS enrollment and gRPC streaming |\n| 🗄️ | **Dual Storage** | SQLite for dev/lightweight, PostgreSQL for production |\n| 🔄 | **Self-Update** | Panel and agents update themselves from GitHub Releases |\n| 📦 | **Embedded UI** | Single binary ships the React dashboard — no separate web server |\n| 🔐 | **TOTP 2FA** | Optional two-factor authentication for operator accounts |\n| 🛡️ | **RBAC** | Viewer, Operator, and Admin roles with middleware enforcement |\n\n---\n\n## 🚀 Quick Install\n\n### Control Plane\n\n```sh\nsudo bash -c \"$(curl -fsSL https://raw.githubusercontent.com/lost-coder/panvex/main/deploy/install.sh)\"\n```\n\n\u003e Interactive wizard: ports, storage, TLS, firewall, admin account — all configured step by step.\n\n### Agent\n\n```sh\nsudo bash -c \"$(curl -fsSL https://raw.githubusercontent.com/lost-coder/panvex/main/deploy/install-agent.sh)\"\n```\n\n\u003e Requires a panel URL and enrollment token (create one in **Settings → Enrollment Tokens**).\n\n\u003cdetails\u003e\n\u003csummary\u003e📋 Non-interactive mode (CI / automation)\u003c/summary\u003e\n\n```sh\n# Control Plane\nPANVEX_ADMIN_PASS='\u003cpassword\u003e' \\\nPANVEX_HTTP_PORT=8080 \\\nPANVEX_GRPC_PORT=8443 \\\n  sudo -E bash install.sh\n\n# Agent\nPANVEX_PANEL_URL='https://panel.example.com' \\\nPANVEX_ENROLLMENT_TOKEN='\u003ctoken\u003e' \\\n  sudo -E bash install-agent.sh\n```\n\nRun `bash install.sh --help` for all environment variables.\n\n\u003c/details\u003e\n\n---\n\n## 🏗️ Architecture\n\n```\n┌─────────────────────────────────────────────────────┐\n│                    🌐 Browser                        │\n│           React · TanStack Router/Query              │\n├─────────────────────────────────────────────────────┤\n│              📡 Control Plane (:8080)                │\n│        HTTP API · WebSocket · Embedded UI            │\n├─────────────────────────────────────────────────────┤\n│              🔒 gRPC Gateway (:8443)                 │\n│         mTLS · Bidirectional Stream · Jobs           │\n├─────────────────────────────────────────────────────┤\n│              🤖 Agent (per Telemt node)              │\n│       Heartbeats · Snapshots · Job Execution         │\n└─────────────────────────────────────────────────────┘\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e📁 Repository Layout\u003c/summary\u003e\n\n| Directory | Description |\n|-----------|-------------|\n| `cmd/control-plane` | Control plane server (HTTP + gRPC + embedded UI) |\n| `cmd/agent` | Agent binary with bootstrap and enrollment |\n| `internal/controlplane` | Auth, jobs, presence, storage, server logic |\n| `internal/agent` | Telemt client, runtime, self-updater |\n| `internal/gatewayrpc` | Generated gRPC stubs (protobuf) |\n| `internal/security` | Enrollment, crypto, mTLS CA |\n| `web` | React dashboard (Vite + TailwindCSS 4 + TanStack) |\n| `db/migrations` | PostgreSQL and SQLite schema migrations |\n| `proto` | Protobuf gateway contract |\n| `deploy` | Install scripts, Docker Compose, nginx config |\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e🔧 Tech Stack\u003c/summary\u003e\n\n| Layer | Technology |\n|-------|------------|\n| Backend | Go 1.26, chi/v5, pgx/v5, modernc.org/sqlite, gRPC |\n| Frontend | React 19, Vite 7, TailwindCSS 4, TanStack Router + Query |\n| UI Kit | [@lost-coder/panvex-ui](https://github.com/lost-coder/panvex-ui) — Radix UI + CVA |\n| Database | PostgreSQL (primary) · SQLite (lightweight) |\n| Deploy | Multi-stage Docker · systemd · nginx |\n\n\u003c/details\u003e\n\n---\n\n## 💻 Development\n\n### Prerequisites\n\n- **Go** 1.26+ \u0026nbsp;·\u0026nbsp; **Node.js** 22+ \u0026nbsp;·\u0026nbsp; [sqlc](https://sqlc.dev) \u0026nbsp;·\u0026nbsp; [protoc](https://grpc.io/docs/protoc-installation/) + Go plugins\n\n### Backend\n\n```sh\ngo build ./...                    # Build all\ngo test ./...                     # Run tests\ngo test -race ./...               # Race detector\ngolangci-lint run ./...           # Lint\nsqlc generate                     # Regenerate DB code\n```\n\n### Frontend\n\n```sh\ncd web\nnpm install                       # Install deps\nnpm run dev                       # Dev server (proxies API to :8080)\nnpm run build                     # Production build\nnpm run lint                      # ESLint\n```\n\n### 🏃 Local Development Flow\n\n**1.** Bootstrap admin:\n\n```sh\ngo run ./cmd/control-plane bootstrap-admin \\\n  -username admin \\\n  -password '\u003cstrong-password\u003e'\n```\n\n**2.** Start control plane:\n\n```sh\ngo run ./cmd/control-plane -http-addr :8080 -grpc-addr :8443\n```\n\n**3.** Start frontend dev server:\n\n```sh\ncd web \u0026\u0026 npm run dev\n```\n\n\u003e Dashboard at `http://localhost:5173`, API proxied to `:8080`\n\n\u003cdetails\u003e\n\u003csummary\u003e📦 Single binary build\u003c/summary\u003e\n\n```sh\ncd web \u0026\u0026 npm run build:embed\ncd .. \u0026\u0026 go build -tags embeddedui -o panvex-control-plane ./cmd/control-plane\n```\n\n\u003c/details\u003e\n\n---\n\n## 🐳 Docker\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eSQLite\u003c/strong\u003e (lightweight)\u003c/summary\u003e\n\n```sh\ndocker compose -f deploy/docker-compose.sqlite.yml up --build -d\n\ndocker compose -f deploy/docker-compose.sqlite.yml exec backend \\\n  ./panvex-control-plane bootstrap-admin \\\n  -storage-driver sqlite \\\n  -storage-dsn /var/lib/panvex/panvex.db \\\n  -username admin \\\n  -password '\u003cstrong-password\u003e'\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003ePostgreSQL\u003c/strong\u003e (production)\u003c/summary\u003e\n\n```sh\ndocker compose -f deploy/docker-compose.postgres.yml up --build -d\n\ndocker compose -f deploy/docker-compose.postgres.yml exec backend \\\n  ./panvex-control-plane bootstrap-admin \\\n  -storage-driver postgres \\\n  -storage-dsn 'postgres://panvex:panvex@postgres:5432/panvex?sslmode=disable' \\\n  -username admin \\\n  -password '\u003cstrong-password\u003e'\n```\n\n\u003c/details\u003e\n\n\u003e Dashboard: `http://localhost:8080` \u0026nbsp;·\u0026nbsp; gRPC: `localhost:8443`\n\n---\n\n## 🤖 Agent Deployment\n\n1. Create an enrollment token: **Settings → Enrollment Tokens**\n2. On each Telemt server:\n\n```sh\nsudo bash -c \"$(curl -fsSL https://raw.githubusercontent.com/lost-coder/panvex/main/deploy/install-agent.sh)\"\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eManual bootstrap (without installer)\u003c/summary\u003e\n\n```sh\n./panvex-agent bootstrap \\\n  -panel-url https://panel.example.com \\\n  -enrollment-token '\u003ctoken\u003e' \\\n  -state-file /var/lib/panvex-agent/agent-state.json\n```\n\n\u003c/details\u003e\n\n---\n\n## 👥 Managed Clients\n\nCreate and manage Telemt clients centrally from the dashboard:\n\n- 🔑 Generate secrets and `user_ad_tag`\n- 📏 Set limits: connections, unique IPs, quota, expiration\n- 🌐 Assign by fleet group or individual nodes\n- 🔄 Rotate secrets without recreating the client\n- 📈 Live deployment status, connection links, and usage per node\n\n---\n\n## 🔐 Security\n\n**Two-Factor Authentication** — TOTP 2FA is optional. Enable in Profile page.\n\nEmergency TOTP reset via CLI:\n\n```sh\n./panvex-control-plane reset-user-totp \\\n  -storage-driver sqlite \\\n  -storage-dsn /var/lib/panvex/panvex.db \\\n  -username admin\n```\n\n---\n\n## 🔄 Updates\n\nThe control plane checks GitHub Releases for new versions automatically.\n\n| Method | Command |\n|--------|---------|\n| **Dashboard** | Settings → Updates → *Update Panel* / *Update Agent* |\n| **CLI** | `./panvex-control-plane self-update` |\n| **Auto-update** | Enable in Settings → Updates (disabled by default) |\n\nAgents can be updated individually or in bulk. The panel sends an update job via gRPC — the agent downloads and installs the new binary automatically.\n\n---\n\n## 📚 Documentation\n\n| Topic | Link |\n|-------|------|\n| Docs index | [`docs/README.md`](docs/README.md) |\n| HTTP API (OpenAPI 3.0) | [`docs/api/openapi.yaml`](docs/api/openapi.yaml) |\n| gRPC gateway reference | [`docs/api/gateway.proto.md`](docs/api/gateway.proto.md) |\n| Architecture Decision Records | [`docs/architecture/adr/`](docs/architecture/adr/) |\n| Operational runbook | [`docs/ops/runbook.md`](docs/ops/runbook.md) |\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eBuilt with ❤️ for Telemt fleet operators\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flost-coder%2Fpanvex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flost-coder%2Fpanvex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flost-coder%2Fpanvex/lists"}