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

@vjrngn/gait

v1.1.0

Published

Git Commit with AI

Readme

@vjrngn/gait

AI-powered git commit message generator. Uses Ollama or other AI providers to automatically generate meaningful commit messages from your staged changes.

npm License: MIT Node.js

Features

  • 🤖 AI-Powered - Generate commit messages using local or cloud AI models
  • 🔒 Privacy-First - Uses Ollama for local processing (your code never leaves your machine)
  • 🌐 Multi-Provider Support - Ollama, OpenAI, Anthropic, Google, Cohere, Mistral
  • 🎯 Conventional Commits - Generates messages following the Conventional Commits specification
  • Fast - Simple CLI interface
  • 💾 Configurable - Custom model selection and provider configuration

Installation

# Install globally
npm install -g @vjrngn/gait

# Or use npx without installing
npx @vjrngn/gait

Prerequisites

For Ollama (Default - Local)

  1. Install Ollama
  2. Pull a model:
    ollama pull llama3
    ollama pull codellama
    ollama pull mistral

For Cloud Providers

If using OpenAI, Anthropic, or other cloud providers, set their API keys:

export OPENAI_API_KEY="your-key"
export ANTHROPIC_API_KEY="your-key"
# etc.

Usage

# Stage your changes first
git add .

# Run gait to generate a commit message
gait

# Or use the full command
git-commit-ai

Options

gait                    # Generate commit message for staged changes
gait --all              # Use all changes (not just staged)
gait --model <name>     # Specify a different model
gait --provider <name> # Switch between ollama/openai/anthropic/etc.
gait --config           # Open configuration
gait --list-models      # List available Ollama models

Configuration

Gait stores config in ~/.gait/gait.json. You can configure:

  • Default provider - Which AI provider to use
  • Model - Which model to use per provider
  • Custom prompts - Modify how commit messages are generated

Example Configuration

{
  "providers": {
    "ollama": {
      "model": "llama3"
    },
    "openai": {
      "model": "gpt-4"
    }
  },
  "activeProvider": "ollama"
}

Supported Providers

| Provider | Setup Required | |----------|---------------| | Ollama | Install Ollama, pull model | | OpenAI | Set OPENAI_API_KEY | | Anthropic | Set ANTHROPIC_API_KEY | | Google Gemini | Set GOOGLE_API_KEY | | Cohere | Set COHERE_API_KEY | | Mistral | Set MISTRAL_API_KEY |

Development

# Clone the repo
git clone https://github.com/vjrngn/gait.git
cd gait

# Install dependencies
npm install

# Run tests
npm test

# Link for local development
npm link

Publishing

# Create a git release (patch version)
npm run release

# Create a git release (minor version)
npm run release:minor

# Create a git release (major version)
npm run release:major

# Publish to npm
npm run publish

How It Works

  1. Git Diff - Gait runs git diff --staged to get your staged changes
  2. Prompt Engineering - The diff is sent to your configured AI provider with a prompt asking for a conventional commit message
  3. Message Generation - AI generates a commit message following the format: type(scope): description
  4. Confirmation - You can edit or accept the generated message before committing

License

MIT

Author

OpenClaw