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

@missb/git-commit-m

v1.0.12

Published

A CLI tool that automatically generates commit messages using AI and commits changes

Readme

git-commit-m

A CLI tool that automatically generates commit messages using AI and commits changes.

Installation

npm install -g @missb/git-commit-m

Or install with pnpm:

pnpm install -g @missb/git-commit-m

Or install with yarn:

yarn global add @missb/git-commit-m

Or use directly with npx:

npx @missb/git-commit-m

Usage

git-commit-m

Automatically generates commit messages using AI and commits changes:

git-commit-m

This command will:

  1. Stage all changes (git add .)
  2. Generate a diff of staged changes
  3. Use an AI model to create a meaningful commit message
  4. Commit with the generated message
  5. Display the time taken for the entire process

Sample Output

$ git-commit-m

Adding all changes to git...
Generating commit message with gemini...
Commit message: feat: Change package name to `@missb/git-commit-m`

The package name has been updated to `@missb/git-commit-m` in `package.json` and all corresponding references in the `README.md` have been changed from `git-commit--message` to `git-commit-m`.
Changes committed successfully.
Successfully processed in 14.19 seconds.

Options

Usage: git-commit-m [options]

CLI tool that automatically generates commit messages using AI and commits changes

Options:
  -n, --no-add-dot              skip the "git add ." step
  -p, --prompt-arg <arg>        specify the prompt argument to pass to the AI tool (default: "-p")
  --provider <provider>         specify the AI provider to use (gemini, qwen, claude, codex, continue, or any string) (default: "gemini")
  --diff <file>                 specify a diff file to use instead of generating one from git
  --no-commit                   dry run mode - generate commit message without committing
  --no-signature                disable adding signature to commit message
  -h, --help                    display help for command

Examples

# Normal usage (uses gemini as default provider)
git-commit-m

# Skip git add . step
git-commit-m --no-add-dot
# or
git-commit-m -n

# Use a custom prompt argument
git-commit-m --prompt-arg "--prompt"
# or
git-commit-m -p "--prompt"

# Use a different AI provider
git-commit-m --provider qwen
git-commit-m --provider claude
git-commit-m --provider codex

# Use a specific diff file instead of generating one from git
git-commit-m --diff path/to/diff.txt

# Dry run mode - generate commit message without committing
git-commit-m --no-commit

# Disable adding signature to commit message
git-commit-m --no-signature

# Combine multiple options
git-commit-m --no-add-dot --prompt-arg "--prompt" --provider qwen --no-commit --no-signature

Supported providers:

  • gemini (default)
  • qwen
  • claude
  • codex
  • cn (continue)
  • Any other string (will attempt to execute as a command)

Requires one of the following AI tools to be installed:

  • gemini (primary)
  • Other AI commit tools (fallback)

Installation links for AI providers:

If no AI tool is available, it will fall back to a generic "Update files" message.

How it works

  1. Adds all changes to git staging area (unless --no-add-dot is specified)
  2. Creates a diff of the staged changes (or uses provided diff file with --diff)
  3. Uses AI to generate a meaningful commit message based on the diff
  4. Appends a signature to the commit message indicating it was generated by @missb/git-commit-m (unless --no-signature is specified)
  5. Commits the changes with the generated message (unless --diff or --no-commit is used)
  6. Displays the time taken for the entire process

Requirements

  • Node.js >= 12
  • Git
  • An AI tool (like gemini) for generating commit messages

Development

This project is written in TypeScript with a modular structure:

  • bin/commit.ts - Main CLI implementation
  • index.ts - Programmatic API entry point

To build:

npm run build

License

MIT