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

commit-insights

v0.1.4

Published

Generate a local git contribution dashboard from commit history

Readme

commit-insights

Generate a local git contribution dashboard (static HTML) from your repo's commit history. Optional AI-written narrative summaries via BYOK/BYOM providers.

npm install -g commit-insights
commit-insights generate .
open dashboard.html

Features

  • Self-contained dashboard — single dashboard.html, dark theme, Chart.js charts, works offline
  • Zero network by default — no data ever leaves your machine unless you explicitly opt in
  • Optional AI narratives — aggregated stats sent to Anthropic, OpenAI, or local Ollama (--narrative)
  • Incremental — SQLite cache reuses historical data, only extracts new commits
  • Git-native — respects .gitignore, lives inside .git/ for cache, uses git log -z under the hood

Privacy

commit-insights makes zero external network calls unless you pass --narrative. The core dashboard (statistics, charts, tables) is generated entirely from your local git history. No data is collected, no telemetry, no analytics.

When AI narratives are enabled (--narrative), only aggregated statistics (commit counts, type breakdowns, top tickets) are sent to the configured provider — never raw commit messages, diffs, or code.

Usage

commit-insights generate [path]                 generate contribution dashboard
commit-insights cache status|clear [path]       inspect or clear cache
commit-insights config [--json] [--explain]     show effective config

Options:
  --author <pattern>          filter commits by author
  --all                       bypass cache, full reconciliation
  --out <file>                output path (default: dashboard.html)
  --narrative                 include AI-written narrative summary
  --narrative-audience <type> manager | retro | resume | self
  --narrative-length <len>    short | normal
  --strict                    exit non-zero if AI narrative fails
  --no-cache                  skip cache, re-extract everything
  --cdn-charts                load Chart.js from CDN (requires internet)

Configuration (precedence)

Lowest → Highest:

  1. Built-in defaults
  2. Repo config (.commit-insights.json — team-shared: AI provider/baseUrl/model, areas, ticket patterns)
  3. User config (~/.config/commit-insights/config.json — personal: AI provider/model)
  4. Environment variables (ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY, AI_MODEL, AI_BASE_URL, OLLAMA_HOST)
  5. CLI flags

User config beats repo config — your AI provider preference shouldn't be forced by a team config file.

API keys are read from a .env file in the current working directory (gitignored via .gitignore). Never commit API keys to your repo config.

{
  "ai": {
    "provider": "ollama",
    "model": "llama3.2"
  },
  "areas": {
    "src/components/": "UI",
    "src/api/": "Backend"
  },
  "ticketPattern": "PROJ-\\d+"
}

AI providers

| Provider | Default model | Key required | |----------|--------------|--------------| | Anthropic | claude-sonnet-4-20250514 | ANTHROPIC_API_KEY | | OpenAI | gpt-4o | OPENAI_API_KEY | | Gemini | gemini-2.0-flash | GOOGLE_API_KEY | | Ollama | llama3.2 | No key (local) |

Default models can be overridden via config (model) or AI_MODEL environment variable.

Development

git clone https://github.com/hinedy/commit-insights
cd commit-insights
npm install

# Run from source
npm run dev -- generate .

# Build
npm run build

# Test
npm test

Why not git-insights?

The tool is named for commits, not git — it works on any repo's commit history regardless of VCS, and the name avoids implying it covers all git operations (blame, reflog, etc.). The scope is contribution insight, not git insight.


MIT © 2026 hinedy