JSPM

@cavani21/commit-genie

0.0.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q46310F
  • License MIT

AI-powered CLI to generate Git commit messages from staged diffs

Package Exports

  • @cavani21/commit-genie
  • @cavani21/commit-genie/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 (@cavani21/commit-genie) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

commit-genie

commit-genie logo

Fast, local, AI-powered Git commit message generator. Light weight (if a bit slow)

npm version downloads license bundle size npm install CI provenance


Features

  • โœ๏ธ Generate commit messages from staged Git diffs
  • ๐Ÿค– Works with local AI models (via Ollama)
  • ๐ŸŒ Optional: Use OpenAI or Claude API
  • ๐Ÿ”ง Supports Conventional Commits (--conventional)
  • ๐Ÿง‘โ€๐Ÿ’ป Optional --commit flag to auto-commit
  • ๐Ÿงช Built with TypeScript, lightweight, zero bloat
  • โœ… Cross-platform (Windows/Linux/Mac)
  • ๐Ÿ“ .commitgenrc.json for persistent config
  • ๐Ÿ“ฆ Tiny footprint, zero dependencies for core functionality

Global Installation

npm install -g @cavani21/commit-genie
# or
npx @cavani21/commit-genie --help

Usage

npx commit-genie

# Or manually:
git add .
commit-genie                 # Generates a commit message from staged changes
commit-genie --commit        # Also commits it
commit-genie --conventional  # Format as Conventional Commit

Example Output

feat: add initial CLI support with local AI (Ollama)

Config

You can save settings in a .commitgenrc.json file:

{
  "provider": "ollama",
  "model": "mistral",
  "conventional": true
}

License

MIT ยฉ 2025 cavani21