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

@prustogi/buddy

v0.6.0

Published

A friendly onboarding agent for GitHub Copilot CLI, Claude Code CLI, and Codex CLI. Helps newcomers understand any code repository. Stores portable, git-friendly knowledge in .buddy/.

Readme

Buddy 🐶

npm version License: MIT Node.js 18+ Works with GitHub Copilot CLI Works with Claude Code Works with Codex CLI Windows macOS Linux

A friendly agent that helps newcomers understand any code repository. Works with GitHub Copilot CLI, Claude Code CLI, and Codex CLI. Buddy stores all knowledge in a portable .buddy/ folder at the repo root — pure Markdown + small JSON, no databases, no embeddings, no global state. Check it into git and your whole team benefits.


Why Buddy?

You just cloned a repo you've never seen. You have no idea what it does, how to run it, or where to start reading. Buddy fixes that — and leaves behind a beginner-friendly knowledge base your teammates inherit when they clone the same repo.

Install

npm install -g @prustogi/buddy

Requires Node 18+. You'll also want at least one of:

Buddy is the brain definition; the AI CLI is the runtime that talks to it.

Quickstart

cd path/to/some/repo
buddy init        # creates .buddy/, installs the agent for both CLIs, opens the home page

Then load Buddy in whichever AI CLI you use:

GitHub Copilot CLI

copilot
> /agent          # pick "buddy"
> Scan this repo and fill in .buddy/

Claude Code CLI

claude
> @buddy scan this repo and fill in .buddy/

Codex CLI

codex
> scan this repo and fill in .buddy/

(Buddy instructions are pre-loaded via AGENTS.md)

That's it. Buddy populates .buddy/README_FOR_HUMANS.md, GETTING_STARTED.md, ARCHITECTURE.md, and friends.

Commands

| Command | What it does | |---|---| | buddy init | Create .buddy/ and install agents for all CLIs (or auto-open home page if it exists). | | buddy open [doc] | Open .buddy/README_FOR_HUMANS.md (or a named doc like getting-started, architecture, links). | | buddy status | Show whether .buddy/ is current with HEAD. | | buddy precheck | Before commits — list docs likely stale based on git changes. | | buddy link <url> | Save a doc URL with secret redaction. | | buddy agent install | Install the Buddy agent for Copilot CLI (default). | | buddy agent install --claude | Install for Claude Code CLI only. | | buddy agent install --codex | Install for Codex CLI only. | | buddy agent install --all | Install for all CLIs (Copilot CLI, Claude Code, and Codex). | | buddy agent list | Show install status for all agent locations. | | buddy agent path | Print the source paths for both agent prompt files. |

Skip auto-open with --no-open or BUDDY_NO_OPEN=1 (handy for CI).

Agent install locations

buddy init automatically installs agents for both CLIs:

| CLI | Repo-level | User-level | |---|---|---| | GitHub Copilot CLI | .github/agents/buddy.md | ~/.copilot/agents/buddy.md | | Claude Code CLI | .claude/agents/buddy.md | ~/.claude/agents/buddy.md | | Codex CLI | AGENTS.md | ~/.codex/AGENTS.md |

Use buddy agent install --user to install at user level instead of repo level. Use buddy agent list to see what is installed where.

What Buddy writes to .buddy/

.buddy/
├── README_FOR_HUMANS.md      ← the home page
├── GETTING_STARTED.md
├── ARCHITECTURE.md
├── TECH_STACK.md
├── INTEGRATIONS.md
├── CHANGELOG_SUMMARY.md
├── LINKS.md
├── MAP/
│   ├── repo_map.md
│   ├── entry_points.md
│   └── data_flow.md
├── INDEX/
│   └── links.json
├── NOTES/
│   ├── open_questions.md
│   └── assumptions.md
└── manifest.json

All Markdown + small JSON. No databases. No embeddings. No ~/.buddy dir. Commit it, share it, win.

The auto-launch rule

After buddy init (whether .buddy/ was just created or already existed), Buddy opens .buddy/README_FOR_HUMANS.md in your default editor or browser so you immediately land on something useful. Same for buddy open. Suppress with --no-open or BUDDY_NO_OPEN=1.

Honest limitations

  • Not a code search engine. Buddy relies on the AI CLI's file reading for the smart parts.
  • Doesn't fetch external URLs. buddy link stores metadata only — paste contents if you want a summary.
  • First-pass ARCHITECTURE.md is best-effort and clearly marked when inferred.
  • AI-tool dependent. The CLI works standalone for init/open/status/precheck/link, but the smart doc generation needs GitHub Copilot CLI or Claude Code (or equivalent).

Development

npm install
npm test
node bin/buddy.js --help

Tests use Node's built-in node:test runner — zero extra dependencies.

License

MIT — see LICENSE.


Disclaimer: This is a personal project and is not affiliated with or endorsed by Microsoft.