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

gcm-ai

v0.1.1

Published

AI-powered Git commit message generator following Conventional Commits

Downloads

178

Readme

gcm-ai

AI-powered Git commit message generator following Conventional Commits.

Reads your staged changes, sends the diff to an LLM, and generates a clean commit message. You accept, edit, or reject before anything is committed.

Install

npm install -g gcm-ai

Requires Node.js 18+.

Usage

git add .
gcm

First run triggers a one-time setup wizard. After that, just run gcm in any git repository.

$ gcm

  Analyzing staged changes...

  feat(auth): add JWT refresh token rotation

  - Implement automatic token refresh before expiration
  - Add retry logic for failed refresh attempts

  ? [Y] Accept  [e] Edit  [r] Regenerate  [n] Cancel

Setup

Runs automatically on first use, or manually with:

gcm --setup

The wizard asks for:

  • LLM provider (OpenAI or Anthropic)
  • API key (stored locally, never sent anywhere except your chosen provider)
  • Preferred model
  • Commit message language

Configuration is saved to ~/.gcm/config.json with restricted file permissions.

Commands

| Command | Description | |--------------------|--------------------------------------------| | gcm | Generate commit message from staged changes| | gcm --setup | Run or re-run the setup wizard | | gcm --dry-run | Show message without committing | | gcm --verbose | Print diff sent to LLM and raw response | | gcm --provider X | Override provider for this run | | gcm --model X | Override model for this run | | gcm --help | Show usage information | | gcm --version | Show version |

Supported Providers

| Provider | Default Model | Get API Key | |-----------|-------------------------------|------------------------------| | OpenAI | gpt-4o-mini | https://platform.openai.com | | Anthropic | claude-sonnet-4-20250514 | https://console.anthropic.com|

How It Works

  1. Runs git diff --staged in the current repository
  2. Parses changed files to infer a commit scope
  3. Sends the diff to your configured LLM with an optimized prompt
  4. Presents the generated message for your approval
  5. Commits only when you explicitly accept

Privacy

  • Your API key is stored locally in ~/.gcm/config.json with file permissions 0600
  • No telemetry, no analytics, no tracking
  • The only network request is to your chosen LLM provider
  • Diff content is sent to the LLM and not stored or cached anywhere

Development

git clone https://github.com/samcab28/GCM-AI.git
cd gcm-ai
npm install
npm run build
npm test
npm link    # Test the CLI locally

License

MIT