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

git-snark

v1.0.2

Published

A CLI tool that generates snarky commit messages using AI

Readme

git-snark 🤖✍️

npm version

A CLI tool that generates snarky, humorous commit messages from your staged changes using AI. Because let's face it, writing commit messages is hard, and a little humor makes code reviews better.

Fun fact: All commit messages in this repository were generated using git-snark itself. Yes, we eat our own dog food! 🐕

Features

  • 🤖 Uses OpenAI's GPT models to analyze your changes
  • 😏 Generates witty, self-aware commit messages
  • 🎯 Follows conventional commit format
  • ✨ Interactive CLI with multiple options
  • 🔧 Configurable AI model and prompt
  • 🎨 Beautiful terminal output
  • 🔑 Bring Your Own API Key - uses your OpenAI account

Installation

Via npm (recommended)

# Install globally from npm
npm install -g git-snark

Build from source

# Clone the repository
git clone https://github.com/zanderiscoding/git-snark
cd git-snark

# Install dependencies
npm install

# Link the package globally
npm link

Setup

  1. Get an OpenAI API key from OpenAI's platform
  2. Set your API key:
git-snark set-key <key>

Usage

  1. Stage your changes:
git add .
  1. Generate a commit message:
git-snark
  1. Choose what to do with the generated message:
  • Commit with it (instantly)
  • Generate another one
  • Edit it
  • Cancel

Commands

git-snark                   # Generate a commit message for staged changes
git-snark set-key           # Set your OpenAI API key
git-snark unset-key         # Remove your OpenAI API key
git-snark set-model <model> # Set the OpenAI model to use (gpt-4o by default)
git-snark show-model        # Show the current OpenAI model
git-snark edit-prompt       # Edit the AI prompt in the terminal
git-snark show-prompt       # Show the current AI prompt
git-snark reset-prompt      # Reset the AI prompt to default
git-snark help              # Show help message

Configuration

Models

Choose your preferred OpenAI model:

git-snark set-model gpt-4              # More creative, potentially funnier (default)
git-snark set-model gpt-4o-mini        # Fastest, cheapest
git-snark set-model <model>            # Any other model

Custom Prompts

Customize the AI's personality:

git-snark edit-prompt     # Edit the prompt in the terminal
git-snark show-prompt     # View current prompt
git-snark reset-prompt    # Reset to default

Snarky Examples

  • "fix(auth): Removed console.logs because apparently customers can see those"
  • "refactor(css): Replaced !important with actual specificity because I'm growing as a person"
  • "feat(api): Added proper error handling instead of just hoping for the best"
  • "chore(deps): Updated dependencies and sacrificed a goat to npm"

Requirements

  • Node.js 14.x or higher
  • Git
  • An OpenAI API key

Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest features
  • Submit pull requests
  • Add more snark

License

MIT

Contact me

I'm on X @zanderiscoding