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

@shilpi1958/code-explainer

v3.0.0

Published

Plain-language explainers for merged GitHub PRs or whole repos, pitched at your learning profile.

Readme

code-explainer

Plain-language explainers for merged GitHub PRs or a whole repository — pitched at you, via a one-time learning profile. Optional interactive quiz so it sticks.

npm install -g @shilpi1958/code-explainer

code-explainer init
# edit ~/.code-explainer/learning-profile.md  (or legacy ~/.pr-explainer/)

code-explainer pr https://github.com/org/repo/pull/42
code-explainer repo              # explain the checkout you're in

The pr-explainer binary is still installed as an alias (legacy shorthand: pr-explainer <PR> without the pr subcommand).

Modes

pr — what just shipped

Point it at any merged PR (number, URL, or owner/repo#N). Reads the diff + description, combines it with your profile, and asks Claude Code for a plain-language explainer.

code-explainer pr 42
code-explainer pr https://github.com/org/repo/pull/42
code-explainer pr org/repo#42 --no-quiz

repo — what this codebase is

Orients non-engineers (or engineers in another domain) to a local checkout. Builds a Graphify knowledge graph, adds recent merges + your profile, and writes a concise orientation.

# also required for repo mode:
uv tool install graphifyy   # or: pipx install graphifyy

cd /path/to/checkout
code-explainer repo
code-explainer repo --no-quiz

If graphify is missing, repo mode exits with install instructions.

Requirements

No separate Anthropic API key for local use — the tool shells out to claude.

Profile

code-explainer init

Creates ~/.code-explainer/learning-profile.md (or keeps using ~/.pr-explainer/ if you already have one). Override with LEARNING_PROFILE or a local ./learning-profile.md.

Output

  • PR explainers → ~/.code-explainer/explainers/ (or legacy path)
  • Repo explainers → …/explainers/repos/
  • Summary prints to stderr; quiz is interactive unless --no-quiz / PR_EXPLAINER_NO_QUIZ=1

GitHub Action (optional)

Auto-generate a PR explainer on merge. Pass Claude credentials and optional PostHog secrets:

- uses: shilpi1958/pr-explainer@v1
  with:
    claude-code-oauth-token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
    posthog-api-key: ${{ secrets.POSTHOG_API_KEY }}
    posthog-host: ${{ secrets.POSTHOG_HOST }}

Analytics (optional)

Copy .env.example to .env for local PostHog capture (POSTHOG_API_KEY / POSTHOG_PROJECT_TOKEN + POSTHOG_HOST). Enables funnel events and $ai_generation for AI Evals.

Troubleshooting

| Symptom | Fix | |---|---| | No profile found | code-explainer init, then edit the profile file | | Bare PR number not found | cd into the repo, or pass a URL / owner/repo#N | | PR not merged | Only merged PRs are supported | | Graphify not found | uv tool install graphifyy | | Claude / gh auth | Run claude once; gh auth login |

gh auth status
claude -p --output-format text <<< "Say hi in one word"
code-explainer --help

License

MIT