Package Exports
- gitraven
 - gitraven/dist/index.js
 
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gitraven) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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 gitravenUsing Bun (Recommended for speed)
bun install -g gitravenUsing Yarn
yarn global add gitravenUsing pnpm
pnpm add -g gitravenOne-time Usage (No Installation)
Using npx
npx gitravenUsing bunx
bunx gitravenQuick Start
- Navigate to your git repository
 - Stage your changes: 
git add . - Generate commit message: 
gitravenorgr - 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-runAdvanced 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 --helpWorkflow Examples
# Quick workflow: stage → commit → push
gitraven --all
# Review workflow: generate → review → commit
gitraven --interactive
# Safe workflow: preview only
gitraven --dry-runConfiguration
Create a .env file in your project or home directory:
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-3.5-turboConventional Commit Format
GitRaven follows the Conventional Commits specification:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]Types
feat: New featuresfix: Bug fixesdocs: Documentation changesstyle: Code style changes (formatting, etc.)refactor: Code refactoringtest: Adding or updating testschore: 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 #123Auto-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 --helpLicense
MIT © ErnestCodes