Skip to content

david049/gitpulse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitpulse

A quick health check for any git repository.

gitpulse analyses a git repository's commit history and generates a visual health report. Point it at any repo to get a quick read on potential problem areas like churn hotspots, knowledge silos, and firefighting patterns.

Usage

# Run from inside any repo
npx @codemonkeycxy/gitpulse

# Point at a local path
npx @codemonkeycxy/gitpulse ./path/to/repo

# Point at a GitHub URL
npx @codemonkeycxy/gitpulse https://github.com/owner/repo

# Skip auto-opening the browser
npx @codemonkeycxy/gitpulse --no-open

Report sections

Section What it shows
File Churn Most frequently changed files over the configured time range
Project Momentum Monthly commit trend (growing, declining, or stable)
Contributor Distribution Commit share per author; warns when knowledge is heavily concentrated in one person
Knowledge Silos Files only one person has touched, grouped by sole owner
Firefighting Frequency Reverts, hotfixes, and rollbacks per month with spike detection

Options

Flag Default Description
--output <file> gitpulse-<repo>.html Output file path
--since <date> 1 year ago Analyse commits since this date (YYYY-MM-DD)
--top <n> 20 Number of files in the churn section
--no-open Don't auto-open the report in the browser
--json Output raw collected data as JSON
--all-files Include noise files (lock files, generated files, and vendor directories) in the churn list

Publishing to npm

  1. Run npm test to verify nothing is broken
  2. Bump and commit: npm version patch (or minor / major)
  3. Publish: npm publish --access public

The --access public flag is required because the package is scoped (@codemonkeycxy/gitpulse).

Inspiration

The core insight, that you can understand a codebase's health before reading a single line of code, comes from Git Commands I Use Before Reading Code by Grzegorz Piechowski. gitpulse automates those ideas.

License

MIT

About

Mine git history. Understand any codebase before reading a single file.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • HTML 59.0%
  • JavaScript 41.0%