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

@chof64/aicommit

v0.2.1

Published

AI-powered commit message generator using opencode.ai zen

Downloads

286

Readme

@chof64/aicommit

CI

AI-powered commit message generator. Reads your staged git diff, sends it to the opencode.ai zen chat completions API, and writes a conventional-commit message after a quick confirmation prompt.

Requirements

  • Node.js 20+ (uses native fetch)
  • git on PATH
  • An opencode.ai API key exposed as OPENCODE_API_KEY

Install

npm i -g @chof64/aicommit

Configure

Export your opencode.ai API key in your shell rc:

export OPENCODE_API_KEY=<your-key>

Usage

Stage your changes as usual, then run aicommit:

git add .
aicommit

Add a hint to steer the message — useful for non-obvious diffs:

git add src/auth.ts
aicommit fix race in token refresh

Flags:

| Flag | Description | | ----------------- | -------------------------------------------------------- | | --dry-run | Print the generated message, do not commit. | | -v / --verbose| Echo verbose progress to stderr (network, retries). | | -V / --version| Print the version and exit. | | -h / --help | Print the help text and exit. |

You will always be asked to confirm before git commit runs. Press n (or N) to abort; anything else (including just hitting Enter) confirms.

How it works

  1. Runs git diff --cached and aborts if nothing is staged.
  2. Sends the diff (plus any hint) to https://opencode.ai/zen/v1/chat/completions with model big-pickle.
  3. Asks the LLM for a single conventional-commit message (<type>: <description>).
  4. Shows you the result, waits for Y/n, then runs git commit -m.

The full prompt sent to the model is in src/config.ts — see SYSTEM_PROMPT and USER_PROMPT_TAIL.

About

aicommit was created as a personal script to use AI in writing commit messages. It was a simple tool, and a way for me to learn scripting. It started as a Python script (with a shebang) on my Mac, but I found good use for it, so I migrated it to TypeScript and published it to npm.

It may not be as feature rich as other similar tools — still new, and under development — but it's the first project of mine on npm, and the first with (planned) CI/CD workflows that automate development, testing and deployment.

What's next

I'm planning to add a few features as time goes on:

  • Customizable commit types — including support for the Angular convention
  • Multiple AI models — flexibility in which model to use, with OpenAI API compatibility
  • Optimizations — to the current version and the prompt
  • Tests — coverage for the core flow

License

MIT