Resource Monitor
Resource Monitor displays real-time CPU, RAM, and NVIDIA GPU metrics in a desktop application. The Rust backend collects hardware data using the **sysinfo** and **nvml-wrapper** crates, exposes it through Tauri command handlers, and feeds a Next.js frontend that graphs the history with a custom SVG component. The compiled binary is roughly 5MB, compared to around 80MB for a comparable Electron application.
Unified Data Collection Engine
The ResourceMonitor struct owns a sysinfo::System instance for CPU and memory data and an nvml-wrapper::Nvml instance for GPU telemetry. Calling collect_all_data refreshes all subsystems in one pass and returns a single ResourceData snapshot with a millisecond timestamp, so the frontend can plot each reading at its exact collection time.
Cross-Process Command Bridge
Tauri exposes backend functionality through tauri::command functions. The ResourceMonitor is stored in Tauri's managed state behind a Mutex, which guarantees exclusive access when the frontend calls get_all_resource_data or get_gpu_data. The frontend can request only the data stream it needs, avoiding unnecessary work on polling intervals that do not require a full refresh.
High-Performance SVG Graphing
The LineGraph component generates SVG markup directly from raw usage percentages, without any third-party charting library. It maps each data point to an (x, y) coordinate within a fixed 450x200 viewport, then renders a polyline element. Grid lines at 0%, 25%, 50%, 75%, and 100% are drawn with dashed strokes. Because the SVG is computed inline, the component adds no bundle weight and renders without layout thrashing.
Binary Size and Performance
Choosing Tauri over Electron reduced the final installer from roughly 80MB to roughly 5MB. The Mutex-based state model keeps data collection on a single thread, avoiding race conditions during concurrent frontend polls. The polling interval is configurable per metric, so GPU data (which is slower to query via NVML) can be refreshed less frequently than CPU usage.
Try It Out
DownloadIf you want to try this app out for yourself, click on the download button and install the app using the MSI or EXE installer from GitHub.