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

@mazhu/git-ai

v1.0.0

Published

AI-powered Git assistant — auto commit messages, PR descriptions, code reviews & changelogs

Readme

git-ai 🤖

AI-powered Git assistant — auto commit messages, PR descriptions, code reviews & changelogs.

npm version License: MIT

Features

  • git-ai commit — Generate commit messages from staged diff
  • git-ai pr — Generate PR descriptions from branch changes
  • git-ai review — AI-powered code review with severity ratings
  • git-ai summary — Weekly/monthly code change summaries
  • Zero runtime dependencies — Only you and the AI
  • OpenAI & Claude — Bring your own API key
  • Conventional Commits — Optional conventional format
  • Multilingual — English and Chinese output

Install

npm install -g @mazhu/git-ai

Quick Start

# Configure your API key
git-ai config --api-key=sk-xxx

# Generate & commit
git add .
git-ai commit

# Preview without committing
git-ai commit --dry-run

# Conventional Commits format
git-ai commit --conventional

Commands

git-ai commit

Generate a commit message from your staged changes.

git add .
git-ai commit              # generate and commit
git-ai commit --dry-run    # preview only
git-ai commit -c           # conventional commits format

git-ai pr

Generate a PR description from your branch changes.

git-ai pr                  # auto-detect base branch
git-ai pr --base develop   # specify base branch

git-ai review

AI-powered code review of your branch changes.

git-ai review              # review against default branch
git-ai review --base main  # specify base branch

git-ai summary

Generate a weekly or monthly summary of code changes.

git-ai summary             # weekly (default)
git-ai summary --week      # weekly
git-ai summary --month     # monthly

git-ai config

Manage your configuration.

git-ai config --api-key=sk-xxx                    # set API key
git-ai config --provider=claude                    # use Claude
git-ai config --model=claude-sonnet-4-20250514    # set model
git-ai config --language=zh                        # Chinese output
git-ai config --api-base=https://api.groq.com/openai/v1  # custom endpoint
git-ai config --show                               # show config
git-ai config --reset                              # reset config

Configuration

Config is stored in ~/.git-ai/config.json.

| Option | Default | Description | |--------|---------|-------------| | apiKey | — | Your API key (required) | | provider | openai | openai or claude | | model | gpt-4o-mini | Model name | | apiBase | https://api.openai.com/v1 | API base URL | | language | en | Output language (en or zh) |

Using with OpenAI-compatible APIs

Works with any OpenAI-compatible API:

# Groq
git-ai config --api-base=https://api.groq.com/openai/v1 --model=llama-3-70b

# Together AI
git-ai config --api-base=https://api.together.xyz/v1 --model=meta-llama/Llama-3-70b-chat-hf

# Local (Ollama, LM Studio, etc.)
git-ai config --api-base=http://localhost:11434/v1 --model=llama3

Using with Claude

git-ai config --provider=claude --model=claude-sonnet-4-20250514 --api-key=sk-ant-xxx

How It Works

  1. Reads your git diff/commits
  2. Sends to your configured AI model
  3. Returns structured, actionable output
  4. For commits: directly creates the git commit

Why Zero Dependencies?

Because your commit tool shouldn't bring in 500 sub-dependencies. git-ai uses only Node.js built-in modules (https, child_process, fs, path, os) to call the AI API.

License

MIT © mazhu