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

@ashannpm/git-auto-flow

v1.0.1

Published

Automate git workflows with AI-generated conventional commit messages and automatic fetching

Readme

Git Auto Flow

npm version npm downloads license

The only AI commit tool with native AWS Bedrock support

Automate your git workflow with AI-generated conventional commit messages and automatic fetching. Works seamlessly with Claude Code, AWS Bedrock, or direct Anthropic API.

✨ Why Git Auto Flow?

🎯 Unique Features

  • ☁️ AWS Bedrock Support - Only tool with native Bedrock integration
  • 🔍 Auto-Detection - Works with Claude Code, no setup needed
  • Lightning Fast - 1-3 second commits (30x cheaper than competitors)
  • 📦 One Command - Stage + commit + push in a single command
  • 🔄 Auto-Fetch - Keep repos synced automatically (VS Code + systemd)
  • 🛡️ Fallback Mode - Works even without AI access

🚀 Core Features

  • 🤖 Smart Commits - AI-generated conventional commit messages using Claude
  • 📦 Single Command - Add, commit, and push in one command
  • 🔄 Auto Fetch - Automatically fetch from remote on VS Code startup or daily schedule
  • Conventional Commits - Follows conventional commit standards
  • ⚙️ Configurable - Force API/CLI mode, choose model (Haiku/Sonnet)
  • 💰 Cost Optimized - ~$0.0003 per commit (vs ~$0.009 with other tools)

📊 Quick Comparison

| Feature | git-auto-flow | Other Tools | |---------|---------------|-------------| | AWS Bedrock Support | ✅ | ❌ | | Auto-detection (no config) | ✅ | ❌ | | Speed (response time) | 1-3s | 5-10s | | Auto-fetch | ✅ | Rare | | Fallback mode | ✅ | ❌ | | Single command workflow | ✅ | Varies |

Installation

Global Installation (Recommended)

npm install -g git-auto-flow

Local Development

git clone https://github.com/yourusername/git-auto-flow
cd git-auto-flow
npm install
npm link

🎯 Who Should Use This?

Perfect for:

  • AWS Bedrock users - Only tool with native support
  • Claude Code users - Auto-detects your setup
  • Enterprise teams - AWS compliance, cost-optimized
  • Speed-focused devs - 1-3s commits, not 5-10s
  • Cost-conscious teams - 30x cheaper than alternatives

Setup

1. Configure API Key

The package supports multiple authentication methods:

Option A: Claude Code with AWS Bedrock

  • Automatically detected and uses claude CLI
  • Works with AWS SSO authentication
  • No additional setup needed
  • See BEDROCK_SETUP.md for details

Option B: Claude Code with Standard API

  • API key is automatically detected from ~/.claude/settings.json
  • No additional setup needed

Option C: Without Claude Code

  • Copy .env.example to .env
  • Get your API key from console.anthropic.com
  • Add to .env:
    ANTHROPIC_API_KEY=your_api_key_here

Advanced Configuration (Optional)

You can customize the authentication method and model in .env:

# Force authentication method (auto, api, cli)
GIT_AUTO_FLOW_AUTH_METHOD=auto

# Select model for API mode (haiku, sonnet)
GIT_AUTO_FLOW_MODEL=haiku  # Fast & cheap (recommended)

See CONFIGURATION.md for details.

2. Setup Auto-Fetch (Optional)

For VS Code users:

npm run setup -- --vscode

This creates a VS Code task that automatically runs git fetch when you open the folder.

For Linux users with systemd:

npm run setup -- --systemd --time 09:00

This creates a systemd timer to fetch daily at 9:00 AM.

Usage

Smart Commit

# Add all changes, generate commit message, and commit
npm start

# Or use the CLI directly
npx git-commit-auto

# Add, commit, and push
npx git-commit-auto --push

# Dry run (see generated message without committing)
npx git-commit-auto --dry-run

