@codemonkeycxy/gitpulse
v0.1.21
Published
A quick health check for any git repository, surfacing potential problem areas from commit history
Downloads
1,554
Maintainers
Readme
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-openReport 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
- Run
npm testto verify nothing is broken - Bump and commit:
npm version patch(orminor/major) - Publish:
npm publish --access public
The
--access publicflag 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
