computer-stats
v0.7.2
Published
One-command big-number terminal UI for lifetime computer stats on macOS and Linux.
Maintainers
Readme
computer-stats
One command to collect durable lifetime counters from your machine and walk through big-number screens in the terminal.
Run without publishing
npx /absolute/path/to/packages/computer-statsFrom inside this repo:
node packages/computer-stats/bin/computer-stats.mjsIntended published usage
npx computer-statsThat opens an interactive TUI. Press Space for next, ← for previous, and q to quit.
The last screen is a short shareable summary, not another raw-stat dump.
Open the browser dashboard only if you ask for it:
npx computer-stats --browserWhat it shows
- Lifetime data written and read
- One real-world anchor line under each big stat, scaled from sub-100 GB up through PB-class archives
- Power-on hours and power cycles
- Unsafe shutdowns
- Battery cycles, wear, and learned capacity
- Derived ratios like drive fills written and writes per powered day
- A compact scorecard table of the strongest numbers instead of a long prose summary
- Archive-scale comparisons using Wikimedia, Common Crawl, Netflix, Gmail, Apple battery guidance, and Library of Congress references
- Four-screen flow:
Overview,Wear,Durability, thenScorecard
Current support
macOS: best support, including battery pack telemetry and NVMe SMART viasmartctlLinux: best-effort support for SMART and battery sysfsWindows: not implemented yet; the terminal output explains that directly
macOS requirement for storage lifetime counters
To get SSD lifetime counters on macOS, install smartctl:
brew install smartmontoolsWithout it, the terminal report still works, but storage lifetime counters will be missing.
CLI flags
computer-stats --json
computer-stats --plain
computer-stats --output stats.json
computer-stats --html report.html
computer-stats --browser
computer-stats --browser --port 4173Publish
cd packages/computer-stats
npm publish --access publicIf you want a different npm name or license, change package.json before publishing.
