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

streak-cli

v1.0.4

Published

πŸ”₯ Track your terminal work streaks, commits, and stats

Readme

πŸ”₯ streak-cli

Track your terminal work streaks, commits, and stats. Stay motivated with daily streak tracking right in your terminal.

  πŸ”₯ 5 day streak! πŸ”₯

  ─────────────────────────────
  πŸ”₯ Current streak:    5 days
  πŸ† Longest streak:   23 days
  πŸ“… Total active days: 142
  ─────────────────────────────
  πŸ’» Commits today:     12
  πŸ“ Total commits:     847
  ⌨️  Commands today:    87
  ─────────────────────────────

  Mon Tue Wed Thu Fri Sat Sun
  βœ…  βœ…  βœ…  βœ…  βœ…  πŸ”²  πŸ”²

Install

npm install -g streak-cli
streak setup

streak setup automatically:

  • Adds a shell hook to ~/.zshrc for auto-tracking
  • Adds a πŸ”₯ streak counter to your prompt (if you use Powerlevel10k)

Then restart your terminal or run source ~/.zshrc.

Usage

streak            # Show your current streak & stats
streak stats      # Same as above (detailed view)
streak log        # Log activity (done automatically by shell hook)
streak setup      # Install shell hook + prompt segment
streak reset      # Clear all data
streak help       # Show help

Prompt Integration

If you use Powerlevel10k, streak setup adds a πŸ”₯ segment to your prompt automatically:

~/projects/myapp  on main  πŸ”₯5

How It Works

  • Every command you run gets logged via a precmd shell hook
  • Git commits in the current repo are counted
  • A "day" counts as active if you ran any commands or made commits
  • Streaks are consecutive active days

Data

All data is stored locally in ~/.streak/:

  • activity.json β€” daily activity log
  • current_streak β€” cached streak count (used by prompt)

No data is sent anywhere. Everything stays on your machine.

Uninstall

npm uninstall -g streak-cli

Remove the hook from ~/.zshrc and the segment from ~/.p10k.zsh (search for "Streak CLI").

License

ISC