Transform your Git history into stunning visual stories
English | ็ฎไฝไธญๆ
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.
๐ Quick Start โข ๐จ Demo โข ๐ Examples โข ๐ค Contributing
- ๐ 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
# Using npm
npm install -g @anxin233/gitviz
# Using Bun (recommended)
bun install -g @anxin233/gitviz
# Using yarn
yarn global add @anxin233/gitviz# 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 quickGitViz generates a comprehensive HTML report with:
See your project's activity patterns over time. Identify busy periods, quiet phases, and development trends.
Understand who's driving your project forward. See commit counts and lines of code contributed.
Discover which files change most frequently. Perfect for identifying technical debt and refactoring opportunities.
- 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
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
gitviz analyzegitviz analyze --limit 5000 --output full-history.htmlgitviz analyze --path ~/projects/app1 --output app1-viz.html
gitviz analyze --path ~/projects/app2 --output app2-viz.html- Parse - GitViz reads your Git history using
simple-git - Analyze - Processes commits, contributors, and file changes
- Visualize - Generates interactive D3.js charts
- Export - Creates a standalone HTML file you can share
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
# 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- Very large repositories (>10k commits) may take a few seconds to process
- Binary files are included in change statistics
- 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
MIT ยฉ 2026 GitViz Contributors
If you find GitViz useful, please consider:
- โญ Starring the repository
- ๐ฆ Sharing on social media
- ๐ Reporting bugs
- ๐ก Suggesting new features
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Made with โค๏ธ by developers, for developers