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

commit-wizard

v2.0.3

Published

Automagically generate commit messages using AI provider.

Downloads

39

Readme

🧙‍♂️ Commit Wizard

Build Status npm downloads GitHub Release Date npm package NPM License GitHub Repo stars

Automagically generate clear and concise commit messages using your preferred AI provider (Gemini or OpenAI) and Git. Perfect for keeping your Git history clean, organized, and magical! ✨

Commit Wizard Screenshot

🚀 Features

  • AI-powered: Generate meaningful commit messages from your staged changes with Google Gemini (default) or OpenAI.
  • ⚙️ Configurable workflow: Choose providers, print prompts locally, or add context before contacting an API.
  • 📋 Consistent formatting: Optional Conventional Commits enforcement keeps history tidy and predictable.
  • 💻 CLI tool: Simple command-line interface that fits into any Git workflow.
  • 📝 Custom messages: Inject project-specific instructions directly into the prompt.
  • 🗂 Exclude files: Skip changelog noise (lockfiles, docs, etc.) while the tool inspects your diff.

📦 Installation

You can install Commit Wizard globally using npm:

npm install -g commit-wizard

Or use it directly with npx without installation:

npx commit-wizard

🔑 API Key Setup

Commit Wizard talks to third-party LLMs. Set the environment variable that matches the provider you plan to use.

Default provider: Gemini

  1. Create a key at the Google AI Studio.

  2. Export it as GEMINI_API_KEY in your shell:

    export GEMINI_API_KEY="your-gemini-api-key"

Alternate provider: OpenAI

  1. Create a key at the OpenAI platform.

  2. Export it as OPENAI_API_KEY in your shell:

    export OPENAI_API_KEY="your-openai-api-key"

Add the export line to your .bashrc, .zshrc, or shell profile if you want the variable set automatically for future sessions.


⚙️ Usage

Once installed, you can use the tool in any git repository.

  1. Stage your changes as usual:

    git add .
  2. Run Commit Wizard (uses Gemini unless you select otherwise):

    commit-wizard

    Or, with npx:

    npx commit-wizard
  3. Confirm the commit message: After generating the commit message, you'll be asked to confirm if you want to proceed with the commit.

    Commit Wizard Screenshot


🛠️ Options

  • --dry-run, -d: Print the composed prompt without calling an AI provider.
  • --message <text>, -m: Add extra context for the model (e.g. project goals or tricky areas).
  • --exclude <files>, -e: Provide a comma-separated list of files to skip when building the diff.
  • --conventional-commits, -c: Ask the model to format the title using the Conventional Commits spec.
  • --provider <openai|gemini>, -p: Choose the AI backend. Defaults to gemini.

Examples:

commit-wizard --dry-run --message "Focus on API breaking changes"
commit-wizard --provider openai --conventional-commits
commit-wizard --exclude "README.md"

📸 Demo

Check out how easy it is to use Commit Wizard:

Commit Wizard Demo


🧑‍💻 Contributing

We welcome contributions! To get started:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Submit a pull request!

👩‍🚀 Author

Made with ❤️ by Ivan Gonzalez.


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.