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

auto-ai-review

v1.2.0

Published

AI-powered code review tool

Downloads

12

Readme

Auto AI Review

CLI Code Review powered by ChatGPT

Setup

Make sure you have at least Node18 and npx in your path. You'll need an OpenAI API key to use this tool. You can set it up in two ways:

  1. Environment variable: Set OPENAI_API_KEY in your environment
  2. Settings command: Use aair settings --key YOUR_API_KEY

Installation

npm install -g auto-ai-review

Usage

Review Modes

The tool supports three different review modes:

1. Review Staged Changes (Default)

Review changes that are currently staged in git:

aair review

2. Review Specific Files

Review one or more specific files, regardless of git status:

aair files path/to/file1.ts path/to/file2.ts

3. Review Branch Changes

Review changes between branches (defaults to comparing against 'main'):

# Compare feature branch against main
aair branch feature-branch

# Compare between any two branches
aair branch feature-branch develop

Commit Message Generation

Generate AI-powered commit messages for your staged changes:

aair commit

The tool will:

  1. Generate a commit message following best practices
  2. Show you the suggested message
  3. Allow you to edit it if needed (press Enter twice to finish editing)
  4. Ask for confirmation before creating the commit

The generated commit messages follow best practices:

  • Brief summary line (max 50 chars)
  • Detailed bullet points of key changes
  • Focus on WHAT and WHY, not HOW
  • Use imperative mood ("Add feature" not "Added feature")

Settings Management

The tool supports customizable settings that are stored in ~/.aair-settings.json. You can manage these settings using the following commands:

View Current Settings

aair settings --show

Update OpenAI API Key

aair settings --key YOUR_API_KEY

Change AI Model

aair settings --model MODEL_NAME

Default: gpt-4

Customize Review Prompt

aair settings --prompt "Your custom review prompt"

Customize Commit Message Prompt

aair settings --commit-prompt "Your custom commit message prompt"

You can combine multiple settings in a single command:

aair settings --model gpt-4-turbo-preview --prompt "Your custom prompt"

Configuration

Default settings:

  • Model: gpt-4
  • Prompt: Basic code review prompt focusing on code quality
  • Commit Prompt: Generates conventional commit messages with detailed descriptions
  • API Key: Loaded from settings or environment variable OPENAI_API_KEY

All settings are stored securely in ~/.aair-settings.json.

Examples

  1. Review staged changes:
git add .
aair review
  1. Review specific files:
# Review a single file
aair files src/main.ts

# Review multiple files
aair files src/*.ts test/*.ts
  1. Review branch changes:
# Review feature branch against main
aair branch feature/new-feature

# Compare feature branch against develop
aair branch feature/new-feature develop

# Review changes in a PR branch
aair branch pr-123 main
  1. Generate commit messages:
# Stage your changes
git add .

# Generate commit message
aair commit
  1. Update settings:
# Set API key
aair settings --key your-api-key

# Change model and prompts
aair settings --model gpt-4-turbo-preview --commit-prompt "Focus on conventional commits"