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

@scuton/ai-commit

v1.1.0

Published

AI-powered git commit message generator. Conventional commits from your diff.

Readme

Stop writing "fix stuff" and "update things". Let AI analyze your diff and generate meaningful conventional commits.

Highlights

  • Analyzes your git diff and generates conventional commit messages
  • Supports Claude (Anthropic) and GPT (OpenAI)
  • Interactive — approve, regenerate, or edit before committing
  • Auto-detect provider from environment variables
  • Emoji support, multiple languages, configurable style
  • Install as git hook for fully automatic commits
  • Filters lock files and truncates large diffs
  • TypeScript, programmatic API available

Install

npm install -g @scuton/ai-commit

Setup

Set your API key (one of):

# Claude (recommended)
export ANTHROPIC_API_KEY=sk-ant-...

# Or OpenAI
export OPENAI_API_KEY=sk-...

Usage

# Stage changes and generate commit
git add .
aic

# Auto-commit without confirmation
aic --yes

# Preview without committing
aic --dry-run

# Use specific provider
aic --provider openai

# Include emoji
aic --emoji

# Simple style (no conventional commit prefix)
aic --style simple

# Turkish commit messages
aic --language tr

How it works

  1. Reads your staged git diff
  2. Filters lock files, truncates large diffs
  3. Sends diff + file list to AI with commit conventions
  4. Shows suggested message in a box
  5. You choose: Y (commit) / n (regenerate) / e (edit) / q (quit)

Commands

| Command | Description | |---------|-------------| | aic | Generate and commit (default) | | aic config --show | Show current config | | aic config --provider anthropic | Set default provider | | aic hook | Install as git hook | | aic hook --remove | Remove git hook |

Options

| Flag | Description | Default | |------|-------------|---------| | -p, --provider | AI provider (anthropic/openai) | auto-detect | | -s, --style | conventional or simple | conventional | | -l, --language | Message language (en, tr, etc.) | en | | -e, --emoji | Include emoji | false | | -y, --yes | Auto-commit, no prompt | false | | -n, --dry-run | Don't commit | false | | -r, --regenerate | Keep regenerating | false |

Git Hook

Install as automatic commit message generator:

aic hook

Now every git commit will auto-generate a message. Remove with aic hook --remove.

Programmatic API

import { generateCommitMessage } from '@scuton/ai-commit';

const { message, provider } = await generateCommitMessage({
  provider: 'anthropic',
  style: 'conventional',
  emoji: true,
});
console.log(message); // "feat(auth): add JWT refresh token flow"

FAQ

Which provider should I use?

Claude (Anthropic) generally produces better conventional commit messages. GPT-4o-mini is faster and cheaper for simple commits.

Does it send my code to the AI?

It sends the git diff (staged changes only) and file names. Lock files are filtered out. Large diffs are truncated to ~8000 chars.

Can I use it without an API key?

No. You need either an Anthropic or OpenAI API key. The cost is ~$0.001 per commit.

Related

License

MIT © Scuton Technology