Interactive terminal chart for visualizing how a git repository grows over time.
Status: Maintained Bun CLI. The source checkout is 0.1.1; npm currently serves the verified 0.1.0 release.
git-charts reads first-parent history, computes cumulative LOC snapshots, picks a fitting default resolution, and renders an interactive terminal chart. The default view is a line chart.
Local:
bun install
bun run index.ts ../your-repoFrom npm:
bunx git-charts ../your-repogit-charts [repo-path] [day|week|month|quarter|year]Examples:
bun run index.ts
bun run index.ts ../gastown
bun run index.ts ../gastown dayIf you omit the period, git-charts automatically chooses the finest resolution that fits the current terminal width.
left/rightorh/l: move selectiong/G: jump to start or endd/w/m/p/y: switch periodv: toggle line or bar chartq: quit
- Uses
git log --first-parentso the chart follows the main branch timeline. - Values are total LOC snapshots, not per-period deltas.
- History is cached inside the repo’s
.gitdirectory for faster repeat runs.
See PUBLISHING.md.
See LAUNCH.md.
bun install --frozen-lockfile
bun test
bun run index.ts --help