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

commit-commander-ai

v1.0.22

Published

A powerful CLI tool that helps developers create professional and meaningful Git commits with intelligent suggestions and conventional commit standards

Readme

🚀 Commit Commander AI

AI-powered Git commit assistant that helps you create professional, meaningful commit messages with ease.

✨ Features

  • 🤖 AI-Powered Suggestions - Uses Google Gemini AI to analyze your changes and suggest commit messages
  • 🎯 Conventional Commits - Follows conventional commit standards with emojis
  • ⚡ Arrow Key Navigation - Smooth terminal UI with arrow key selection
  • 🔧 Fully Customizable - Configure commit types, scopes, and AI prompts
  • 🎨 Emoji Support - Beautiful commits with meaningful emojis
  • 📦 Zero Runtime Dependencies - Uses only Node.js built-ins

📦 Installation

As a Dev Dependency (Recommended)

npm install --save-dev commit-commander-ai
# or
yarn add --dev commit-commander-ai
# or
pnpm add --save-dev commit-commander-ai

Global Installation

npm install -g commit-commander-ai

🚀 Quick Start

1. Initialize Configuration

After installation, initialize the configuration in your project:

npx commit-commander-ai init
# or if installed globally
commit-commander-ai init

This will:

  • Ask for your Gemini API key
  • Set up commit types and scopes
  • Configure custom questions
  • Create a commit-commander.config.mjs file

2. Get Your Gemini API Key

  1. Go to Google AI Studio
  2. Sign in with your Google account
  3. Click "Get API key"
  4. Copy your API key when prompted during init

3. Start Using It

npx commit-commander-ai
# or use the short alias
npx cc

⚙️ Configuration

The commit-commander.config.mjs file allows full customization:

export default {
    // Your Gemini API Key
    apiKey: 'your_api_key_here',

    // Available commit types (with emojis)
    commitTypes: [
        '⭐feat',       // new feature
        '🐛fix',        // bug fixes
        '📝docs',       // documentation
        '💅style',      // formatting
        '♻️refactor',   // refactoring
        '⚡perf',       // performance
        '🧪test',       // tests
        '📦build',      // build system
        '👷ci',         // CI changes
        '🔧chore'       // maintenance
    ],

    // Available scope types (with emojis)  
    scopeTypes: [
        'root',       // root changes
        'utils',      // utilities
        'ui',         // user interface
        'api'        // API changes
    ],

    // Custom AI prompt (optional)
    customPrompt: 'Focus on clear, concise messages',

    // Question preferences
    customQuestions: {
        askForDetails: true,
        detailsPrompt: 'Enter detailed description: ',
        confirmBeforeCommit: true
    }
};

🎯 Usage Examples

Basic Usage

npx cc

Initialize in New Project

npx cc init

Package.json Scripts

Add to your package.json:

{
  "scripts": {
    "commit": "commit-commander-ai",
    "c": "cc"
  }
}

Then use:

npm run commit
# or
npm run c

🔧 Commands

| Command | Alias | Description | |---------|-------|-------------| | commit-commander-ai | cc | Start commit process | | commit-commander-ai init | cc init | Initialize configuration | | commit-commander-ai help | cc help | Show help | | commit-commander-ai version | cc --version | Show version |

🤖 AI Features

  • Smart Analysis: AI reads your git diff to understand changes
  • Conventional Format: Generates proper type(scope): description format
  • Context Aware: Suggests appropriate commit types based on file changes
  • Custom Instructions: Add your own AI prompt guidelines

🎨 Commit Types

Default commit types with emojis:

| Type | Emoji | Description | |------|-------|-------------| | feat | ⭐ | New features | | fix | 🐛 | Bug fixes | | docs | 📝 | Documentation | | style | 💅 | Formatting, styling | | refactor | ♻️ | Code refactoring | | perf | ⚡ | Performance improvements | | test | 🧪 | Adding tests | | build | 📦 | Build system changes | | ci | 👷 | CI configuration | | chore | 🔧 | Maintenance tasks |

🔒 Security

  • Configuration file (commit-commander.config.mjs) is automatically added to .gitignore
  • API keys are stored locally and never shared
  • Works completely offline after initial setup

🤝 Contributing

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

📄 License

MIT © Hossein Naseri

🙋‍♂️ Support


Happy Committing! 🚀✨