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

gemini-commit-ai

v1.3.0

Published

AI-powered git commit message generator using Google Gemini

Readme

🤖 Gemini Commit AI

AI-powered git commit message generator using Google Gemini

Transform your git workflow with intelligent, context-aware commit messages generated by Google's Gemini AI.

✨ Features

  • 🧠 AI-Powered: Uses Google Gemini to analyze your code changes
  • 📝 Smart Suggestions: Generates 3 ranked commit message options
  • 🎯 Context Aware: Considers recent commits, branch names, and file changes
  • 🔧 Conventional Commits: Supports conventional commit format
  • Fast & Easy: One command to generate perfect commit messages
  • 🎨 Interactive CLI: Beautiful, user-friendly interface
  • ⚙️ Configurable: Customize behavior per project or globally

🚀 Quick Start

Installation

npm install -g gemini-commit-ai

Setup

# Initialize configuration
gemini-commit-ai init

Usage

# Stage your changes
git add .

# Generate and select commit message
gemini-commit-ai

# Or use the short alias
gca

📖 Usage Examples

Basic Usage

# Generate commit message suggestions
gemini-commit-ai

# Auto-commit with best suggestion
gemini-commit-ai --commit

# Auto-commit and push
gemini-commit-ai --commit --push

Advanced Usage

# Non-interactive mode (uses best suggestion)
gemini-commit-ai --no-interactive --commit

# Check staged changes
gemini-commit-ai status

# Manage configuration
gemini-commit-ai config --list
gemini-commit-ai config --set maxLength=100

🔧 Installation & Setup

1. Install the package

npm install -g gemini-commit-ai

2. Get Google Gemini API Key

  1. Go to Google AI Studio
  2. Create a new API key
  3. Copy the key

3. Configure the tool

gemini-commit-ai init

Or set environment variable:

export GEMINI_API_KEY="your-api-key-here"

⚙️ Configuration

Configuration is stored in:

  • Global: ~/.gemini-commit-ai.json
  • Project: .gemini-commit-ai.json (in project root)

Options

| Option | Default | Description | |--------|---------|-------------| | geminiApiKey | - | Your Google Gemini API key | | conventionalCommits | true | Use conventional commits format | | maxLength | 72 | Maximum commit message length | | includeBody | false | Include detailed commit body | | customPrompt | - | Additional instructions for AI |

Example Configuration

{
  "geminiApiKey": "your-api-key",
  "conventionalCommits": true,
  "maxLength": 72,
  "includeBody": false,
  "customPrompt": "Always mention the ticket number from branch name"
}

🎯 Commands

| Command | Alias | Description | |---------|-------|-------------| | gemini-commit-ai | gca | Generate commit message (default) | | gemini-commit-ai init | - | Initialize configuration | | gemini-commit-ai config | - | Manage configuration | | gemini-commit-ai status | - | Show staged changes |

📋 Examples

Generated Commit Messages

Before:

Modified user authentication and added error handling

After (with gemini-commit-ai):

feat(auth): implement JWT token validation with error handling

- Add middleware for token verification
- Implement proper error responses for invalid tokens
- Add unit tests for authentication flow

🔒 Privacy & Security

  • Your code changes are sent to Google Gemini API
  • API key is stored locally in config files
  • No data is stored or logged by this package
  • Consider using environment variables for API keys in CI/CD

🤝 Contributing

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

📝 License

MIT License - see LICENSE file for details.


Made with ❤️ by developers, for developers

Powered by Google Gemini AI 🤖


## **Now publish:**

```bash
npm publish

After publishing, test it:

# Install globally
npm install -g gemini-commit-ai

# Test it
gemini-commit-ai --help

# Test in a git repo
cd /path/to/your/git/repo
git add .
gemini-commit-ai

Create GitHub repository:

git init
git add .
git commit -m "feat: initial release of gemini-commit-ai"
git remote add origin https://github.com/yourusername/gemini-commit-ai.git
git push -u origin main