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

git-meld

v0.8.0

Published

CLI tool to generate meaningful commit messages using AI

Downloads

29

Readme

🔄 git-meld

Enhance your git commits with AI-powered commit messages!

git-meld is a CLI tool that uses AI to analyze your changes and generate meaningful, detailed commit messages. It's like having a helpful co-pilot for your git commits! 🚀

✨ Features

  • 🤖 Uses AI to analyze your git diff and generate detailed commit messages
  • 🔄 Powered by OpenRouter - access to multiple AI models
  • 🎯 Considers both staged changes and git status
  • 😊 Adds relevant emojis to make your commits more expressive
  • 🔒 Securely stores your API key in your system's keychain
  • 🚀 Simple to use - just replace git commit with meld
  • 📝 Support for custom commit guidelines via .meld file

📦 Installation

npm install -g git-meld

🛠️ First Time Setup

On first run, git-meld will ask for your OpenRouter API key:

meld
# Follow the prompt to enter your OpenRouter API key

Get your API key from OpenRouter. Your API key will be stored securely in your system's keychain.

By default, git-meld uses the openai/o1-mini-2024-09-12 model, but you can easily switch to any other model available on OpenRouter.

💡 Usage

  1. Stage your changes as usual:
git add .  # or git add <specific-files>
  1. Instead of git commit, use:
meld "brief description"

The tool will analyze your changes and generate a detailed, meaningful commit message!

Commands

  • meld "your message" - Create an enhanced commit message
  • meld --dry "your message" - Preview the commit message without committing
  • meld --choose-model - Select an AI model from available models
  • meld --get-model - Show the currently selected model
  • meld --set-model "model-id" - Set model ID directly (e.g., "anthropic/claude-2")
  • meld --reset-key - Reset the stored API key and model choice
  • meld melt <commit> - Squash all commits down to <commit> and generate a summarized commit message
  • meld --version - Show the current version
  • meld --help - Show help information

Choosing a Model

You can choose from any model available on OpenRouter:

# Interactive model selection
meld --choose-model

# Direct model setting
meld --set-model "anthropic/claude-2"

Custom Commit Guidelines

You can create a .meld file in your repository root to provide additional instructions for commit message generation. These instructions will be included every time a commit message is generated.

Example .meld file:

Follow conventional commits format (feat, fix, docs, etc)
Include ticket number from Jira (e.g., PROJ-123)
Keep subject line under 72 characters

The contents of this file will be added to the AI prompt, helping to maintain consistent commit message style across your project.

📝 Example

$ git add feature.ts
$ meld "add user auth"

# Generated commit message might look like:
✨ feat(auth): Implement user authentication system

- Add JWT token validation middleware
- Create secure password hashing functionality
- Implement session management

🤔 Why git-meld?

"Meld" is a Dutch word meaning "report" or "announce". This tool helps you announce your changes in a more meaningful way, ensuring your git history is clear and informative.

🔑 Security

Your API key is stored securely in your system's keychain, not in plain text files.

📄 License

MIT © 2024

🐛 Issues

Found a bug? Please open an issue!