[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114683":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":14,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":34,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":15,"starSnapshotCount":15,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},114683,"vantage","levi-xy\u002Fvantage","levi-xy","Self-hosted, security-first dashboard for homelabs: live network maps, hardware-shaped cards, Telegram alerts.","https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Fblob\u002Fmain\u002FREADME.md",null,"Python",68,6,1,0,5,8,4,47.84,"MIT License",false,"main",[24,25,26,27,28,29,30,31,32,33],"dashboard","fastapi","homelab","monitoring","network-map","pfsense","prometheus","proxmox","react","self-hosted","2026-11-19 00:35:05","2026-11-23 19:55:20","# Vantage\n\n**A self-hosted, security-first dashboard for homelabs and small infrastructure.**\n\n[![CI](https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Flevi-xy\u002Fvantage?include_prereleases&sort=semver)](https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Freleases)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue)](LICENSE)\n\nVantage puts your firewall, hypervisor, NAS, switches, tunnels and services on one live dashboard, with cards shaped like the hardware instead of generic graphs. You add devices from the web UI: no config files, and as many of each type as you need. It only ever reads from your devices, and it alerts you on Telegram when something goes wrong.\n\n![A Vantage network map: firewall, switch with live ports, NAS, Proxmox hosts with their guests, VLANs and a legend](docs\u002Fimages\u002Fmap.png)\n\n\u003Csub>Screenshots use demo names and addresses.\u003C\u002Fsub>\n\n## Features\n\n- **Add devices from the UI.** Pick a type, fill in the form, test the connection, save. If the test times out, Vantage tells you which firewall rule is missing.\n- **Hardware-shaped cards.** Switch front panels with live port state, pfSense interfaces and gateways, Proxmox nodes and guests, drive health, tunnel traffic, what's playing on Emby.\n- **Dashboards you arrange.** Drag and resize cards, keep several dashboards as tabs, and use it on your phone too. Each device has its own colour, so its cards are easy to spot.\n- **Network maps.** Draw your network yourself: devices with real port panels, cables with speed and VLANs, Proxmox hosts with their guests. Status and traffic on the map are live.\n- **History and alerts.** Prometheus stores the history. You manage alert rules in the UI, and alerts go to Telegram. A missing value never counts as \"recovered\": the alert shows **No data** until the device answers again.\n- **Watches itself.** Vantage alerts you when Prometheus is down, metrics stop arriving or alert checks stall, and `\u002Fhealthz` lets an outside monitor watch Vantage.\n- **Secure by default.** It never changes anything on a device. Credentials are encrypted and never sent back to the browser. Every outbound connection is checked, the dashboard is served over HTTPS, there are admin and viewer roles, and every change is in the audit log.\n\n## Screenshots\n\n**Hardware-shaped cards.** The switch's front panel with live ports, the firewall, throughput, the NAS and its drives, checks and tunnels on one dashboard.\n\n![The Vantage dashboard: pfSense, a MikroTik switch front panel, throughput, a NAS, drive health and checks](docs\u002Fimages\u002Fdashboard.png)\n\n**Live state on the map.** When the switch stops answering, its box and cables turn red.\n\n![The network map with the switch down: the switch box and its cables shown in red](docs\u002Fimages\u002Fmap-down.png)\n\n**Maps are drawn in the UI.** Place devices, frames, text and tables, connect ports with cables, and set speed, VLANs and colour in the side panel. No config files.\n\n![The map editor: a toolbar of elements on the left, the drawing in the middle, and a cable's settings in the side panel](docs\u002Fimages\u002Fmap-editor.png)\n\n## Quick start\n\nYou need Docker Engine with Compose v2 (2.17 or newer). Images are published for amd64 and arm64. Two ways to install, both from the [latest release](https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Freleases\u002Flatest):\n\n### With the setup script\n\nNeeds `openssl` too.\n\n```bash\ncurl -fLO https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Freleases\u002Flatest\u002Fdownload\u002Fvantage-deploy.tar.gz\ntar -xzf vantage-deploy.tar.gz && cd vantage-deploy\n.\u002Fsetup.sh\n```\n\n`setup.sh` creates the master key, the Prometheus token, a self-signed HTTPS certificate and `.env` (it never replaces ones that already exist), starts the stack and prints the address: `https:\u002F\u002F\u003Cserver-address>:8443`, reachable from any machine on your LAN, plus a one-time setup code. Open it, create the admin account with that code, then add your first device.\n\n**Back up `secrets\u002Fmaster.key` somewhere off the server.** Without it, stored device credentials can't be decrypted, and it isn't part of Vantage's own backups.\n\n### Portainer \u002F Dockge\n\nOne compose file that needs no other files on the host. It is also on every release: `curl -fLO https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Freleases\u002Flatest\u002Fdownload\u002Fcompose.yml`.\n\n1. **Deploy** the compose file below as a new stack (Portainer: Stacks → Add stack → Web editor; Dockge: Compose), or save it as `compose.yml` and run `docker compose up -d`.\n2. **Get the setup code:** `docker compose exec backend python -m app.cli setup-code`, or in Portainer and Dockge run `python -m app.cli setup-code` in the backend container's console.\n3. **Open** `https:\u002F\u002F\u003Cserver-address>:8443`, accept the certificate warning and create the admin account with the setup code.\n4. **Back up the master key** somewhere off the server: `docker compose cp backend:\u002Frun\u002Fvantage\u002Fkey\u002Fmaster_key .\u002Fvantage-master.key` (for a Portainer stack: `docker cp \u003Cstack>-backend-1:\u002Frun\u002Fvantage\u002Fkey\u002Fmaster_key .\u002Fvantage-master.key`). Without it, stored device credentials can't be decrypted.\n\n\u003Cdetails>\n\u003Csummary>Show compose file\u003C\u002Fsummary>\n\n```yaml\n# Vantage for Portainer, Dockge or `docker compose up -d`: needs no files on the host.\n# On first start, `init` creates the master key, the Prometheus token, a self-signed\n# HTTPS certificate and prometheus.yml in volumes; it never replaces existing ones.\n# Then open https:\u002F\u002F\u003Cserver-address>:8443. Setup code, key backup and upgrades:\n# https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Fblob\u002Fmain\u002Fdocs\u002FOPERATIONS.md#standalone-install\n\nx-hardening: &hardening\n  read_only: true\n  security_opt: [\"no-new-privileges:true\"]\n  cap_drop: [ALL]\n  restart: unless-stopped\n\nservices:\n  init:\n    \u003C\u003C: *hardening\n    image: ghcr.io\u002Flevi-xy\u002Fvantage-backend:0.1.1\n    command: [\"python\", \"-m\", \"app.cli\", \"standalone-init\"]\n    # Root with only the two capabilities needed to give each file its owner and mode.\n    user: \"0:0\"\n    cap_add: [CHOWN, FOWNER]\n    network_mode: none\n    restart: \"no\"\n    environment:\n      # Extra names\u002Faddresses for the certificate, comma-separated (e.g. 192.0.2.10).\n      VANTAGE_TLS_NAMES: ${VANTAGE_TLS_NAMES:-}\n      VANTAGE_FORCE_NEW_KEY: ${VANTAGE_FORCE_NEW_KEY:-false}\n      VANTAGE_DATABASE_URL: ${VANTAGE_DATABASE_URL:-sqlite:\u002F\u002F\u002F\u002Fdata\u002Fvantage.db}\n    volumes:\n      - master-key:\u002Fvantage-init\u002Fkey\n      - prometheus-token:\u002Fvantage-init\u002Ftoken\n      - tls:\u002Fvantage-init\u002Ftls\n      - prometheus-config:\u002Fvantage-init\u002Fprometheus\n      - backend-data:\u002Fdata:ro\n    tmpfs: [\u002Ftmp]\n\n  backend:\n    \u003C\u003C: *hardening\n    image: ghcr.io\u002Flevi-xy\u002Fvantage-backend:0.1.1\n    depends_on:\n      init:\n        condition: service_completed_successfully\n    stop_grace_period: 20s\n    environment:\n      # The release these images are, shown in the UI. Change it with the image tags.\n      VANTAGE_RELEASE: \"0.1.1\"\n      VANTAGE_DATABASE_URL: ${VANTAGE_DATABASE_URL:-sqlite:\u002F\u002F\u002F\u002Fdata\u002Fvantage.db}\n      VANTAGE_MASTER_KEY_FILE: \u002Frun\u002Fvantage\u002Fkey\u002Fmaster_key\n      VANTAGE_PROMETHEUS_TOKEN_FILE: \u002Frun\u002Fsecrets\u002Fprometheus_token\n      VANTAGE_COOKIE_SECURE: ${VANTAGE_COOKIE_SECURE:-true}\n      VANTAGE_SESSION_MAX_HOURS: ${VANTAGE_SESSION_MAX_HOURS:-12}\n      VANTAGE_SESSION_IDLE_MINUTES: ${VANTAGE_SESSION_IDLE_MINUTES:-120}\n      VANTAGE_DOWN_AFTER_FAILED_CYCLES: ${VANTAGE_DOWN_AFTER_FAILED_CYCLES:-3}\n      VANTAGE_LOG_LEVEL: ${VANTAGE_LOG_LEVEL:-INFO}\n      VANTAGE_PROMETHEUS_RETENTION: ${VANTAGE_PROMETHEUS_RETENTION:-30d}\n      # Only the bundled nginx (frontend, fixed address below) may name the client.\n      VANTAGE_TRUSTED_PROXIES: ${VANTAGE_TRUSTED_PROXIES:-192.168.255.242\u002F32}\n      VANTAGE_PUBLIC_HOSTS: ${VANTAGE_PUBLIC_HOSTS:-}\n    volumes:\n      - backend-data:\u002Fdata\n      - master-key:\u002Frun\u002Fvantage\u002Fkey:ro\n      - prometheus-token:\u002Frun\u002Fsecrets:ro\n    tmpfs: [\u002Ftmp]\n    # ICMP ping without NET_RAW; this container only. 0-65535 so it also works in an\n    # unprivileged LXC; covers the backend's group (10001).\n    sysctls:\n      net.ipv4.ping_group_range: \"0 65535\"\n\n  frontend:\n    \u003C\u003C: *hardening\n    image: ghcr.io\u002Flevi-xy\u002Fvantage-frontend:0.1.1\n    depends_on:\n      init:\n        condition: service_completed_successfully\n      backend:\n        condition: service_started\n    ports:\n      - \"${VANTAGE_BIND_ADDRESS:-0.0.0.0}:${VANTAGE_HTTPS_PORT:-8443}:8443\"\n    environment:\n      VANTAGE_HTTPS: ${VANTAGE_HTTPS:-true}\n      VANTAGE_HSTS: ${VANTAGE_HSTS:-false}\n    volumes:\n      - tls:\u002Frun\u002Fsecrets:ro\n    tmpfs: [\u002Ftmp]\n    networks:\n      default:\n        # Fixed so the backend can trust exactly this container (VANTAGE_TRUSTED_PROXIES).\n        ipv4_address: 192.168.255.242\n\n  prometheus:\n    \u003C\u003C: *hardening\n    image: prom\u002Fprometheus:v3.2.1\n    depends_on:\n      init:\n        condition: service_completed_successfully\n    command:\n      - --config.file=\u002Fetc\u002Fvantage\u002Fprometheus.yml\n      - --storage.tsdb.path=\u002Fprometheus\n      - --storage.tsdb.retention.time=${VANTAGE_PROMETHEUS_RETENTION:-30d}\n      - --storage.tsdb.retention.size=${VANTAGE_PROMETHEUS_RETENTION_SIZE:-10GB}\n    volumes:\n      - prometheus-config:\u002Fetc\u002Fvantage:ro\n      - prometheus-token:\u002Frun\u002Fsecrets:ro\n      - prometheus-data:\u002Fprometheus\n\n# Fixed subnet: the frontend's address is outside ip_range, so no other container can\n# take it. If it clashes with your LAN, change subnet, ip_range, gateway, the frontend's\n# ipv4_address and VANTAGE_TRUSTED_PROXIES together, then take the stack down and up.\nnetworks:\n  default:\n    ipam:\n      config:\n        - subnet: 192.168.255.240\u002F28\n          ip_range: 192.168.255.248\u002F29\n          gateway: 192.168.255.241\n\nvolumes:\n  master-key:\n  prometheus-token:\n  tls:\n  prometheus-config:\n  backend-data:\n  prometheus-data:\n```\n\n\u003C\u002Fdetails>\n\nSettings, upgrades and restoring the key: [Standalone install](docs\u002FOPERATIONS.md#standalone-install).\n\nEverything, the master key included, lives in the stack's volumes: `docker compose down` is safe, but `down -v`, `docker volume prune -a` or deleting the stack with its volumes erases the install, and redeploying under a different stack name starts an empty one ([details](docs\u002FOPERATIONS.md#keep-the-volumes)).\n\nTo install a specific version, take the files from its release instead: `https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Freleases\u002Fdownload\u002Fv\u003Cversion>\u002Fvantage-deploy-\u003Cversion>.tar.gz` (unpacks into `vantage-deploy-\u003Cversion>\u002F`) or `https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Freleases\u002Fdownload\u002Fv\u003Cversion>\u002Fcompose.yml`.\n\n\u003Cdetails>\n\u003Csummary>Verify the download (optional)\u003C\u002Fsummary>\n\nTo check that the files arrived intact, run this in the folder you downloaded them to:\n\n```bash\ncurl -fLO https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Freleases\u002Flatest\u002Fdownload\u002FSHA256SUMS\nsha256sum -c --ignore-missing SHA256SUMS\n```\n\nThe images are signed with [cosign](https:\u002F\u002Fdocs.sigstore.dev\u002Fcosign\u002Fsystem_config\u002Finstallation\u002F) (keyless, tied to the release workflow). Use the version you installed, the image tag in the compose file:\n\n```bash\ncosign verify ghcr.io\u002Flevi-xy\u002Fvantage-backend:\u003Cversion> \\\n  --certificate-identity-regexp '^https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002F\\.github\u002Fworkflows\u002Frelease\\.yml@refs\u002Ftags\u002Fv' \\\n  --certificate-oidc-issuer https:\u002F\u002Ftoken.actions.githubusercontent.com\n```\n\nDo the same for `vantage-frontend`.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Build from source instead\u003C\u002Fsummary>\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage.git\ncd vantage\u002Fdeploy\n.\u002Fsetup.sh\n```\n\u003C\u002Fdetails>\n\nNext steps: [reach it from other machines](docs\u002FOPERATIONS.md#reaching-the-dashboard-from-other-machines), [use your own certificate](docs\u002FOPERATIONS.md#https-certificate), [backups](docs\u002FOPERATIONS.md#backups) and [upgrading](docs\u002FOPERATIONS.md#upgrading).\n\n## Start simple\n\nYou don't need SNMP, API tokens or exporters to begin. Add your devices by IP as **Ping checks** and you already get the live map, dashboard cards, history and Telegram alerts. Upgrade a device to its full integration later for ports, traffic and hardware details. See [First steps](docs\u002FUSER-GUIDE.md#first-steps) in the user guide.\n\n## Supported integrations\n\n| Integration | Collects via | What you see |\n|---|---|---|\n| Linux host | node_exporter | CPU, memory, disks, network for any Linux server or NAS |\n| SMART add-on | smartctl_exporter | Disk health and temperatures |\n| Proxmox VE | API (read-only token) | Nodes, VMs, containers, storage, guest tags |\n| pfSense | Telegraf | Interfaces, gateways, firewall states, resources |\n| SNMP device | SNMP v1, v2c, v3 | Switches, routers, UPSes, printers |\n| MikroTik SwOS | SNMP | CRS\u002FCSS switches running SwOS |\n| cloudflared | Metrics endpoint | Tunnel connections, requests, errors |\n| Cloudflare account | API (read-only token) | Site traffic, cache, threats, tunnel health |\n| Emby | API | Now playing, transcoding, libraries |\n| HTTP \u002F ping check | Probe from Vantage | Anything with a URL or an IP address |\n\nNot listed? The Linux host, SNMP and HTTP\u002Fping integrations cover most equipment, and new types can be added as plugins ([how](docs\u002FINTEGRATIONS.md)). Setup guides for each integration are in [docs\u002Fintegrations](docs\u002Fintegrations).\n\n## How it works\n\n```\n            Browser\n               │  HTTPS\n        ┌──────▼───────┐\n        │  Frontend    │  React, served by nginx\n        └──────┬───────┘\n               │  REST + WebSocket (the only thing the browser talks to)\n        ┌──────▼──────────────────────────────────────────┐\n        │  Backend (FastAPI)                              │\n        │   • Integration plugins                         │\n        │   • Encrypted credential store (SQLite\u002FPostgres)│\n        │   • Pollers for API\u002FSNMP devices → \u002Fmetrics     │\n        │   • Target discovery for Prometheus             │\n        │   • Query proxy, alerts, audit log              │\n        └──────┬───────────────────────────┬──────────────┘\n               │ discovery + \u002Fmetrics      │ API \u002F SNMP polls\n        ┌──────▼───────┐                   ▼\n        │  Prometheus  │──scrape──►  exporters on devices\n        └──────────────┘\n```\n\nWhen you save a device, the backend stores it and Prometheus picks it up through HTTP service discovery within a minute. Devices with an API (Proxmox, Cloudflare, Emby, SNMP) are polled by the backend and their values exposed as metrics, so their history lands in Prometheus too. You never edit `prometheus.yml`. More in [ARCHITECTURE.md](docs\u002FARCHITECTURE.md).\n\n## Security\n\nVantage holds a map of your network and credentials to your devices, so it's built to limit the damage if it's ever compromised:\n\n- **Read-only:** integrations use read-only tokens and roles wherever the device offers them, and Vantage never changes device configuration.\n- **Secrets stay in the backend:** encrypted at rest with a master key kept outside the database, write-only in the UI, never in responses, logs or the audit log.\n- **The browser talks only to the backend**, never to devices or Prometheus.\n- **Outbound connections are checked:** private address ranges by default; loopback, link-local, cloud metadata and the Vantage host's own addresses are always refused; the internet only for the fixed API hosts of cloud integrations.\n- **Accounts:** Argon2 password hashing, server-side sessions, CSRF protection, login lockout, admin and viewer roles, an audit log of every change.\n\nKeep the dashboard off the internet: a monitoring VLAN with access from your admin machines or VPN is the intended setup. The full threat model is in [SECURITY.md](docs\u002FSECURITY.md).\n\n## Documentation\n\n- [User guide](docs\u002FUSER-GUIDE.md): how to add devices, arrange dashboards, draw maps, set up alerts\n- [Running Vantage](docs\u002FOPERATIONS.md): network access, certificates, upgrades, backups, alert timing\n- [Security](docs\u002FSECURITY.md): threat model, controls, recovery procedures\n- [Architecture](docs\u002FARCHITECTURE.md): components and data flow\n- [Integrations](docs\u002FINTEGRATIONS.md): the plugin interface, and [per-integration setup guides](docs\u002Fintegrations)\n- [Releasing](docs\u002FRELEASING.md): how a release is tested and promoted (maintainer)\n- [Changelog](CHANGELOG.md)\n\n## Development\n\nYou need Python 3.12+ and Node 22.12+ (macOS, Linux or Windows).\n\n```bash\npython3.12 scripts\u002Fdev_setup.py   # Windows: py -3.12 scripts\u002Fdev_setup.py\npython scripts\u002Fcheck.py           # every CI check locally (--fast skips the audits)\n```\n\n`dev_setup.py` creates `backend\u002F.venv`, installs the backend and frontend dependencies, and installs the pre-commit hooks if `pre-commit` is on your PATH.\n\n## Roadmap\n\n- **v0.2:** more alert channels, a \"what changed\" timeline across devices, checks of the remaining integrations against real hardware\n- **v0.3:** security visibility: firewall logs, IDS alerts, failed logins, new-device detection\n- **Later:** anomaly detection, opt-in summaries from a local model, OIDC\u002FSSO, multiple sites\n\n## Contributing\n\nPull requests for new integrations and bug fixes are welcome; the core (architecture, security, dependencies) stays with the maintainer. Read [CONTRIBUTING.md](CONTRIBUTING.md) before you start. Bug reports and integration findings from real hardware are welcome as [issues](https:\u002F\u002Fgithub.com\u002Flevi-xy\u002Fvantage\u002Fissues).\n\n## License\n\nMIT License. See [LICENSE](LICENSE) and, for bundled third-party components, [NOTICE](NOTICE). Copyright 2026 levi-xy.\n","Vantage 是一款面向家庭实验室和小型基础设施的自托管、安全优先型监控仪表盘。它提供可视化网络拓扑图、硬件外形卡片（如交换机端口面板、pfSense接口、Proxmox节点与虚拟机）、基于 Prometheus 的指标存储、Telegram 实时告警，以及零配置文件的 Web UI 设备添加流程；所有集成仅执行只读操作，凭证加密存储，支持角色权限与审计日志。适用于 homelab 爱好者、小型 IT 环境管理员对多品牌设备（pfSense、Proxmox、MikroTik、NAS 等）进行统一状态感知与故障响应。",2,"2026-11-24 04:49:23","CREATED_QUERY"]