npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gitgenius

v1.1.2

Published

AI-powered Git history analysis tool with intelligent insights and semantic search

Readme

GitGenius

AI-powered Git history analysis tool - Zero configuration needed!

npm version License: MIT

GitGenius transforms your Git repository into an intelligent knowledge base using AI. Analyze commit history, search semantically, generate changelogs, and create comprehensive reports with AI-powered insights.

No database setup required - uses local SQLite
Simple setup - just enter your Gemini API key when prompted

✨ What's New in v1.1.0

  • 📝 Changelog Generator - Auto-generate release notes with AI categorization
  • 🔍 Filter Commits - Browse by author, date range (7/30/90 days or custom)
  • 🚀 Incremental Analysis - Only analyzes new commits, skips already processed
  • 📊 Progress Tracking - Real-time progress updates during analysis
  • 🤖 AI-powered Search - Ask any question in natural language
  • 🎨 Improved HTML Export - Beautiful reports with better styling

Features

  • AI-Powered Analysis - Automatically categorize and summarize commits using Google Gemini
  • Semantic Search - Ask questions in natural language, get AI-powered answers with relevant commits
  • Changelog Generation - Auto-generate professional release notes grouped by category
  • Interactive Filtering - Browse commits by author, date range, or view all
  • Beautiful Reports - Export detailed analysis in JSON, Markdown, CSV, or HTML
  • Interactive CLI - User-friendly menu-driven interface with arrow key navigation
  • Repository Statistics - Comprehensive metrics and insights about your codebase
  • Incremental Processing - Only analyze new commits, skip already processed ones
  • Fast & Efficient - Parallel processing with intelligent caching

Installation

npm install -g gitgenius

Prerequisites

Quick Start

1. Run GitGenius

cd your-git-repo
gitgenius

On first run, you'll be prompted to enter your Gemini API key. It will be saved securely for future use.

2. Initialize your repository

Select Setup from the menu to analyze your Git repository.

3. Analyze commits

Select Analyze to process commits with AI and generate insights.

4. Search and explore

Use Search to ask questions about your codebase in natural language.

5. Generate changelog

Select Changelog to auto-generate release notes with AI categorization.

6. Filter commits

Use Filter to browse commits by author or date range.

7. Export reports

Select Export to generate detailed reports in your preferred format.

🎯 Usage

Interactive CLI

Simply run gitgenius in any Git repository:

gitgenius

Navigate using arrow keys through the menu:

  • Setup - Initialize this Git repository
  • Analyze - Process commits with AI (only new commits)
  • Search - Ask AI about your commits (natural language)
  • Changelog - Generate release notes ✨ NEW
  • Filter - Browse commits by author/date ✨ NEW
  • Stats - View repository statistics
  • Export - Generate detailed report
  • Help - Documentation and guides
  • Exit - Quit GitGenius

Command-Line Interface (Alternative)

# Initialize repository
gitgenius init

# Analyze commits
gitgenius analyze

# Search for specific changes
gitgenius search "authentication implementation"

🔍 AI-Powered Search

Ask questions in natural language and get intelligent answers:

? Ask anything about your commits: Which commit has the most code changes?

━━━ AI Answer ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The commit with hash a0f104b has the most code changes with +15,234 additions
and -2,341 deletions. This was the initial project setup commit that established
the core architecture...

━━━ Related Commits ━━━━━━━━━━━━━━━━━━━━━━━━━

1. a0f104b
   "feat: Initialize GitWise project with core functionalities"
   Author: pankaj kumar | Date: 2025-11-21
   Changes: +15234 -2341

📝 Changelog Generation

Automatically generate professional release notes:

━━━ Changelog Generator ━━━━━━━━━━━━━━━━━━━━

? Version name (e.g., v1.0.0): v1.1.0

# Changelog

## v1.1.0

### ✨ Features
- Changelog generator with AI categorization (`abc1234`) - Author
- Filter commits by author and date (`def5678`) - Author

### 🐛 Bug Fixes
- Fixed HTML export visibility (`ghi9012`) - Author

### ♻️ Refactoring
- Improved CLI structure (`jkl3456`) - Author

? Save changelog to file? Yes
✅ Saved to CHANGELOG-v1.1.0.md

📊 Export Formats

GitGenius supports multiple export formats:

JSON

Machine-readable format with complete metadata and statistics.

Markdown

Professional documentation with executive summary, metrics tables, and AI insights.

CSV

Spreadsheet-compatible format for commit data analysis.

HTML

Beautiful web report with interactive styling and comprehensive details.

🎯 Key Features

  • Zero Configuration - No database setup required, uses local SQLite
  • Simple API Key Setup - Enter once, saved securely
  • AI-Powered Analysis - Automatic commit categorization with Google Gemini
  • Natural Language Search - Ask questions, get AI answers with commit references
  • Changelog Generation - Auto-generate release notes grouped by category
  • Interactive Filtering - Browse commits by author, date, or view all
  • Incremental Processing - Only new commits are analyzed
  • Multiple Export Formats - JSON, Markdown, CSV, HTML
  • Beautiful CLI - Interactive menu with arrow key navigation
  • Comprehensive Reports - Detailed analysis with statistics and insights

🗄️ Data Storage

GitGenius stores all data locally in a SQLite database (gitgenius.db in your project directory). No external database required!

🔑 Getting Your Gemini API Key

  1. Visit Google AI Studio
  2. Create a new API key (it's free!)
  3. Run gitgenius and enter the key when prompted

That's it! Your key will be saved securely for future use.

📖 How It Works

  1. Initialization: GitGenius scans your Git repository and stores commit history in local SQLite
  2. Chunking: Commits are grouped into manageable chunks for efficient processing
  3. AI Analysis: Google Gemini analyzes each chunk, extracting insights and categories
  4. Incremental Updates: On subsequent runs, only new commits are analyzed
  5. Search: AI-powered semantic search finds relevant commits and generates answers
  6. Changelog: AI categorizes commits and generates professional release notes

⚙️ Configuration

No configuration files needed! GitGenius works out of the box.

Optional: You can set these environment variables to customize behavior:

  • GEMINI_MODEL - AI model to use (default: gemini-2.5-flash)
  • CHUNK_SIZE - Commits per analysis chunk (default: 50)
  • MAX_CONCURRENT_JOBS - Parallel processing limit (default: 5)

🤝 Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

📄 License

MIT © Pankaj Kumar

🔗 Links

🙏 Acknowledgments

Built with:


Made with ❤️ by Pankaj Kumar