npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

computer-stats

v0.7.2

Published

One-command big-number terminal UI for lifetime computer stats on macOS and Linux.

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-stats

From inside this repo:

node packages/computer-stats/bin/computer-stats.mjs

Intended published usage

npx computer-stats

That 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 --browser

What 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, then Scorecard

Current support

  • macOS: best support, including battery pack telemetry and NVMe SMART via smartctl
  • Linux: best-effort support for SMART and battery sysfs
  • Windows: 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 smartmontools

Without 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 4173

Publish

cd packages/computer-stats
npm publish --access public

If you want a different npm name or license, change package.json before publishing.