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

gitmage

v0.2.0

Published

Generate conventional commit messages from staged changes using AI

Readme

gitmage

Stop writing commit messages. Stage your changes, run gitmage, pick from 3 AI-generated options in seconds.

CI npm version License: MIT Node.js

Demo

$ git add src/auth.ts
$ gitmage

  gitmage  ·  AI-powered git commits

  ✔ Suggested messages:

  ❯ feat(auth): add JWT token validation middleware
    feat: implement token validation for auth module
    feat(auth): validate incoming JWT tokens on request

    ↻  Regenerate
    ✕  Cancel

  ↑↓ to move  Enter to select

  ✔ Committed: feat(auth): add JWT token validation middleware

Features

  • 3 options every time — pick the best one with arrow keys, or regenerate instantly
  • Free or paid — Groq (Llama 3.3, free) or Claude Haiku (~$0.0001/commit)
  • Multilingual commits--lang=ja for Japanese, --lang=vi for Vietnamese, and more
  • Commit and push in one step--push flag commits then pushes immediately
  • Config file support — persist your preferred provider in ~/.gitmagerc
  • Dry-run mode — preview suggestions without committing

Getting Started

Prerequisites

Install

npm install -g gitmage

Or try without installing:

npx gitmage --dry-run

Set your API key

Groq (free):

# Mac / Linux
export GROQ_API_KEY=gsk_your-key-here

# Windows PowerShell
$env:GROQ_API_KEY="gsk_your-key-here"

Claude (higher quality, ~$0.0001/commit):

# Mac / Linux
export ANTHROPIC_API_KEY=sk-ant-your-key-here

# Windows PowerShell
$env:ANTHROPIC_API_KEY="sk-ant-your-key-here"

The tool auto-detects which key is set. Set one and run.

Usage

# Stage and generate
git add .
gitmage

# Preview without committing
gitmage --dry-run

# Commit and push in one command
gitmage --push

# Force a specific provider
gitmage --provider=claude
gitmage --provider=groq

# Commit message in another language
gitmage --lang=ja   # Japanese
gitmage --lang=vi   # Vietnamese
gitmage --lang=zh   # Chinese

# Prepend a ticket ID
gitmage --prefix="PROJ-123"

Config file

Create ~/.gitmagerc to persist preferences across sessions:

{
  "provider": "claude",
  "language": "en"
}

Priority order: --provider flag → ~/.gitmagerc → auto-detect from env.

Supported Languages

en ja vi zh ko es fr de pt

Type and scope always stay in English — only the description is translated.

Stack

| | | |---|---| | Language | TypeScript 5 | | Runtime | Node.js 18+ | | AI (free) | Groq — Llama 3.3 70B | | AI (paid) | Anthropic — Claude Haiku | | Format | Conventional Commits |

Troubleshooting

Nothing staged — Run git add <files> before running gitmage.

No API key found — Set GROQ_API_KEY or ANTHROPIC_API_KEY in your environment.

Arrow keys not working — Use a modern terminal (Windows Terminal, iTerm2, or any ANSI-compatible shell).

git push failed — Ensure your branch has an upstream: git push -u origin <branch> once, then gitmage --push works from there.

Contributing

Pull requests are welcome. For major changes, open an issue first to discuss what you'd like to change.

License

MIT

Support

If gitmage saves you time on every commit, consider sponsoring on GitHub.