# Only commit staged changes (don't auto-stage)
npx git-commit-auto --no-add

# Push to a specific remote
npx git-commit-auto --push --remote upstream

Options

  • -p, --push - Push after commit
  • -n, --no-add - Skip staging all files (only commit staged changes)
  • -d, --dry-run - Show generated message without committing
  • -r, --remote <remote> - Remote to push to (default: origin)

How It Works

  1. Stages changes (unless --no-add is used)
  2. Analyzes git diff to understand what changed
  3. Generates commit message using Claude AI following conventional commit standards
  4. Shows the message for review
  5. Commits the changes
  6. Pushes (if --push flag is used)

Conventional Commit Format

The tool generates messages following the Conventional Commits specification:

type(scope): description

[optional body]

[optional footer]

Types:

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation changes
  • style: Code style changes (formatting, missing semicolons, etc.)
  • refactor: Code refactoring
  • perf: Performance improvements
  • test: Adding or updating tests
  • chore: Maintenance tasks
  • ci: CI/CD changes
  • build: Build system changes

Examples

Example 1: Feature addition

$ npx git-commit-auto

🔍 Analyzing changes...
✔ Changes staged
✔ Found 3 changed file(s)

Changed files:
  - src/api/users.js (modified)
  - src/models/user.js (modified)
  - tests/api/users.test.js (new)

✔ Commit message generated

📝 Generated commit message:
────────────────────────────────────────────────────────────
feat(api): add user profile endpoint

Add GET /api/users/:id endpoint to fetch user profiles.
Includes validation and error handling.
────────────────────────────────────────────────────────────
✔ Changes committed

✅ Done!

Example 2: Bug fix with push

$ npx git-commit-auto --push

📝 Generated commit message:
────────────────────────────────────────────────────────────
fix(auth): resolve token expiration issue

Fix bug where expired tokens were not properly invalidated,
causing authentication errors for logged-in users.
────────────────────────────────────────────────────────────
✔ Changes committed
✔ Pushed to origin/main

✅ Done!

Troubleshooting

API Key Issues

If you get "ANTHROPIC_API_KEY not found":

  1. Check if Claude Code is installed: claude --version
  2. If not, create a .env file with your API key
  3. If yes, ensure ~/.claude/settings.json contains your API key

No Changes to Commit

If you see "No changes to commit":

  • Check git status to see if you have any changes
  • Make sure you're in a git repository

VS Code Task Not Running

If auto-fetch doesn't work in VS Code:

  1. Open Command Palette (Ctrl+Shift+P)
  2. Search "Tasks: Run Task"
  3. Look for "Git Fetch on Startup"
  4. Check .vscode/tasks.json was created

🌟 Why This Stands Out

Compared to Other AI Commit Tools

Most tools require OpenAI/GPT API keys and take 5-10 seconds per commit.

git-auto-flow is different:

  • ☁️ Only tool with AWS Bedrock - Perfect for enterprise AWS users
  • 5-10x faster - Uses optimized Haiku model (1-3s vs 5-10s)
  • 💰 30x cheaper - $0.0003 vs $0.009 per commit
  • 🔍 Zero config - Auto-detects Claude Code, Bedrock, or API
  • 📦 Complete workflow - Stage + commit + push + auto-fetch

Real Performance

# Other tools
$ time other-ai-commit
real    0m8.234s  # ~8 seconds
cost    $0.009    # per commit

# git-auto-flow  
$ time git-commit-auto
real    0m1.847s  # ~2 seconds ⚡
cost    $0.0003   # per commit 💰

For 100 commits/month:

  • Other tools: ~14 minutes, $0.90
  • git-auto-flow: ~3 minutes, $0.03 ✅

📝 Contributing

Contributions welcome! This tool is especially valuable for:

  • AWS Bedrock users
  • Claude Code integration improvements
  • Additional authentication methods
  • Performance optimizations

License

MIT © 2026 Ashan Madhuwantha