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

komt

v0.1.0

Published

AI-powered git commit message generator

Readme

Komt - AI-Powered Git Commit Tool

Generate conventional commit messages using AI

Komt analyzes your git changes and automatically creates well-formatted conventional commit messages using AI (Claude, OpenAI, or Gemini).

Features

  • AI-powered semantic analysis of code changes
  • Conventional Commits format (type, scope, description)
  • Two modes: simple (single commit) and compose (multi-commit grouping)
  • Multi-provider support: Claude, OpenAI, and Gemini
  • Automatic chunking for large changesets
  • Interactive preview with editor integration
  • Built with TypeScript + Bun

Installation

# Using bun
bun install -g komt

# Using npm
npm install -g komt

Quick Start

  1. Initial Setup
komt config

Follow the prompts to configure your AI provider and API key.

  1. Generate a Commit
# Stage your changes
git add .

# Generate and create commit
komt commit

Usage

Simple Mode (Default)

Generates a single commit message for all staged changes:

komt commit

Options:

  • -a, --all - Stage all changes before committing
  • -e, --edit - Open editor to modify commit message
  • -y, --yes - Skip confirmation prompt

Compose Mode

Intelligently groups changes into multiple logical commits:

komt commit --compose

Komt will analyze your changes and propose multiple commits, grouping related changes together.

Stashing Behavior:

  • With -a flag: All files are committed, no stashing occurs
  • Without -a flag: Unstaged files are safely stashed before creating commits, then automatically restored afterward. This preserves your work-in-progress while committing only staged changes.

Configuration

# Interactive configuration
komt config

# Show current configuration
komt config --show

# Change provider
komt config --set provider=claude

# Test API connection
komt config --test

Configuration File

Configuration is stored at ~/.komt/config.json:

{
  "provider": "claude",
  "providers": {
    "claude": {
      "apiKey": "sk-ant-...",
      "model": "claude-3-7-sonnet-20250219"
    },
    "openai": {
      "apiKey": "sk-...",
      "model": "gpt-4o"
    },
    "gemini": {
      "apiKey": "...",
      "model": "gemini-2.0-flash-exp"
    }
  }
}

Environment Variables

Override configuration with environment variables:

  • KOMT_PROVIDER - Provider name (claude/openai/gemini)
  • KOMT_API_KEY - Generic API key
  • KOMT_CLAUDE_API_KEY - Claude-specific key
  • KOMT_OPENAI_API_KEY - OpenAI-specific key
  • KOMT_GEMINI_API_KEY - Gemini-specific key

Conventional Commits

Komt generates commits following the Conventional Commits specification:

<type>(<scope>): <description>

[optional body]

Types:

  • feat: New feature or functionality
  • fix: Bug fix
  • docs: Documentation changes
  • style: Code formatting only (whitespace, semicolons, indentation) - NOT UI/CSS styling
  • refactor: Code restructuring without changing behavior
  • test: Adding or updating tests
  • chore: Build process, dependencies, tooling

Note: UI/CSS styling improvements should use feat or fix, not style.

Examples

Simple commit:

feat(auth): implement JWT authentication

- Add JWT token generation and validation
- Implement password hashing with bcrypt
- Add authentication middleware

Multiple commits (compose mode):

[1/3] feat(auth): implement JWT authentication
[2/3] test(auth): add authentication tests
[3/3] docs: update API documentation

Development

# Install dependencies
bun install

# Run tests
bun test

# Run CLI locally
bun run src/index.ts

# Type check
bunx tsc --noEmit

License

MIT

Credits

Built with Bun and powered by AI.