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 🙏

© 2025 – Pkg Stats / Ryan Hefner

commit-by-ai

v1.0.5

Published

AI-powered commit message generator

Readme

commit-by-ai GitHub stars

Git commit message generator - write better commits with AI

cba

commit-by-ai is a powerful command-line tool that leverages advanced AI models to automatically generate meaningful, context-aware Git commit messages based on your staged changes. Say goodbye to generic commit messages like "fix bug" or "update file" and let AI help you write professional, descriptive commits that clearly communicate what changed and why.

Key features

  • AI-powered: Uses state-of-the-art language models to analyze your code changes and generate intelligent commit messages
  • Model flexibility: Supports any text model from OpenRouter, including free and paid options
  • Lightweight & fast: Built with minimal dependencies for optimal performance
  • Persistent configuration: Settings are stored in your home directory, surviving package updates
  • Context-aware: Analyzes git diff output to understand the scope and nature of your changes
  • Rich CLI: Beautiful terminal output with colors and loading indicators

Quick start

Installation

# npm
npm install -g commit-by-ai

# pnpm
pnpm install -g commit-by-ai

# bun
bun add -g commit-by-ai

Configuration

commit-by-ai requires an OpenRouter API key to function. Even free models need authentication.

  1. Get your API key from OpenRouter
  2. Configure the tool:
# Set your OpenRouter API key
cba config set api_key your-api-key-here

# Optional: Set a custom model (defaults to free DeepSeek)
cba config set model openai/gpt-5-mini

Basic usage

After staging your changes, simply run:

# Generate commit message for staged changes
cba

That's it! The tool will analyze your changes and suggest a professional commit message.

Configuration options

View current settings

# Show all configuration
cba config get

# Show specific setting
cba config get model

Recommended models

Free models (Great for getting started):

  • deepseek/deepseek-chat-v3.1:free (Default - excellent quality)
  • z-ai/glm-4.5-air:free

Paid models (Best performance):

  • openai/gpt-5-mini (Best value for money)
  • openai/gpt-5 (Premium quality)
  • openai/gpt-4.1-nano (Fast and affordable)
  • google/gemini-2.5-flash-lite (Quick and capable)

Pro tip: Browse all available models at OpenRouter models and use any model ID you prefer.

Advanced usage

Configuration management

# Set API key
cba config set api_key sk-or-...

# Set preferred model
cba config set model deepseek/deepseek-chat-v3.1:free

# Check current model
cba config get model

# Verify API key is set
cba config get api_key

Configuration storage

Your settings are stored in ~/.cba/.env and persist across package updates. This means you only need to configure once!

How it works

  1. Analyze changes: The tool reads your staged changes using git diff --cached
  2. AI processing: Sends the diff to your chosen AI model with context about generating good commit messages
  3. Message generation: The AI analyzes the code changes and generates a clear, descriptive commit message
  4. Output: Displays the suggested commit message for you to review and use

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

MIT © Yerofey S.

Show your support

If you find this tool helpful, please consider:

  • Starring the repository on GitHub
  • Reporting bugs or suggesting features
  • Sharing with your developer friends

Created by Yerofey S.