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

@untools/commitgen

v0.4.5

Published

CLI to create generate commit messages

Readme

CommitGen CLI

The AI-Powered Commit Generator

CommitGen is a powerful CLI tool that leverages AI to generate conventional commit messages from your staged changes. It works with 50 free credits (no key required) or your own Google AI API key. It now displays detailed credit usage and cost per generation.

Installation

Install globally using your preferred package manager:

# npm
npm install -g @untools/commitgen

# pnpm
pnpm add -g @untools/commitgen

# yarn
yarn global add @untools/commitgen

Or run correctly via npx (no installation required):

npx @untools/commitgen

Upgrading

To update to the latest version:

npm install -g @untools/commitgen@latest

Quick Start

⚡ Option 1: Free 50 Credits (No Key Required)

Just sign up with your email to start generating commits immediately.

  1. Login:
    commitgen login
  2. Generate: Stage your files (git add .) and run:
    commitgen

🔑 Option 2: Bring Your Own Key (Unlimited)

Use your own Google Gemini API key for unlimited generations.

  1. Configure:
    commitgen config
  2. Select "Vercel AI SDK - Google Gemini (Own Key)".
  3. Enter your API Key.

    Don't have one? Get a free Google AI Key here.

Advanced Features

🔄 Multi-Commit Mode

CommitGen can detect when you've modified unrelated files and suggest splitting them into multiple atomic commits.

commitgen --multi-commit

The CLI will prompt you to confirm the split groups before proceeding.

🔄 Regeneration with Hints

Don't like the suggestions? You can ask the AI to try again, optionally providing a hint to guide the generation (e.g., "Use emojis", "Focus on the UI changes", "Be more descriptive").

Select "🔄 Regenerate suggestions" from the interactive menu.

🧠 History Learning

The tool learns from your previous commit messages to match your personal or team's style. This is enabled by default.

To disable:

commitgen --no-history

🎫 Issue Linking

If your branch name contains an issue ID (e.g., feat/PROJ-123-new-auth), CommitGen will automatically append the ticket reference to your commit message (e.g., feat: add auth logic (PROJ-123)).

To disable:

commitgen --no-issues

Command Reference

Main Commands

| Command | Description | | :---------------------- | :--------------------------------------------------------------- | | commitgen | Default. Analyze staged changes and generate commit options. | | commitgen login | Log in/Sign up for the hosted credit service. | | commitgen config | Switch between Hosted and BYO-Key providers or change models. | | commitgen dashboard | Open the web dashboard to manage credits and history. | | commitgen buy-credits | Purchase additional credits for the hosted service. | | commitgen show-config | Display your current configuration settings. |

Options & Flags

| Flag | Description | | :------------------- | :------------------------------------------------------ | | -p, --push | Automatically push to remote after a successful commit. | | -n, --noverify | Skip git pre-commit hooks (--no-verify). | | -m, --multi-commit | Enable atomic multi-commit suggestions. | | --model <id> | Use a specific model (e.g., gemini-1.5-pro). | | --no-use-ai | Force offline rule-based generation. | | --no-history | Disable style learning from git history. | | --no-issues | Disable automatic issue tracking number linking. |

How to Get a Google AI API Key

  1. Go to Google AI Studio and sign in.
  2. Click "Create API key".
  3. Copy the key string (starts with AIza...).
  4. Run commitgen config and paste it in.

License

MIT