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-committer

v1.0.7

Published

A simple CLI tool to automate git commits

Readme

AI Committer

AI Committer is a lightweight CLI tool designed to help developers generate professional, AI-powered git commit messages with customizable options. It supports various AI providers, models, and commit types, making it a versatile addition to your development workflow.


Features

  • Generate professional commit messages using AI.
  • Supports multiple AI providers like ollama and openai.
  • Customizable commit types (e.g., feat, fix, chore).
  • Option to generate a list of commit messages.
  • Fully configurable via CLI arguments or environment variables.

Installation

Install globally using npm or yarn:

npm install -g ai-committer

Usage

Run the tool from the command line:

ai-committer

Basic Command

ai-committer --provider openai --model gpt-4o --commitType feat

This will generate a commit message using the specified provider, model, and commit type.


Configuration

You can configure the tool using:

  1. CLI Arguments
  2. Environment Variables
  3. A combination of both

CLI Arguments

| Argument | Description | Example Values | Default | | -------------- | --------------------------------------------------- | ------------------------- | ----------- | | --provider | The AI provider to use. | ollama, openai | ollama | | --model | The AI model to use with the provider. | gpt-4o, gpt-3.5-turbo | undefined | | --commitType | The commit type for the generated message. | feat, fix, chore | undefined | | --numCommits | The number of commit messages to generate. | Any integer | 5 | | --list | Generate a list of commits instead of a single one. | true/false | false |

Example:

ai-committer --provider openai --model gpt-4o --commitType feat --numCommits 3 --list

Environment Variables

You can set environment variables to configure the tool globally.

| Variable | Description | Example Values | Default | | ---------------- | ------------------------------------------- | ------------------- | ----------- | | AI_PROVIDER | The AI provider to use. | ollama, openai | ollama | | OPENAI_API_KEY | API key required for the openai provider. | Your OpenAI API key | undefined |

Set them directly in your terminal:

export AI_PROVIDER=openai
export OPEN_AI_API_KEY=your-api-key

or Create a .env file in your working directory and set the variables:

AI_PROVIDER=openai
OPENAI_API_KEY=your-api-key

Examples

Generate a Single Commit Message

ai-committer --provider openai --model gpt-4o --commitType fix

Generate a List of Commit Messages

ai-committer --provider ollama --list --numCommits 3

Use Environment Variables

  1. Create a .env file:

    AI_PROVIDER=openai
    OPENAI_API_KEY=your-api-key
  2. Run the tool:

    ai-committer

Default Values

| Option | Default Value | | ------------- | ------------- | | AI_PROVIDER | ollama | | MODEL | undefined | | COMMIT_TYPE | undefined | | NUM_COMMITS | 5 | | IS_LIST | false |


Prerequisites

  • Node.js: Ensure Node.js is installed on your system.
  • OpenAI API Key: Required when using the openai provider.

Contributing

Contributions are welcome! Feel free to submit a pull request or open an issue.


Enjoy effortless commit messages with AI Committer! 🚀