$ show Abdenasser/neohtop
NeoHtop is a modern, cross-platform system monitor built with Svelte, Rust, and Tauri. It provides real-time monitoring of system processes, CPU usage, memory usage, network I/O, and disk statistics. The application features a beautiful, customizable UI with dark/light theme support, advanced process search and filtering (including regex support), process pinning, and the ability to kill processes. The architecture cleanly separates the Rust backend (which uses the sysinfo crate to gather system information) from the Svelte frontend (which displays the data and handles user interactions), communicating via Tauri's IPC mechanism.
The LLM identified 2 files worth highlighting for reuse:
Contains reusable utility functions for formatting data (bytes, percentages, uptime), debouncing, and most notably sophisticated process filtering and sorting logic. The filterProcesses function handles complex search scenarios including comma-separated terms, regex patterns, and multiple filter types (CPU, memory, runtime, status). The sortProcesses function implements intelligent disk I/O sorting that prioritizes reads or writes based on which is dominant, demonstrating non-obvious skill in handling process data characteristics.
Generates appropriate icons for processes by analyzing the process name. It intelligently detects company names in 'com.*' patterns and maps them to relevant simple-icons, falling back to generic icons when needed. The component uses theme-aware coloring by extracting the current text color from CSS variables, ensuring icons adapt to light/dark themes automatically. This self-contained component demonstrates clever reuse of the simple-icons package and could be easily extracted for use in any application needing to visualize processes or applications.