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

@tuanle03/aibranch

v1.2.0

Published

AI-powered git branch name generator with smart detection

Readme

🌿 AI Branch

AI-powered git branch name generator - Never think of a branch name again!

npm version npm downloads CI codecov GitHub Package License: MIT

🚀 Features

  • 🤖 Smart Detection - Automatically detect branch type from file changes
  • 🎯 Conventional Commits - Follow standard types (feat, fix, docs, etc.)
  • ⚡️ Auto-Generate - AI analyzes changes and suggests branch names
  • 🔧 Multiple AI Providers - OpenAI, TogetherAI, Ollama, Custom
  • 🎨 Interactive CLI - Beautiful prompts powered by @clack/prompts
  • Instant Creation - Create and checkout branch immediately

📦 Installation

From npm (recommended)

npm install -g @tuanle03/aibranch

From GitHub Packages

# Configure npm to use GitHub Packages
echo "@tuanle03:registry=https://npm.pkg.github.com" >> ~/.npmrc

# Install
npm install -g @tuanle03/aibranch

🔧 Setup

aibranch setup

This will guide you through:

  • Selecting your AI provider
  • Configuring your API key

💻 Usage

Quick Start

# If you have file changes, AI will auto-detect and suggest
aibranch

# Manual mode with description
aibranch -d "Add user authentication"

# Generate with specific type
aibranch -t feat -d "Add payment gateway"

# Auto-create branch
aibranch -c -d "Fix login bug"

Options

aibranch [options]

Options:
  -d, --description <text>    Description of what the branch is for
  -g, --generate <number>     Number of branch names to generate (default: 3)
  -t, --type <type>          Branch type (feat/fix/docs/style/refactor/perf/test/chore/build/ci)
  -c, --create               Automatically create the selected branch

Examples

# Auto-mode: AI detects changes and generates description
git add .
aibranch
# → 🤖 Auto-generate (AI analyzes your changes)

# Generate 5 branch names
aibranch -g 5 -d "Implement payment gateway"

# Generate bugfix branch
aibranch -t fix -d "Fix login redirect issue"

# Generate and auto-create branch
aibranch -c -d "Add email notifications"

🎯 How It Works

Smart Detection

  1. Detects file changes in your working directory
  2. Analyzes file patterns to suggest branch type:
    • .md files → docs
    • .test.ts files → test
    • .github/workflows/ci
    • tsconfig.jsonchore
    • Source files → feat

Auto-Generate Mode

  1. Analyzes your git diff and changed files
  2. Uses AI to generate a clear description
  3. Suggests appropriate branch type
  4. Creates multiple branch name options
  5. You select and create instantly

🤝 Contributing

Inspired by aicommits

📄 License

MIT © tuanle03

🙏 Credits