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

robo-commitizen

v1.1.5

Published

Add AI-powered Conventional Commit workflows to an existing package-managed project

Downloads

1,648

Readme

robo-commitizen

robo-commitizen adds an AI-assisted Conventional Commit workflow to an existing package-managed project with a single command.

Quick Start

Install the commit flow into a repo that already has a package.json:

pnpm dlx robo-commitizen add
npx robo-commitizen add
yarn dlx robo-commitizen add
bun x robo-commitizen add

Choose a provider up front if you want to skip the prompt, although it will walk you through this.

pnpm dlx robo-commitizen add --provider openai

Then set your provider credentials and commit as usual:

export OPENAI_API_KEY=sk-...

git add .
git commit

What It Does

  • Generates a bunch of files that allow AI to write your commits for you
  • Copies the code into your repo so you can change it/have 0 dependencies
  • Works with existing Commitizen-style config, or creates a starter config for you
  • Supports OpenAI, Gemini, Claude CLI, OpenRouter, and a manual fallback flow
  • Tries to install commitizen for you if it is not already in the repo
  • Can wire up Husky so plain git commit goes through the AI prompt

Commands

robo-commitizen add

Adds the AI commit workflow to an existing package-managed project.

Options:

  • --provider <name>: Choose openai, claude, gemini, or openrouter
  • --config <path>: Path to your commitizen config
  • --yes: Apply the recommended full setup without prompting

Configuration

robo-commitizen looks for existing config in this order:

  • .commit-config.cjs
  • .commit-config.js
  • .czrc
  • .czrc.json
  • package.json commitizen config

If nothing is found, it creates .commit-config.cjs with sensible defaults.

It expects to run in a JavaScript or TypeScript package repo with a package.json, since it updates package metadata and installs missing dependencies through npm, pnpm, yarn, or bun.

Example config

module.exports = {
  commitConfig: {
    types: [
      { name: "feat", description: "A new feature" },
      { name: "fix", description: "A bug fix" },
      // ... more types
    ],
    scopes: [
      { name: "api" },
      { name: "ui" },
      // ... more scopes
    ],
  },
};

Environment Variables

Set the credentials for the provider you want to use:

# OpenAI
export OPENAI_API_KEY=sk-...

# Claude CLI (must be installed separately)
# No key needed, uses: claude <command>

# Gemini
export GEMINI_API_KEY=...

# OpenRouter
export OPENROUTER_API_KEY=...

You can also set provider and model defaults:

export CZ_AI_PROVIDER=openai
export CZ_AI_SMALL_MODEL=gpt-5.4-mini
export CZ_AI_BIG_MODEL=gpt-5.4

How It Works

Running robo-commitizen add copies the commit adapter into .robo-cz, updates your Commitizen path, and can install the Husky hook that routes git commit through the AI prompt.

From there, the commit flow looks like this:

git add <files>
git commit
  → Detects staged changes
  → Calls AI with prompt + diff
  → Suggests a conventional commit
  → User confirms or edits
  → Commit created with conventional format

Architecture

robo-commitizen/
├── bin/cli.js              # Entry point
├── src/
│   ├── commands/
│   │   └── add.js          # Main command
│   ├── .robo-cz/           # Runtime files used in this repo
│   ├── templates/          # Config templates
│   ├── detect/             # Config detection
│   ├── install/            # Installation logic
│   └── utils/              # Utilities
└── package.json

Development

npm install

node bin/cli.js add

npm test

License

MIT