Avatar

Shubham Gavali

Frontend Engineer

Read Resume
thumbnail

crabtop

RustCLI

A Rust CLI that finds the process listening on a TCP port and monitors its CPU and memory in real time with a live terminal dashboard and sparkline charts.

Point crabtop at a port and it resolves the owning process using lsof on macOS and Linux, with ss and netstat fallbacks. Snapshot mode prints the process name, PID, CPU percentage, and memory in megabytes. Watch mode turns the terminal into a live dashboard with colour-coded progress bars, sparkline history, averages, and peak values.

CPU is sampled with proper intervals through the sysinfo crate so the numbers match what Activity Monitor reports. An optional OpenAI integration sends the stats to a model and prints a short insight about what the process is doing.

Live Preview
2026 — Built by Shubham Gavali