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

@sabinm677/ccommit

v0.2.1

Published

AI-powered Git commit message generator with Conventional Commits output.

Downloads

300

Readme

ccommit

Generate Conventional Commit messages from staged Git changes using Claude Code CLI, OpenCode CLI, Codex CLI, Kilo Code CLI, Qwen Code CLI, or Gemini CLI.

Requirements

  • Node 18+ or Bun 1.0+
  • Git 2.0+
  • One supported provider CLI configured and available on PATH (claude, opencode, codex, kilo, qwen, or gemini)
  • Native support for Windows, macOS, and Linux

Usage

ccommit
# or from repo root
bin/ccommit

Installation

Via npm (recommended)

npm install -g @sabinm677/ccommit

From source

git clone https://github.com/sabinm677/ccommit.git
cd ccommit
chmod +x bin/ccommit
ln -sf "$(pwd)/bin/ccommit" ~/.local/bin/ccommit

If needed, add ~/.local/bin to your PATH.

Behavior

Default mode:

  • Generates a commit message from staged changes
  • Shows the message
  • Prompts Create commit? [y/N]
  • Creates commit only when you answer y or yes
  • In non-interactive mode, commit is auto-cancelled unless --yes is used

Show-only mode (no commit created):

ccommit --show
ccommit -s

Override generated first line:

ccommit -m "ABC-1: Some message"
ccommit --message "ABC-1: Some message"

Choose provider for one run:

ccommit --provider opencode
ccommit -p codex
ccommit -p kilo
ccommit -p qwen
ccommit -p gemini

Persist a default provider:

ccommit --set-provider codex
ccommit -sp opencode
ccommit --set-provider=opencode

Options

  • -s, --show: Generate and print message only. Do not prompt or create commit.
  • -y, --yes: Create commit without interactive confirmation.
  • -m, --message <text>: Replace the first line of the generated commit message. Remaining lines are preserved.
  • -p, --provider <claude|opencode|codex|kilo|qwen|gemini>: Select AI provider for this run.
  • -sp, --set-provider <claude|opencode|codex|kilo|qwen|gemini>: Persist default provider to config and exit.
  • -h, --help: Show usage help.
  • -v, --version: Show CLI version.
  • --verbose: Print debug details to stderr, including provider failure diagnostics.

Commit Format

ccommit enforces Conventional Commits with a required multi-line message:

  • Header format: <type>[optional scope][optional !]: <description>
  • At least one non-empty body line is required
  • BREAKING CHANGE: footer is supported

Example output:

feat(parser): improve prompt normalization

Improve normalization to keep body content stable across providers.

ccommit prints the selected provider in the header (including --show mode):

Generated commit message (claude):

Config

Optional config file locations:

  • Windows: %APPDATA%\\ccommit\\config.json
  • macOS/Linux: $XDG_CONFIG_HOME/ccommit/config.json or ~/.config/ccommit/config.json
  • Override on any OS: CCOMMIT_CONFIG_PATH=/custom/path/config.json
{
  "provider": "codex",
  "providers": {
    "claude": { "command": "claude", "args": ["-p"] },
    "opencode": { "command": "opencode", "args": ["run"] },
    "codex": { "command": "codex", "args": ["exec"] },
    "kilo": { "command": "kilo", "args": ["run"] },
    "qwen": { "command": "qwen", "args": ["run"] },
    "gemini": { "command": "gemini", "args": ["-p"] }
  }
}

Precedence for provider/command settings: CLI > env > config > defaults. Default provider: claude. --set-provider updates the config file and can run outside a Git repository.

Exit Codes

  • 0: success
  • 1: expected error (for example not a git repo, no staged changes, provider CLI/auth/network failure)

Development

Run tests:

bun test

Build standalone executables:

bun run build:bin
# or only current platform/arch
bun run build:bin:current

Build outputs are written to dist/:

  • ccommit-darwin-x64
  • ccommit-darwin-arm64
  • ccommit-linux-x64
  • ccommit-linux-arm64
  • ccommit-windows-x64.exe
  • ccommit-windows-arm64.exe

Node compatibility:

  • ccommit is Bun-first, but basic CLI invocation with Node remains supported (for example node bin/ccommit --version).

Test Helpers

For local testing without provider API calls:

  • CCOMMIT_MOCK_MESSAGE="feat: add feature" to bypass AI provider call.
  • CCOMMIT_MOCK_ERROR=AUTH to force auth error.
  • CCOMMIT_MOCK_ERROR=NETWORK to force network error.

Provider env overrides:

  • CCOMMIT_PROVIDER=claude|opencode|codex|kilo|qwen|gemini
  • CCOMMIT_CLAUDE_CMD, CCOMMIT_CLAUDE_ARGS
  • CCOMMIT_OPENCODE_CMD, CCOMMIT_OPENCODE_ARGS
  • CCOMMIT_CODEX_CMD, CCOMMIT_CODEX_ARGS
  • CCOMMIT_KILO_CMD, CCOMMIT_KILO_ARGS
  • CCOMMIT_QWEN_CMD, CCOMMIT_QWEN_ARGS
  • CCOMMIT_GEMINI_CMD, CCOMMIT_GEMINI_ARGS
  • CCOMMIT_PROVIDER_TIMEOUT_MS (optional, default 60000)