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

auto-commit-msg

v1.0.1

Published

Generate automatic commit messages using artificial intelligence (OpenAI or Gemini), right from the terminal.

Readme

🧠 auto-commit-msg

Generate automatic commit messages using artificial intelligence (OpenAI or Gemini), right from the terminal. Ideal for developers who want speed without losing context and clarity in their commits.

npm version license: MIT node typescript

✨ Features

  • 🤖 Support for OpenAI (gpt-4o) and Google Gemini (gemini-2.0-flash)
  • 🌍 Language: pt or en
  • 🧑‍🎨 Style: default or gitmoji (with emojis following the Gitmoji standard)
  • 🧪 Message preview before committing
  • ✅ Interactive confirmation via CLI
  • 📦 Ready to run with npx

🚀 Installation

  1. Install the package as devDependencies using npm or yarn:
npm install --save-dev auto-commit-msg

or

yarn add --save-dev auto-commit-msg
  1. Create a .env file in the root of your project and add the following environment variables:
COMMIT_LANG=en or pt

COMMIT_STYLE=default or gitmoji

COMMIT_MODEL=openai or gemini

OPENAI_API_KEY=your_openai_api_key
or
GEMINI_API_KEY=your_gemini_api_key

Replace your_openai_api_key or your_gemini_api_key with your actual API keys.

Usage

To use the auto-commit-msg tool, run the following command in your terminal:

npx auto-commit-msg --stage or npx auto-commit-msg

This will:

  1. Stage the changes with git add . if you use --stage.
  2. The package detects changes using git diff --cached
  3. Generate a descriptive commit message using the configured language, style, and AI model.
  4. Displays the message in the terminal
  5. You confirm whether to apply it.
  6. If confirmed, it will create the commit with the generated message.

You can also customize the behavior by passing command-line arguments:

npx auto-commit-msg --lang en --style gitmoji --model openai
npx auto-commit-msg --lang en
npx auto-commit-msg --style gitmoji
npx auto-commit-msg --model gemini
⚠️ Warning: A deprecation warning related to the `punycode` module may appear during execution.
This originates from an indirect dependency (`tsup` → `source-map` → `whatwg-url` → `tr46` → `punycode`)
and does `not affect the CLI's functionality`.

In the meantime, feel free to ignore it safely.

🏁 CLI Flags

| Flag | Description | Example | | :-------- | :---------------------------------- | :---------------- | | --stage | Adds files with git add . | --stage | | --lang | Message language (pt, en) | --lang en | | --style | Commit Style (default, gitmoji) | --style gitmoji | | --model | AI Model (openai, gemini) | --model gemini |

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open a new issue or submit a pull request.

License

MIT

Authors