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

@codexjatin/gai

v1.0.2

Published

Minimal Git + AI CLI tool

Readme

GAI — Git + AI CLI Tool

A minimal, terminal-native CLI tool that supercharges your Git workflow with AI. Use it to automatically generate conventional commit messages, explain terminal errors, and initialize smart repositories.

Installation

Install gai globally via npm:

npm install -g @codexjatin/gai

Development Setup

To contribute or run from source:

  1. Clone the repository
  2. Install dependencies: npm install
  3. Link the package: npm link

Prerequisites

Setup

First, initialize your AI provider (supports Google Gemini and local Ollama):

gai start

This will walk you through an interactive setup to choose your provider, enter your API key, and select a model.

Commands

gai commit

Generates a concise, 1-line conventional commit message. If you have unstaged changes, gai will interactively ask you to select files to stage first.

gai commit

Workflow:

  1. Run gai commit.
  2. Use Space to select/unselect files and Enter to confirm staging.
  3. Review the AI-generated commit message.
  4. Confirm to commit!

Options:

  • -y, --yes: Skip the confirmation prompt and auto-commit immediately.

gai init

A smarter git init. This command will:

  1. Initialize a new local Git repository (or run in the current folder)
  2. Scan your project structure using AI to automatically generate a tailored .gitignore
  3. Optionally create and push to a remote GitHub repository (requires the gh CLI)
gai init

gai explain

Pass an error message or log directly to the AI to get a simple, plain-text explanation and suggested fix.

gai explain "TypeError: undefined is not a function"

You can also pipe terminal output directly into it:

npm run build 2>&1 | gai explain

gai config

Manage your AI settings directly from the terminal without having to run through the interactive setup again. Configurations are namespaced per provider, so switching providers won't overwrite your settings.

# View all config
gai config get

# Switch active provider
gai config switch ollama
gai config switch gemini

# Set specific provider options
gai config set model gemini-2.0-flash
gai config set apiKey <your-new-key>
gai config set endpoint http://localhost:11434

Providers Supported

  • Gemini (Uses the official @google/genai SDK)
  • Ollama (Runs completely locally, no internet connection required)

Configuration

Settings are stored locally in ~/.gai/config.json.

Fun Fact
Every single commit in this project is generated using gai commit.