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 🙏

© 2025 – Pkg Stats / Ryan Hefner

gpush-ai

v1.1.5

Published

AI-powered git commit message generator and push tool. For Windows users, run 'Set-ExecutionPolicy RemoteSigned -Scope CurrentUser' in PowerShell as admin first.

Readme

🌟 gpush - AI-Powered Git Commit Assistant

Generate perfect commit messages effortlessly with AI!

gpush leverages OpenAI GPT-4o or AWS Bedrock Claude models to craft clear, conventional commit messages and push your changes—all in one command.

🚀 Features

  • AI-Driven Commit Messages: Automatically generates concise, conventional commits from staged changes
  • Multi-Provider Support: Choose between OpenAI or AWS Bedrock (Claude models)
  • Secure Configuration: Encrypted API key storage and environment variables
  • Dry-Run Mode: Preview generated messages without committing
  • Smart Diff Truncation: Handles large diffs gracefully to stay within AI token limits

📦 Installation

npm install -g gpush-ai

Prerequisites:

  • Node.js v18+
  • Git installed
  • API key for OpenAI or AWS credentials for Bedrock access

⚙️ Configuration

1. Set API Key (OpenAI)

gpush config --set-key sk-your-openai-key-here

2. Choose AI Provider & Model

| Command | Description | Example | |---------|-------------|---------| | gpush ai:provider <provider> | Set provider (openai or bedrock) | gpush ai:provider bedrock | | gpush ai:model <model> | Set model (e.g., gpt-4o, Claude models) | gpush ai:model anthropic.claude-3-haiku-20240307-v1:0 | | gpush ai:aws-region <region> | Set AWS region for Bedrock | gpush ai:aws-region us-east-1 |

3. Verify Configuration

gpush status

🛠️ Usage

Generate & Push Commit

gpush push

Options:

  • --dry-run: Preview message without committing
  • --force: Force push changes
  • --branch <name>: Specify target branch

Example Workflow:

git add .
gpush push --dry-run  # Preview message
gpush push            # Commit and push

🔍 All Commands

| Command | Description | |---------|-------------| | gpush push | Main command to generate and push commits | | gpush ai:provider | Switch between OpenAI/Bedrock | | gpush ai:model | Set default AI model | | gpush ai:aws-region | Configure AWS region for Bedrock | | gpush config | Manage API key | | gpush status | Show current configuration |

🌍 Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | MAX_DIFF_LENGTH | Truncate diffs longer than this | 4000 | | GPUSH_ENCRYPTION_KEY | Custom encryption key for config | - |

🚨 Troubleshooting

Common Issues:

  • "No API key configured": Run gpush config --set-key
  • AWS Bedrock Access Denied: Ensure IAM permissions include bedrock:InvokeModel
  • Long Diffs: Increase MAX_DIFF_LENGTH if truncation occurs

Error Codes:

  • 1: Configuration error
  • 3: AI generation failure
  • 4: API connection issue

🔒 Security

  • API keys are encrypted using conf
  • AWS credentials use the default AWS SDK credential chain

🤝 Contributing

Contributions welcome!

  1. Fork the repository
  2. Create a feature branch
  3. Submit a PR with tests and documentation updates

📄 License

MIT

⚡ Inspired by

  • CursorAI
  • Me, myself and I
  • Mom

Happy committing! ✨
Made with ❤️ by Me