ospect
A terminal system report for macOS and Linux. One command shows what's eating your machine and what to quit.
Overview
A CLI published on npm. Run ospect and it prints a full system report: OS and uptime, CPU, memory usage with a progress bar, the top 5 processes by CPU and by memory, a health status, and recommendations.
Why I built it
When a laptop slows down, Activity Monitor or top show a wall of numbers but don't tell you what to do. ospect turns that into one readable report and a short list of what to quit.
Architecture
A single Node.js CLI that collects system, CPU, memory and process data on macOS and Linux, runs health checks against thresholds, and renders the report in the terminal. Installed globally with npm install -g @minitjain/ospect.
Challenges
Reporting real memory usage on macOS: the naive free-memory number counts cached memory as used, so the report looked alarming on healthy machines. Fixed it to report actual usage. Health is classified as healthy (below 80%), warning (80–90%) or critical (above 90%), and each recommendation says how much memory quitting an app would free.
Outcome
Published on npm with 580+ downloads since launch.