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

gitraven

v1.0.7

Published

πŸ€– AI-powered commit message generator - automatically create professional git commits using GPT. Supports conventional commits, auto-staging, and smart git workflows.

Readme

GitRaven πŸ¦β€β¬›

An intelligent AI-powered commit message generator that analyzes your git changes and creates industry-standard commit messages following conventional commit format.

Features

  • πŸ€– AI-Powered: Uses OpenAI's GPT models to analyze code changes
  • πŸ“ Conventional Commits: Follows industry-standard commit message format
  • πŸ” Smart Analysis: Analyzes git diff to understand what changed
  • ⚑ Fast & Easy: Simple CLI interface with intuitive commands
  • 🎨 Customizable: Configure AI model, templates, and formatting
  • πŸ›‘οΈ Safe: Preview messages before committing

Installation

Global Installation

Using npm

npm install -g gitraven

Using Bun (Recommended for speed)

bun install -g gitraven

Using Yarn

yarn global add gitraven

Using pnpm

pnpm add -g gitraven

One-time Usage (No Installation)

Using npx

npx gitraven

Using bunx

bunx gitraven

Quick Start

  1. Navigate to your git repository
  2. Stage your changes: git add .
  3. Generate commit message: gitraven or gr
  4. Review and confirm the generated message

Usage

Basic Usage

# Generate commit message for staged changes
gitraven

# Auto-stage changes and generate commit (if no staged changes)
gitraven --auto-stage

# Auto-stage and auto-push (complete workflow)
gitraven --all

# Preview without committing
gitraven --dry-run

Advanced Options

# Generate with custom prompt for more context
gitraven --prompt "Focus on performance improvements"

# Use specific AI model
gitraven --model gpt-4

# Force specific commit type and scope
gitraven --type feat --scope auth

# Interactive mode with step-by-step options
gitraven --interactive

# Auto-stage changes, commit, and push to remote
gitraven --auto-stage --push

# Show all available options
gitraven --help

Workflow Examples

# Quick workflow: stage β†’ commit β†’ push
gitraven --all

# Review workflow: generate β†’ review β†’ commit
gitraven --interactive

# Safe workflow: preview only
gitraven --dry-run

Configuration

Create a .env file in your project or home directory:

OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-3.5-turbo

Conventional Commit Format

GitRaven follows the Conventional Commits specification:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Types

  • feat: New features
  • fix: Bug fixes
  • docs: Documentation changes
  • style: Code style changes (formatting, etc.)
  • refactor: Code refactoring
  • test: Adding or updating tests
  • chore: Maintenance tasks

Examples

Enhanced Commit Messages

GitRaven now generates comprehensive, detailed commit messages:

$ gitraven --all

βœ“ Git repository found
βœ“ Auto-staging all changes
βœ“ Found 3 staged file(s) with 45 changes
βœ“ Commit message generated

πŸ“ Generated commit message:

feat(auth): implement comprehensive JWT token validation with refresh mechanism

Add robust JWT authentication middleware that validates tokens on protected routes.
Implements automatic token refresh, proper error handling for expired tokens,
and secure cookie-based session management. This enhances security and improves
user experience by reducing the need for frequent re-authentication.

Closes #123

Auto-Staging Workflow

$ gitraven
πŸ“ Found unstaged changes but no staged changes.
Options:
1. Stage changes manually: git add .
2. Use auto-stage: gitraven --auto-stage  
3. Use auto-stage + push: gitraven --all

Would you like to stage all changes automatically? (Y/n) y
βœ“ All changes staged
βœ“ Commit message generated
βœ“ Changes committed successfully
πŸš€ Changes pushed to remote repository!

Need help?

help center and setup:

npm info gitraven

npm install -g gitraven
gitraven --help

npx gitraven --help

License

MIT Β© ErnestCodes