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

aimsg

v1.0.1

Published

AI-powered git commit messages. Free with Ollama, or use OpenAI/Anthropic/Google.

Readme

commitpilot

AI-powered git commit messages. Free with Ollama. Zero config.

Generate meaningful commit messages from your staged changes using AI.

npm License PRs Welcome


Quick Start

# With Ollama (free, local, no API key needed)
npx aimsg

# Or install globally
npm install -g aimsg
aimsg

That's it. Stage your changes, run aimsg, and get a commit message.

Demo

$ git add .
$ aimsg

  Provider: ollama | Model: llama3.2
  Files: src/auth.ts, src/routes/login.ts
  Generating commit message...

  feat(auth): add JWT-based authentication with refresh tokens

  [Y]es / [e]dit / [r]egenerate / [n]o? y

  Committed!

Features

  • Free with Ollama — no API key needed, runs 100% locally
  • Multi-provider — supports Ollama, OpenAI, Anthropic, and Google
  • Conventional Commits — generates properly formatted conventional commits
  • Interactive — accept, edit, regenerate, or cancel
  • Zero config — works out of the box with Ollama
  • Fast — generates messages in seconds
  • Private — with Ollama, your code never leaves your machine

Providers

Ollama (Default — Free)

Install Ollama, then:

ollama pull llama3.2
aimsg

OpenAI

export OPENAI_API_KEY=sk-...
AUTO_COMMIT_PROVIDER=openai aimsg

Anthropic

export ANTHROPIC_API_KEY=sk-ant-...
AUTO_COMMIT_PROVIDER=anthropic aimsg

Google

export GOOGLE_API_KEY=...
AUTO_COMMIT_PROVIDER=google aimsg

Configuration

All configuration is via environment variables. No config files needed.

| Variable | Default | Description | |----------|---------|-------------| | AUTO_COMMIT_PROVIDER | ollama | Provider: ollama, openai, anthropic, google | | AUTO_COMMIT_MODEL | Auto | Model name (auto-selects best for provider) | | AUTO_COMMIT_CONVENTIONAL | true | Use Conventional Commits format | | OLLAMA_URL | http://localhost:11434 | Ollama server URL |

Default Models Per Provider

| Provider | Default Model | |----------|--------------| | Ollama | llama3.2 | | OpenAI | gpt-4o-mini | | Anthropic | claude-haiku-4-5-20251001 | | Google | gemini-2.0-flash |

Options

aimsg              # Generate and commit
aimsg --dry-run    # Generate without committing
aimsg --help       # Show help

How It Works

  1. Reads your staged git diff (git diff --cached)
  2. Sends the diff to your chosen AI model
  3. Returns a clean, conventional commit message
  4. You accept, edit, regenerate, or cancel

Your diff is truncated to 8000 characters to stay within token limits. Only the diff is sent — no other files or context.

Tips

  • Add to your shell alias: alias ac="aimsg" for quick access
  • Use with Ollama for free: no API costs, no data leaves your machine
  • Custom models: AUTO_COMMIT_MODEL=codellama aimsg

Contributing

PRs welcome. See CONTRIBUTING.md for guidelines.

License

MIT


If this saves you time, give it a star.


Also By OuterSpacee

| Project | Description | |---------|-------------| | Awesome AI Tools | 200+ AI tools across 22 categories | | Build Your Own AI | 150+ tutorials for building AI projects from scratch | | AI Engineering Handbook | Everything you need to build production AI apps |