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

@phaktor/whatchanged

v1.0.14

Published

AI-powered changelog generator from git commits

Downloads

778

Readme

whatchanged

AI-powered changelog generator from git commits

Node.js License

Features

  • 🤖 AI-Powered: Generate professional changelogs using OpenAI, Anthropic, or OpenRouter
  • 📊 Smart Parsing: Classifies commits into categories (Added, Changed, Fixed, etc.)
  • 🔍 Git Integration: Reads commits, diffs, and changed files directly from git
  • 💾 Multiple Outputs: Keep a Changelog, Conventional Commits, or raw format
  • 🔄 Fallback Mode: Works without AI using conventional commit parsing
  • 🎨 Beautiful CLI: Interactive prompts with ASCII art

Installation

npm install -g whatchanged

Or run directly with npx:

npx whatchanged init
npx whatchanged generate

Quick Start

  1. Initialize configuration:
whatchanged init
  1. Generate changelog:
# Basic (last commit)
whatchanged generate

# From version to version
whatchanged generate --from v1.0.0 --to v1.1.0

# With context
whatchanged generate --context "Breaking: new API design"

Commands

init

Initialize whatchanged configuration (AI provider, model, etc.)

generate

Generate changelog from git commits

| Option | Description | |--------|-------------| | --from <tag> | Start from a specific tag or commit | | --to <tag> | End at a specific tag or commit (default: HEAD) | | --base <branch> | Base branch for comparison | | --head <branch> | Head branch for comparison | | --max-commits <n> | Maximum commits to analyze (default: 50) | | --context <text> | Additional context for AI | | --output <file> | Write to specific file | | --stdout | Output to stdout only | | --release | Generate release changelog | | --skip-ai | Skip AI, use fallback parser | | --format | Output format: keepachangelog, conventional, free |

config

Manage configuration

whatchanged config --view

Configuration

Config is saved to:

  • Project: .wchanged.json in your project root
  • Global: ~/.config/whatchanged/config.json

Supported providers:

  • OpenAI: GPT-4.1, GPT-4.1 Turbo, GPT-4.1 Mini
  • Anthropic: Claude Sonnet 4, Claude Opus 4, Claude Haiku 4
  • OpenRouter: Multiple providers (Claude, Gemini, GLM, etc.)

Examples

# Analyze commits between versions
whatchanged generate --from v1.0.0 --to v1.2.0

# Compare branches
whatchanged generate --base main --head feature-auth

# Skip AI (uses conventional commit parsing)
whatchanged generate --skip-ai

# Output to file
whatchanged generate --output CHANGELOG.md

# Silent mode (good for CI)
whatchanged generate --stdout --skip-ai > CHANGELOG.md

How It Works

  1. Collect: Reads git commits, diffs, and changed files
  2. Parse: Classifies commits by type (feat, fix, refactor, etc.)
  3. Generate: Sends structured data to AI with context
  4. Format: Outputs in Keep a Changelog format by default

License

MIT