Skip to content

anxin233/gitviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐ŸŽจ GitViz

Transform your Git history into stunning visual stories

English | ็ฎ€ไฝ“ไธญๆ–‡

npm version npm downloads License: MIT TypeScript GitHub stars GitHub issues PRs Welcome

GitViz is a powerful CLI tool that analyzes your Git repositories and generates beautiful, interactive visualizations. Understand your project's history, contributor patterns, and code evolution at a glance.

Demo

๐Ÿ“– Quick Start โ€ข ๐ŸŽจ Demo โ€ข ๐Ÿ“š Examples โ€ข ๐Ÿค Contributing

โœจ Features

  • ๐Ÿ“Š Interactive Timeline - Visualize commit activity over time
  • ๐Ÿ‘ฅ Contributor Analytics - See who's contributing and how much
  • ๐Ÿ”ฅ File Heatmap - Identify hotspots in your codebase
  • ๐Ÿš€ Lightning Fast - Powered by Bun for maximum performance
  • ๐Ÿ“ฆ Zero Config - Works out of the box with any Git repository
  • ๐ŸŽจ Beautiful Output - Export as standalone HTML files
  • ๐Ÿ’ป Cross-Platform - Works on macOS, Linux, and Windows

๐Ÿš€ Quick Start

Installation

# Using npm
npm install -g @anxin233/gitviz

# Using Bun (recommended)
bun install -g @anxin233/gitviz

# Using yarn
yarn global add @anxin233/gitviz

Usage

# Analyze current repository
gitviz analyze

# Analyze specific repository
gitviz analyze --path /path/to/repo

# Customize output
gitviz analyze --output my-report.html --limit 500

# Quick analysis
gitviz quick

๐Ÿ“Š What You Get

GitViz generates a comprehensive HTML report with:

1. Commit Timeline

See your project's activity patterns over time. Identify busy periods, quiet phases, and development trends.

2. Top Contributors

Understand who's driving your project forward. See commit counts and lines of code contributed.

3. File Change Heatmap

Discover which files change most frequently. Perfect for identifying technical debt and refactoring opportunities.

๐ŸŽฏ Use Cases

  • Project Health Checks - Quickly assess repository activity
  • Team Analytics - Understand contribution patterns
  • Documentation - Add visual insights to your README
  • Code Reviews - Identify frequently changed files
  • Onboarding - Help new team members understand project history

๐Ÿ› ๏ธ CLI Options

gitviz analyze [options]

Options:
  -p, --path <path>      Path to Git repository (default: ".")
  -o, --output <file>    Output HTML file (default: "gitviz-report.html")
  -l, --limit <number>   Limit number of commits (default: "1000")
  -h, --help            Display help information

๐Ÿ“– Examples

Basic Analysis

gitviz analyze

Analyze Large Repository

gitviz analyze --limit 5000 --output full-history.html

Analyze Multiple Projects

gitviz analyze --path ~/projects/app1 --output app1-viz.html
gitviz analyze --path ~/projects/app2 --output app2-viz.html

๐Ÿ—๏ธ How It Works

  1. Parse - GitViz reads your Git history using simple-git
  2. Analyze - Processes commits, contributors, and file changes
  3. Visualize - Generates interactive D3.js charts
  4. Export - Creates a standalone HTML file you can share

๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“ Development

# Clone the repository
git clone https://github.com/anxin233/gitviz.git
cd gitviz

# Install dependencies
bun install

# Run in development mode
bun run dev analyze

# Build
bun run build

# Type check
bun run type-check

๐Ÿ› Known Issues

  • Very large repositories (>10k commits) may take a few seconds to process
  • Binary files are included in change statistics

๐Ÿ—บ๏ธ Roadmap

  • Add more visualization types (network graphs, code frequency)
  • Support for multiple branches comparison
  • Export to PDF and PNG
  • Real-time mode for live repositories
  • Integration with GitHub/GitLab APIs
  • Custom themes and color schemes
  • Plugin system for custom analyzers

๐Ÿ“„ License

MIT ยฉ 2026 GitViz Contributors

๐ŸŒŸ Show Your Support

If you find GitViz useful, please consider:

  • โญ Starring the repository
  • ๐Ÿฆ Sharing on social media
  • ๐Ÿ› Reporting bugs
  • ๐Ÿ’ก Suggesting new features

๐Ÿ“ฌ Contact


Made with โค๏ธ by developers, for developers

About

๐ŸŽจ Beautiful, interactive Git repository visualizations - Transform your Git history into stunning visual stories

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors