$ show lollipopkit/flutter_server_box
This is a comprehensive server monitoring and management platform called ServerBox (Flutter Server Box). It consists of a cross-platform Flutter mobile/desktop app, a Rust-based agent (monitor) that collects system metrics and exposes a REST/WebSocket API, and a Svelte web panel. The system supports SSH terminal sessions, SFTP file management, container management, virtual machine management (Proxmox VE and libvirt), BMC/Redfish power and sensor monitoring, firewall management (ufw/firewalld), cron, systemd/OpenRC services, process management, benchmark execution, custom commands, and push notifications. The architecture is heavily dependent on shared Rust crates (`sbm_parser`, `sbm_virt`, `sbm_redfish`, `sbm_ffi`) that are used both by the agent and via FFI by the Flutter app. This is a production-grade, actively maintained project with extensive test coverage across all layers.
The LLM identified 5 files worth highlighting for reuse:
Central parsing library used by both the Rust agent and the Flutter app (via FFI). Implements parsers for CPU, memory, disk, network, temperatures, GPU, SMART, container status, firewall rules, service status, cron, file listings, benchmark outputs, and more. It is a pure parsing crate with no external dependencies beyond std, making it highly reusable for any project that needs to parse Linux/BSD/Windows system command outputs. It also auto-derives capabilities from the command table, allowing easy extension.
Core resource model for virtualization management that abstracts both Proxmox VE and libvirt hypervisors. Provides validation functions (`issue`), change structures, and listing types for VM/container resources (networks, storage, disks, PCI, USB). The pattern of building a unified model over two different backends (API-based PVE and CLI-based libvirt) is reusable for any multi-hypervisor management project.
Redfish client library that handles authentication, session management, and discovery of power/sensors across different BMC vendors (Dell iDRAC, Supermicro X11, OpenBMC, H3C). Implements certificate pinning with a pattern of 'review then enforce' and normalized fingerprint storage. The library is self-contained and can be reused for any Redfish-based hardware management solution.
Implements a single-use ticket system for WebSocket upgrade authorization. Tickets are time-bound, purpose-scoped (terminal, stream, listen, RDP, virt console), and use constant-time secret comparison. This pattern keeps bearer tokens off the WebSocket and provides fine-grained access control. The design is self-contained and could be extracted for any WebSocket-based real-time feature that needs short-lived, revocable access.
Exports a set of reusable Svelte UI components (Badge, Button, Card, IconButton, Input, Modal, Select, Spinner) with consistent theming via CSS variables and labels prop. Used by both the monitor web panel and the website. The components are decoupled from business logic and can be reused in any Svelte project. Includes TypeScript bindings and a unified `theme.css`.