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

commeta-cli

v1.0.1

Published

A CLI tool that generates semantic git commit messages using AI/LLM services like Groq

Downloads

5

Readme

Commeta

npm version License: MIT

A powerful CLI tool that generates semantic git commit messages using AI/LLM services like Groq. Automate your commit message writing with intelligent suggestions that follow conventional commit standards.

Features

  • AI-Powered: Uses advanced LLM models to analyze your staged changes and generate meaningful commit messages
  • Conventional Commits: Generates messages following the Conventional Commits specification
  • Multiple LLM Providers: Currently supports Groq API with easy extensibility for other providers
  • Interactive Mode: Review and edit suggestions before committing
  • Non-Interactive Mode: Auto-accept suggestions for CI/CD workflows
  • Git Hook Support: Can be integrated into git hooks for seamless workflow
  • Configurable: Flexible configuration through JSON config files
  • Environment Variables: Secure API key management through .env files

Installation

Global Installation (Recommended)

npm install -g commeta-cli

Local Installation

npm install commeta-cli

Development Setup

git clone <repository-url>
cd commeta
npm install
npm run build

Configuration

Create a .semantic-commitrc.json file in your project root:

{
  "mode": "interactive",
  "llm": {
    "adapter": "groq",
    "model": "llama-3.1-8b-instant",
    "apiKeyEnv": "GROQ_API_KEY"
  }
}

Environment Variables

Create a .env file in your project root:

GROQ_API_KEY=your_groq_api_key_here

Get your Groq API key from Groq Console.

Usage

Basic Usage

# Generate commit message for staged changes
commeta-cli generate

# Auto-accept suggestion and commit
commeta-cli generate --yes

# Run in non-interactive mode
commeta-cli generate -y

Advanced Usage

# Get help
commeta-cli --help
commeta-cli generate --help

# Use with git hooks (pass COMMIT_EDITMSG path)
commeta-cli generate --hook .git/COMMIT_EDITMSG

Development Mode

# Run with ts-node for development
npm run dev -- generate

# Build and run
npm run build
npm start generate

API Reference

CLI Commands

generate [options]

Generate a semantic commit message from staged git changes.

Options:

  • -y, --yes: Accept suggestion and commit non-interactively
  • --hook <path>: Run in hook mode (pass COMMIT_EDITMSG path)
  • -h, --help: Display help for command

Configuration Options

.semantic-commitrc.json

| Option | Type | Default | Description | |--------|------|---------|-------------| | mode | string | "interactive" | CLI interaction mode | | llm.adapter | string | "groq" | LLM provider adapter | | llm.model | string | "llama-3.1-8b-instant" | Model to use for generation | | llm.apiKeyEnv | string | "GROQ_API_KEY" | Environment variable for API key |

Supported LLM Providers

Currently supported:

  • Groq: Fast LLM inference with models like Llama 3.1 8B Instant

Extensible architecture allows easy addition of other providers (OpenAI, Anthropic, etc.).

Examples

Interactive Mode

$ commeta-cli generate

feat: add user authentication

Add comprehensive user authentication system including login, registration, and password reset functionality. This includes JWT token generation, password hashing, and secure session management.

Accept? (y = accept / e = edit / n = abort) [y/e/n]:

Non-Interactive Mode

$ commeta-cli generate --yes
[main abc123] feat: add user authentication
 3 files changed, 156 insertions(+), 23 deletions(-)

Custom Configuration

# Use different model
echo '{
  "mode": "interactive",
  "llm": {
    "adapter": "groq",
    "model": "llama3-70b-8192",
    "apiKeyEnv": "GROQ_API_KEY"
  }
}' > .semantic-commitrc.json

Supported Models

Groq Models

  • llama-3.1-8b-instant (Default - Fast and efficient)
  • llama3-70b-8192 (More capable but slower)
  • mixtral-8x7b-32768 (Mixture of experts model)

Development

Building

npm run build

Testing

npm run dev -- generate

# Or test the built version
npm run build
npm start generate

License

MIT © Dinesh

Changelog

v1.0.1

  • Fixed CLI process exit handling
  • Improved error handling and user feedback
  • Cleaned up codebase and removed unused code
  • Enhanced README with comprehensive documentation

v1.0.0

  • Initial release
  • Groq API integration
  • Interactive and non-interactive modes
  • Conventional Commits support
  • Comprehensive CLI interface