# Technology Stack NexusGuard uses a modern, production-grade technology stack. Each component is built with tools optimized for its domain. ## Backend — Server Core | Technology | Version | Purpose | |------------|---------|---------| | Go | 1.25+ | Primary language | | Gin | 1.12 | HTTP framework | | GORM | 1.31 | ORM (PostgreSQL) | | grpc-go | latest | gRPC signaling | | cmux | latest | Port multiplexing (HTTP + gRPC on :8080) | | go-redis | 9.x | Heartbeat TTL cache | | google/nftables | 0.3 | Linux firewall management | | wgctrl | latest | WireGuard interface control | | JWT v5 | latest | Authentication tokens | ### Why Go? - **Static binaries** — No runtime dependencies, easy deployment - **Concurrency** — Goroutines for handling 10000+ concurrent agent connections - **WireGuard ecosystem** — Native Go WireGuard libraries (wgctrl, wireguard-go) - **Performance** — Low memory footprint, fast cold start ### Why cmux? Single port for HTTP and gRPC eliminates: - Firewall rules for multiple ports - Load balancer complexity - Docker port mapping overhead ## Frontend — Dashboard UI | Technology | Version | Purpose | |------------|---------|---------| | Vue | 3.5 | UI framework (Composition API) | | Vite | 8 | Build tool + dev server | | TypeScript | 6.0 | Type safety | | TailwindCSS | 4.3 | Styling (glassmorphism design system) | | Pinia | 2.3 | State management | | Axios | 1.16 | HTTP client | | HeadlessUI | 1.7 | Accessible UI primitives | | Iconify | 5.0 | Icon system | | VueUse | 14.3 | Composition utilities | ### Why Vue 3? - **Composition API** — Better TypeScript support, reusable logic via composables - **`