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

gitdotai

v1.0.0

Published

AI-powered git assistant for code reviews and smart commits. Supports OpenAI, Claude, and Google Gemini.

Downloads

20

Readme

gitdotai - AI-Powered Git Assistant 🤖

Supercharge your git workflow with AI-powered code reviews and intelligent commit messages. Supporting OpenAI (ChatGPT), Anthropic (Claude), and Google (Gemini).

Features ✨

  • 🔍 AI Code Reviews - Get instant, intelligent feedback on your code changes
  • 💬 Smart Commit Messages - Generate conventional commit messages automatically
  • 🎯 Multiple AI Providers - Choose from OpenAI, Claude, or Gemini (free tier!)
  • 🚀 Simple Setup - Start using in under a minute
  • 🔒 Privacy-First - Your code stays local, only diffs are sent for analysis
  • 🎨 Beautiful CLI - Intuitive interface with syntax highlighting

Installation

npm install -g gitdotai

Quick Start

1. Initialize with your preferred AI provider:

gitai init

Choose from:

  • Google Gemini (Recommended - generous free tier)
  • OpenAI ChatGPT (Requires API credits)
  • Anthropic Claude (Requires API credits)

2. Review your code changes:

# Review staged changes
gitai review

# Review all changes (staged + unstaged)
gitai review --all

# Skip AI analysis (just show diff)
gitai review --no-ai

3. Generate commit messages:

# Generate commit message for staged changes
gitai commit

# Stage all changes and generate commit message
gitai commit --all

# Auto-commit without confirmation
gitai commit --yes

Examples

Code Review Example

$ gitai review

✔ Found changes to review!

══════════════════════════════════════════════════
Code Review Summary
══════════════════════════════════════════════════
Branch: main
Reviewing: staged changes
Files changed: 2

✓ Staged files:
  + src/index.js
  + README.md

🤖 AI Code Review
══════════════════════════════════════════════════
✅ Good error handling implementation
⚠️ Consider adding input validation for user data
🐛 Potential null reference on line 45
🔒 Ensure API keys are not logged in production
⚡ Consider memoizing expensive calculations
══════════════════════════════════════════════════

Commit Message Generation

$ gitai commit

✔ Found staged changes!

Files to commit (2):
  ✓ src/auth.js
  ✓ tests/auth.test.js

✔ Commit message generated!

══════════════════════════════════════════════════
Suggested commit message:

  feat(auth): add JWT token validation with tests

══════════════════════════════════════════════════

? What would you like to do? › Use this message

Supported AI Providers

Google Gemini (Recommended for Free Tier)

  • ✅ 60 requests per minute free
  • ✅ No credit card required
  • ✅ High-quality code analysis

Get your API key at: makersuite.google.com

OpenAI ChatGPT

Anthropic Claude

Configuration

GitAI stores its configuration in .gitai/config.json in your project root. API keys are stored in your .env file for security.

Environment Variables

# For Gemini
GEMINI_API_KEY=your-api-key

# For OpenAI
OPENAI_API_KEY=your-api-key

# For Claude
ANTHROPIC_API_KEY=your-api-key

Privacy & Security

  • Local Processing - All git operations happen locally
  • Minimal Data Sharing - Only diffs are sent to AI providers
  • Secure Storage - API keys stored in .env (gitignored)
  • No Tracking - We don't collect any usage data

Requirements

  • Node.js >= 14.0.0
  • Git repository
  • API key for at least one AI provider

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT © vedant jain


Made with ❤️ by developers, for developers