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

ai-git-wizard

v1.0.1

Published

AI-powered commit wizard for automatic commit messages and PR creation

Downloads

9

Readme

Commit Wizard 🔮

An AI-powered commit wizard that automatically generates commit messages, creates branches, and makes pull requests.

Features

  • 🤖 AI-generated commit messages using OpenRouter API
  • 🌿 Automatic branch name generation
  • 📄 PR creation with detailed descriptions
  • ⚡ Parallel commit message generation for better performance
  • 🔧 Global configuration management
  • 📦 Works with any GitHub repository

Installation

Global Installation (Recommended)

npm install -g ai-git-wizard

Local Installation

npm install ai-git-wizard

Setup

Before using the CLI, you need to configure your API keys:

ai-git-wizard config setup

This will prompt you for:

  • OpenRouter API key (for AI features)
  • GitHub personal access token (for PR creation)
  • Preferred AI model
  • Max concurrency for API requests

Getting API Keys

OpenRouter API Key

  1. Sign up at openrouter.ai
  2. Go to Keys section
  3. Create a new API key

GitHub Personal Access Token

  1. Go to GitHub Settings → Developer settings → Personal access tokens
  2. Generate a new token with repo scope
  3. Copy the token

Usage

Quick Workflow

Run the complete workflow (generates commits, creates branch, makes PR):

ai-git-wizard workflow

Just Commit

Generate AI commit messages and commit staged files:

ai-git-wizard commit

Commit and Push

Generate commit messages and push to remote:

ai-git-wizard commit --push

Specify Branch Name

ai-git-wizard workflow -b feature/my-feature

Skip PR Creation

ai-git-wizard workflow --no-pr

Configuration Management

# Interactive setup
ai-git-wizard config setup

# List all configuration
ai-git-wizard config list

# Set individual values
ai-git-wizard config set openRouterApiKey YOUR_KEY
ai-git-wizard config set githubToken YOUR_TOKEN

# Get a specific value
ai-git-wizard config get defaultModel

Workflow Steps

The complete workflow performs these steps:

  1. Detect Repository: Automatically detects GitHub repository info
  2. Get Staged Files: Finds all staged changes
  3. Generate Commit Messages: Creates AI-powered commit messages for each file
  4. Create/Switch Branch: Creates a new branch or uses specified branch
  5. Create Commits: Makes individual commits for each file
  6. Push Branch: Pushes the branch to GitHub
  7. Create PR: Creates or updates a pull request with AI-generated description

Configuration

Configuration is stored in ~/.ai-git-wizard/config.json

Available Settings

  • openRouterApiKey: Your OpenRouter API key (required)
  • githubToken: Your GitHub personal access token (required)
  • defaultModel: AI model to use (default: "google/gemini-flash-2.5")
  • maxConcurrency: Max parallel API requests (default: 3)

Supported AI Models

Any model available on OpenRouter is supported! Some popular options include:

  • google/gemini-flash-2.5 (Recommended - Fast & Reliable)
  • anthropic/claude-3.5-sonnet (High Quality)
  • google/gemini-flash-1.5 (Very Fast)
  • openai/gpt-4o-mini (Good Balance)
  • openai/gpt-4o (Highest Quality)
  • meta-llama/llama-3.1-8b-instruct (Open Source)
  • mistralai/mistral-7b-instruct (Open Source)

You can browse all available models at openrouter.ai/models

Examples

Basic Usage

# Stage some files
git add src/components/Button.tsx
git add src/utils/helpers.ts

# Run AI workflow
ai-git-wizard workflow

### Advanced Usage

```bash
# Specify branch and base branch
ai-git-wizard workflow --branch feat/authentication --base-branch develop

# Just generate commits without PR
ai-git-wizard workflow --no-pr

# Only commit (no branch creation or PR)
ai-git-wizard commit

# Commit and push to remote
ai-git-wizard commit --push

Requirements

  • Node.js 18+
  • Git repository with GitHub remote
  • OpenRouter API key
  • GitHub personal access token

Contributing

  1. Clone the repository
  2. Install dependencies: npm install
  3. Build: npm run build
  4. Test locally: npm link

License

MIT

Support

For issues and questions, please open an issue on GitHub.