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

year-progress-cli

v1.2.0

Published

A command line tool for displaying year progress.

Readme

Year Progress CLI

A command line tool to display how much of the year has passed as an animated bar, GitHub-style heatmap, live countdown, or plain text/JSON. Inspired by Year Progress. Zero runtime dependencies.

Install

npm install year-progress-cli -g

Usage

year-progress

Tip: add it as a custom command when you open your terminal.

Options

| Flag | Alias | Default | Description | |------|-------|---------|-------------| | --precision | -p | 0 | Decimal places for percentage | | --width | -w | 40 | Bar width in characters | | --interval | -i | 16 | Animation speed in ms | | --output | -o | bar | Output type (see below) | | --color | -c | auto | Color mode (see below) | | --help | -h | | Show help | | --version | -v | | Show version |

Output modes

| -o | Example | |------|---------| | bar | [███████████████░░░░░░░░░░░░░░░░░░░░░░░░░] 37/100% | | percent | 37 | | json | {"percent":37,"date":"2026-05-15"} | | text | 37% through 2026 — day 135 of 365, 230 days remaining | | days | Day 135 of 365 | | months | May (5/12) | | weeks | Week 20 of 52 | | spinner | Animated ⠋ 37%⠿ 37% | | countdown | Live 230d : 02h : 14m : 50s : 673ms ticking in real-time | | heatmap | GitHub-style contribution grid of elapsed days |

Heatmap

    Jan  Feb Mar Apr May  Jun Jul Aug  Sep Oct  Nov Dec
Sun ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Mon ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Tue ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Wed ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Thu ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Fri ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Sat ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

Color modes

| -c | Effect | |------|--------| | auto (default) | Terminal default text color | | never | No color (explicit) | | gradient | Green → yellow → red based on progress | | rainbow | Each character cycles through the rainbow | | red, green, blue, yellow, cyan, magenta, white | Named colors | | #ff6600 | Hex color | | rgb(255,0,0) | RGB triple |

Respects the NO_COLOR environment variable in auto mode.

Piping

year-progress | lolcat          # colorize final bar via lolcat
year-progress -o json | jq .percent
year-progress -o percent | wl-copy

In pipe mode, bar and dots output a single static line (no animation).

Programmatic API

import { yearProgress, yearLoading, main } from 'year-progress-cli';

// Get current year progress as integer
yearProgress();                            // → 37

// With precision
yearProgress(new Date(), 2);               // → 36.94

// Animate a progress bar
yearLoading({ precision: 2, color: 'rainbow' });

// CLI entry point
main();

Author

stojanow.com | twitter: @piotrstojanow | github: @psto

License

Released under the MIT license.