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

whatdiditdo

v0.2.0

Published

See what your AI coding agent actually did. One command after any AI session.

Readme

whatdiditdo

npm License: MIT TypeScript

You let the AI cook. Now find out what it actually did.

whatdiditdo.doruk.ch · npm

One command to see everything your AI coding agent changed. Works after any AI coding session — Cursor, Copilot, Aider, Windsurf, and more.

Quick Start

Run in any git repo after an AI session:

npx whatdiditdo

That's it. No install needed.

Development

npx whatdiditdo

That's it. Run it in any git repo after an AI session.

What you get

  • Files changed — added, modified, deleted with line counts
  • Stats — total lines added/removed, new dependencies
  • AI summary — plain-english explanation of what happened (AI-powered)
  • Security flags — catches hardcoded API keys, modified .env files, committed secrets
  • Quick share — copy-paste one-liner for Slack/Discord
  • Emoji summary — compact one-line recap printed after every run

Auto-generate PR descriptions

The killer feature. After an AI session:

npx whatdiditdo --pr

Generates a ready-to-paste PR title and body with:

  • Summary of changes
  • File change table
  • New dependencies listed
  • Security warnings
  • Test plan checklist

Pipe it: npx whatdiditdo --pr --no-ai | pbcopy

Flags

| Flag | What it does | |------|-------------| | npx whatdiditdo --no-ai | Skip AI summary, just stats | | npx whatdiditdo --pr | Generate a PR title and description | | npx whatdiditdo --md | Save markdown report | | npx whatdiditdo --last N | Review the last N commits | | npx whatdiditdo --json | Machine-readable JSON output | | npx whatdiditdo --hook | Install post-commit git hook | | npx whatdiditdo --unhook | Remove post-commit git hook | | npx whatdiditdo --undo | Revert AI changes | | npx whatdiditdo --web | Open HTML report in browser | | npx whatdiditdo --blame-agent | Detect which AI tool made the changes | | npx whatdiditdo --notify <url> | Send results to a webhook (Slack, Discord, or generic) |

Review past commits

# See what happened in the last 3 commits
npx whatdiditdo --last 3

Quick share

Every run prints a one-line emoji summary you can paste into Slack or Discord:

📊 4 files · +120 -30 · 2 new deps

Security scanning

Automatically flags:

  • Hardcoded API keys and tokens
  • Modified .env files
  • Private keys (RSA, etc.)
  • Credentials in URLs

Auto-run after every commit

Install a git hook so whatdiditdo runs automatically after every commit:

npx whatdiditdo --hook

To remove it:

npx whatdiditdo --unhook

Undo AI changes

Review what changed and selectively revert:

npx whatdiditdo --undo

Lists all changed files with a preview, then lets you revert individual files or the entire last commit.

HTML report

Open a styled HTML report in your browser:

npx whatdiditdo --web

Includes diffs, file lists, security flags, and AI summary in a dark-themed dashboard.

Blame agent

Detect which AI tool made the changes:

npx whatdiditdo --blame-agent

Checks commit messages, tool-specific config files, and git settings to identify the agent (Cursor, Copilot, Aider, Windsurf, etc.).

Webhook notifications

Send results to Slack, Discord, or any webhook:

npx whatdiditdo --notify https://hooks.slack.com/services/...
npx whatdiditdo --notify https://discord.com/api/webhooks/...

Auto-detects the platform and formats the payload accordingly. For unknown URLs, sends a plain JSON summary.

Requirements

  • Node.js 18+
  • Git
  • AI CLI — optional, only needed for AI summary

Development

git clone https://github.com/peaktwilight/whatdiditdo
cd whatdiditdo
npm install
npm run build

Full disclosure

This tool was vibe-coded by an AI agent. We used whatdiditdo to audit its own creation. It's turtles all the way down.

License

MIT