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

git-quick-summary

v1.0.1

Published

Fast, zero-dependency CLI & TypeScript library to display colorful, instant Git repository summaries (branch, uncommitted status, ahead/behind, recent commits, and top contributors).

Readme

📊 git-quick-summary

Fast, zero-dependency CLI & TypeScript library to display colorful, instant Git repository summaries (branch, uncommitted status, ahead/behind, recent commits, and top contributors).

npm version License: MIT Sponsor TypeScript


✨ Features

  • ⚡ Zero Dependencies — Ultra-fast execution (<50ms), pure native Node.js and Git commands.
  • 🎨 Beautiful Colored Terminal Output — Instant visual snapshot of your repo without typing 5 different git commands.
  • 🌿 Branch & Upstream Tracking — Shows current branch, remote tracking target, and ahead / behind commit counts.
  • 📝 Detailed Working Tree Status — Counts staged, modified, and untracked files at a glance.
  • ⏱️ Recent Commits Log — Summarizes recent commit hashes, messages, timestamps, and authors.
  • 👥 Contributor Leaderboard — Identifies top contributors and total commit counts.
  • 🤖 CI/CD & Automation Ready — Supports --json for scripts, GitHub Actions, and bots.
  • 📦 Dual ESM & CommonJS — Usable as an executable CLI tool or imported as a library in TypeScript.

📥 Installation

As a CLI Tool (Recommended)

Run directly via npx without installation:

npx git-quick-summary

Or install globally:

npm install -g git-quick-summary

As a Library

npm install git-quick-summary

🚀 CLI Usage

Basic Usage

Simply run inside any Git repository:

npx git-quick-summary

Example Terminal Output

📦 Repository: my-awesome-app (/Users/alex/projects/my-awesome-app)
──────────────────────────────────────────────────
🌿 Branch : main -> origin/main [ahead 1, behind 0]
📝 Status : ✔ Working tree clean
📜 Commits: 142
⏱️  Latest : a1b2c3d feat: add authentication middleware (12 minutes ago) by Alex Doe

👥 Top Contributors:
   • Alex Doe                  98 commits
   • Sarah Connor              44 commits

🪵 Recent Commits:
   a1b2c3d feat: add authentication middleware       12 minutes ago
   e4f5g6h fix: correct token expiration calculation 2 hours ago
   i7j8k9l docs: update API specifications           yesterday

Inspect Another Folder

npx git-quick-summary ../another-project

JSON Output (For Automation / Bots)

npx git-quick-summary --json
{
  "isRepo": true,
  "repoName": "my-awesome-app",
  "branch": "main",
  "trackingRemote": "origin/main",
  "ahead": 1,
  "behind": 0,
  "status": {
    "staged": 0,
    "modified": 0,
    "untracked": 0,
    "isClean": true
  },
  "totalCommits": 142
}

💻 Programmatic API Usage

import { getGitSummary, formatGitSummary } from 'git-quick-summary';

// 1. Get raw typed data
const summary = getGitSummary();
console.log(`Current branch: ${summary.branch}`);
console.log(`Total commits: ${summary.totalCommits}`);

// 2. Format as string (with or without terminal ANSI colors)
const terminalReport = formatGitSummary(summary, { noColor: false });
console.log(terminalReport);

⚙️ CLI Options Reference

| Option | Description | |---|---| | [path] | Path to Git repository (defaults to current working directory). | | --json | Output full repository metadata and statistics as JSON. | | --no-color | Disable ANSI terminal colors. | | -v, --version | Display version number. | | -h, --help | Display help screen. |


🛠 Development & Testing

# Install dependencies
npm install

# Run unit tests
npm test

# Build dual ESM/CJS bundles + CLI executable + .d.ts types
npm run build

💖 Support the Project

If you find this package useful, consider sponsoring its ongoing development and maintenance: 👉 Sponsor @Piratha97 on GitHub Sponsors

📄 License

MIT © 2026 Pirapaakaran Pirathapan