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

@dharminnagar/bruh

v0.1.1

Published

AI-powered git commit range summarizer CLI

Readme

bruh - Git Commit Summarizer

A Bun CLI that explains what changed in git history after a base commit by combining:

  • Commit messages
  • Full commit diffs (with safe truncation for large patches)
  • AI-generated analysis (OpenAI, Claude, or Cloudflare Workers AI)

Install

Prerequisite: Bun must be installed on the machine where bruh runs.

Global install from npm:

npm install -g bruh

Or run without installing globally:

npx bruh --help

For local development in this repo:

bun install

First-run setup

Run interactive setup once:

bruh --init

Interactive prompts use @clack/prompts and setup now provides provider-specific model choices from a list (with a custom model option). For Cloudflare, model choices are fetched dynamically from your account when available, with built-in fallback options.

This stores provider and API key in a local config file:

  • macOS: ~/Library/Application Support/bruh/config.json
  • Linux: $XDG_CONFIG_HOME/bruh/config.json or ~/.config/bruh/config.json

If config is deleted or key is missing, setup is prompted again automatically.

Usage

Analyze commits after a base commit hash:

bruh --commit <commit-hash>

or positional style:

bruh <commit-hash>

Options

  • -c, --commit <hash>: base commit hash
  • -p, --provider <name>: openai | claude | cloudflare
  • -k, --api-key <key>: override API key for current run
  • -m, --model <model>: override model for current run
  • --config <path>: custom config path
  • -f, --format <format>: text | json | markdown (default: text)
  • -o, --output <path>: write report to a file
  • --init: run interactive setup
  • -h, --help: help text

Output formats

  • text: human-readable terminal report
  • json: machine-readable report for automation
  • markdown: markdown report for docs/changelogs

In interactive terminals, the CLI now includes progress indicators for key analysis stages and a visually clearer text report hierarchy for faster scanning. When output is non-interactive (for example piped in CI), it falls back to plain deterministic logs.

Example markdown export:

bruh <commit-hash> --format markdown --output commit-report.md

Provider notes

  • OpenAI uses https://api.openai.com/v1/chat/completions
  • Claude uses https://api.anthropic.com/v1/messages
  • Cloudflare Workers AI requires both API token and account ID

For Cloudflare, setup prompts for account ID and stores it in config.

Development

bun run check
bun run lint
bun run start -- --help

Help and recipes

bun run src/index.ts --help

The help output includes a quick-start path and common recipes for setup, analysis, and exports.