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

llmmit

v1.0.7

Published

llm to generate git commit message

Readme

llmmit

llmmit is a tool that uses LLMs (Large Language Models) to generate git commit messages based on your staged changes.

Features

  • 🔍 Analyzes the git diff of your staged changes.
  • 🤖 Calls the LLM API to generate a structured commit message.
  • 📚 Handles large diffs by summarizing effectively (under the hood, though chunking was removed from the direct summarization step).
  • ✅ Prompts for user confirmation before committing.
  • ➡️ Automatically performs the commit if confirmed.
  • 🌍 Supports customizable output language for commit messages.
  • 🚫 Supports ignoring specific file patterns in the diff analysis.
  • ⚙️ Configuration via ~/.llmmitrc file.

Installation

# Using npm
npm install -g llmmit 
# Or using yarn
yarn global add llmmit

Usage

  1. Configure your OpenAI API Key: llmmit needs your OpenAI API key. The recommended method is to set the openai_api_key in the ~/.llmmitrc file located in your home directory. For example, create or edit ~/.llmmitrc and add:

    {
      "openai_api_key": "your-sk-xxxx"
      // You can include other configurations here.
      // For a full example, see the "Configuration" section.
    }
  2. Stage your changes:

    git add <files you want to commit>
  3. Run the command:

    llmmit
  4. Confirm: The tool will show the generated commit message (in green!). Press y (or Enter for default yes) to confirm and commit, or n to cancel.

Configuration

You can customize llmmit's behavior by creating a JSON configuration file at ~/.llmmitrc.

Example ~/.llmmitrc:

{
  "openai_api_key": "sk-xxx",
  "openai_base_url": "https://api.example.com/v1",
  "model": "gpt-4o",
  "temperature": 0.5,
  "output_language": "English",
  "ignorePatterns": [
    "package-lock.json",
    "yarn.lock",
    "dist/",
    "*.log"
  ]
}

Field Descriptions:

  • openai_api_key: (Required) Your OpenAI API key.
  • openai_base_url: (Optional) Custom base URL for the OpenAI API. Defaults to the official OpenAI API address.
  • model: (Optional) The name of the OpenAI model to use. Defaults to 'gpt-3.5-turbo'.
  • temperature: (Optional) Controls the randomness of the output, a value between 0 and 2. Lower values make the output more deterministic, higher values make it more random. Defaults to 0.7.
  • output_language: (Optional) The output language for the generated commit message. Defaults to 'English'.
  • ignorePatterns: (Optional) An array of strings defining file or directory patterns (glob patterns) to be ignored when analyzing the git diff. Defaults to an empty array.

If the configuration file or specific keys are missing, the tool will use default values.

Demo

➜  llmmit git:(main) ✗ llmmit
⚙️ Configuration loaded from /Users/pomelo/.llmmitrc
✔ ✨ Commit message generated!
╭────── Generated Commit Message ──────╮
│                                      │
│   docs: add demo section to README   │
│                                      │
│   - add demo section                 │
│   - update package version           │
│                                      │
╰──────────────────────────────────────╯

✔ Do you want to use this commit message and proceed with the commit? Yes
✔ 🎉 Changes committed!