Favicon of git-stats

git-stats

Track local git statistics and generate GitHub-like contribution calendars. Monitor commits, analyze author activity, and export data as HTML or images.

git-stats creates beautiful contribution calendars from your local git repositories, similar to the ones displayed on GitHub profiles. Instead of relying solely on GitHub's data, this tool tracks all your commits locally and generates comprehensive statistics.

Key features include:

  • Contribution Calendar: View your commit activity in a GitHub-style calendar format
  • Author Statistics: Generate pie charts showing additions and deletions by author
  • Flexible Date Ranges: Filter commits by custom date ranges using simple date syntax
  • Multiple Themes: Choose between dark and light themes for different preferences
  • Raw Data Export: Output JSON data for integration with other tools
  • HTML & Image Export: Convert your statistics to HTML files and generate images using external tools
  • Commit Importing: Import commits from existing repositories or download from GitHub and BitBucket
  • Global Activity: View activity across all repositories in your current project
  • Configuration File: Customize behavior through ~/.git-stats-config.js

The tool works by tracking commits through git hooks, automatically recording your development activity. You can analyze statistics by individual authors, view global activity patterns, and export results in multiple formats. Perfect for developers who want to understand their coding patterns, track team productivity, or maintain a personal record of their contributions.

Install

Npm
$ npm i -g git-stats
Npm
$ npm install -g git-stats-importer
Npm
$ npm install -g ghcal
Npm
$ npm install -g git-stats-html
Npm
$ npm install -g pageres-cli

Features

JSON output

Media

Pros

4
  • Generates GitHub-like contribution calendars.
  • Monitors commits and analyzes author activity.
  • Exports data as HTML or images.
  • Supports custom data stores and themes.

Related tools

Share:

Quiet lately: No commits in 8 months — this project might not be actively maintained.

Auto-fetched .

Recent releases

Similar to git-stats

Favicon

 

  
 
Favicon

 

  
 
Favicon