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

bruh-gitstats

v1.0.1

Published

Quick git statistics. Lines of code, commits, contributors. ASCII heatmap included.

Readme

gitstats

Quick git statistics. Lines of code, commits, contributors. ASCII heatmap included.

Install

npm install -g gitstats

Usage

# Show all stats for current repo
gitstats

# Show stats for specific path
gitstats /path/to/repo

# Lines of code by language
gitstats --loc
gitstats -l

# Commits over time
gitstats --commits
gitstats -c

# Contributors leaderboard
gitstats --contributors
gitstats --contrib

# Activity heatmap (ASCII)
gitstats --heatmap
gitstats -H

# Stats for specific author
gitstats --author "John Doe"
gitstats -a "[email protected]"

# Stats for time period
gitstats --since "2024-01-01"
gitstats --until "2024-06-30"
gitstats --last-month
gitstats --last-year

# Output formats
gitstats --json
gitstats --csv

# Quick summary only
gitstats --summary

# Help
gitstats --help

Options

| Option | Description | |--------|-------------| | -l, --loc | Lines of code by language | | -c, --commits | Commits over time | | --contributors | Contributors leaderboard | | -H, --heatmap | Activity heatmap | | -a, --author | Stats for specific author | | --since | Filter by start date | | --until | Filter by end date | | --last-month | Last month only | | --last-year | Last year only | | --json | Output as JSON | | --csv | Output as CSV | | --summary | Quick summary |

Output

$ gitstats

  gitstats — bruh.tools
  ─────────────────────

  SUMMARY
  ───────
  Repository:   my-project
  Commits:      1,234
  Contributors: 5
  First commit: 2023-01-15
  Last commit:  2024-01-10 (2 days ago)

  LINES OF CODE
  ─────────────
  js:        12,345  ████████████████████░░░░  68%
  css:        3,456  █████░░░░░░░░░░░░░░░░░░░  19%
  html:       1,234  ██░░░░░░░░░░░░░░░░░░░░░░   7%
  json:         567  █░░░░░░░░░░░░░░░░░░░░░░░   3%
  ─────────────────────────────────────────────
  Total:     18,058 lines

  TOP CONTRIBUTORS
  ────────────────
   1. John Doe               789 commits  ████████████████
   2. Jane Smith             345 commits  ███████
   3. Bob Wilson              88 commits  ██

$ gitstats --heatmap

  COMMIT HEATMAP (last 52 weeks)
  ──────────────────────────────
  Sun ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  Mon ░░█░░░░░██░░░░█░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░░░░░░
  Tue ░░░░░░░░░█░░░░█░░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░░░░░
  Wed ░█░░░░░░░░░░░░█░░░░░█░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░
  Thu ░░░░░░░░█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  Fri ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░░░░░
  Sat ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  Less  ░ ▒ ▓ █  More

License

MIT


bruh.tools - no cap fr fr