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

@better-commit/cli

v1.2.0

Published

TypeScript-first conventional commits: commit.config.ts, plugins, optional AI

Readme

better-commit helps you and your AI tools ship consistent commit messages without juggling ad hoc scripts. One config file, one CLI (bc / better-commit), and you are productive in minutes.

The config file is the contract

A typical setup looks like this:

my-app/
├── commit.config.ts          # types, scopes, optional aiSuggest
├── .husky/
│   └── prepare-commit-msg    # bc commit --hook (via git commit)
└── .github/workflows/
    └── commit-check.yml      # bc check

Discovery walks up for commit.config.ts, commit.config.mts, or commit.config.js. Import helpers from @better-commit/cli/config for a typed, small surface area.

Read the documentation for plugins, AI providers, hooks, and CI recipes.

Quick start

npm install -D @better-commit/cli
bc init
bc

bc runs the interactive commit flow. Use bc doctor to verify Node, config load, plugins, and AI providers. Non-interactive bc init supports -q; add -f to replace an existing file.

[!NOTE] The repository includes skills/SKILL.md with full CLI reference for coding agents. Install the package and point agents at that file, or read the docs site when you need more than this README.

A minimal example

bc init creates a starter config. A trimmed version looks like:

import { conventionalCommits, defineConfig } from "@better-commit/cli/config";

export default defineConfig({
  plugins: [conventionalCommits({ types: ["feat", "fix", "docs", "chore"] })],
});
bc doctor   # config loads, plugins listed
bc          # interactive commit
bc check    # same rules in CI

That is enforced commits everywhere — locally, in hooks, and in pipelines. Add aiSuggest when you want message suggestions from staged diffs.

Git hooks

To integrate better-commit with your Git hooks:

bc init --hooks
# Requires Husky: npm install -D husky && npx husky init

Commands

| Command | Description | | ------------------ | ---------------------------------------------------- | | bc / bc commit | Interactive commit (default) | | bc init | Create commit.config.ts | | bc doctor | Verify config loads, list plugins, providers | | bc check | Validate last commit (or --edit / --from--to) | | bc fix | Amend last commit message | | bc retry | Retry commit from cache |

Options

| Option | Commands | Description | | ----------------- | ----------- | ------------------------- | | --no-ai | commit, fix | Skip AI | | --dry-run | commit | Preview message only | | -q, --quiet | init | Skip prompts | | --hooks | init | Install Husky hooks | | -e, --edit | check | Validate COMMIT_EDITMSG | | --from / --to | check | Validate commit range |

Environment variables

| Variable | Description | | ------------------------------------- | ----------------------------------------------------------------- | | BETTER_COMMIT_NO_AI=1 | Disable AI even if aiSuggest is configured | | BETTER_COMMIT_SKIP_HOOK=1 | Skip prepare-commit-msg hook (set automatically by bc commit) | | OPENAI_API_KEY | Optional; required for OpenAI provider | | ANTHROPIC_API_KEY | Optional; required for Anthropic provider | | BETTER_COMMIT_CURSOR_AUTO_APPROVE=1 | Auto-approve Cursor ACP tool permissions (default: prompt) |

Security

  • Diffs are sanitized before AI calls unless your config opts out via allowUnsanitized
  • Cloud AI providers require credentials via environment variables (see above); never commit API keys