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

gh-commit-history

v0.4.2

Published

Visualize your GitHub commit history across multiple years as an interactive chart, powered by gh CLI

Readme

gh-commit-history

npm

Visualize your GitHub commit history across all your years on one screen as an interactive chart. Powered by the GitHub CLI - no API tokens needed.

GitHub's contribution calendar only shows one year at a time, daily-only, with no per-repo breakdown. This shows your whole history with switchable daily / weekly / monthly granularity, a flexible range selector, and a per-repository breakdown.

npx gh-commit-history ykdojo

Overview - total commits per month and a per-repository stacked breakdown

Overall breakdown by repository

Defaults to your authenticated user if no username is given.

Prerequisites

Usage

npx gh-commit-history [username] [options]

Options

| Flag | Description | |------|-------------| | --years <n> | Limit to the past n years (default: all history since account creation) | | --range <period> | Initial view when the page opens: 1w, 1m, 3m, 6m, 1y, 2y … or all (default). Full history is still loaded - the range selector keeps every option. | | -g, --granularity <g> | daily, weekly (default), or monthly | | --style <name> | blue (default), green, or purple | | -o, --output <path> | Output file path (default: ~/.gh-commit-history/<user>.html) | | --exclude-private | Exclude private repositories (private are included by default) | | -r, --repo <name> | Single-repo view: just this repo's commits, timeline scoped to its lifetime (name assumes your account, or pass owner/name) | | --no-open | Don't auto-open the browser | | --no-cache | Skip cache and fetch fresh data | | -h, --help | Show help |

Examples

# Your whole history, weekly
npx gh-commit-history

# Someone else, monthly
npx gh-commit-history ykdojo -g monthly

# Last 5 years, green accent
npx gh-commit-history torvalds --years 5 --style green

# A single repository's progress (timeline scoped to that repo's lifetime)
npx gh-commit-history --repo strategy-deckbuilder

# Open straight to the past month, daily
npx gh-commit-history --range 1m

Switching between charts

When you've generated more than one chart (e.g. your all-repos overview plus a few --repo views), each page gets a Chart: dropdown to hop between them - no regenerating, no separate index page.

The Chart dropdown in the controls bar, switching between saved charts

Every run rescans ~/.gh-commit-history/ and refreshes the dropdown in all of your charts, so a chart you make later shows up in the ones you made earlier (regenerate older charts once to pick up the feature). The current view's range and granularity carry over when you switch. The dropdown only appears when there are two or more charts.