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

@oomfware/cgr

v0.2.1

Published

ask questions about git repositories using Claude Code

Readme

@oomfware/cgr

ask questions about any git repository using Claude Code.

pnpm install -g @oomfware/cgr

usage

# ask a question about a repository
cgr ask github.com/facebook/react "How do hooks track dependencies to avoid stale closures?"

# specify a model (default: haiku)
cgr ask -m sonnet github.com/shadcn-ui/ui "How does the registry system resolve component dependencies?"

# checkout a specific branch
cgr ask github.com/vercel/next.js#canary "Where is dynamic route resolution handled in the app router?"

# ask about multiple repositories at once
cgr ask github.com/facebook/react -w github.com/vercel/next.js "How does Next.js integrate with React's server components?"

# works with any git host
cgr ask tangled.sh/mary.my.id/atcute "How do I validate AT Protocol lexicon schemas at runtime?"

repositories are cached locally at ~/.cache/cgr/repos/<host>/<owner>/<repo>. use cgr clean to manage the cache:

# list cached repos with sizes
cgr clean

# remove a specific repo
cgr clean github.com/facebook/react

# remove all cached repos
cgr clean --all

commands

cgr ask [-m opus|sonnet|haiku] [-d] [-w repo[#branch] ...] <repo>[#branch] <question>
cgr clean [--all | <repo>]

| option | description | | ------------- | ------------------------------------------------- | | -m, --model | model to use: opus, sonnet, haiku (default haiku) | | -d, --deep | clone full history (enables git log/blame/show) | | -w, --with | additional repository to include (repeatable) |

| command | description | | ------- | ----------------------------------------------------------------- | | ask | clone/update a repository and ask Claude Code a question about it | | clean | remove cached repositories |

configuring CLAUDE.md

add this to your ~/.claude/CLAUDE.md or project's CLAUDE.md to let Claude Code know about cgr:

## cgr

Use `npx @oomfware/cgr ask <repo> <question>` to ask questions about external repositories.

- `npx @oomfware/cgr ask github.com/facebook/react "How do hooks track dependencies to avoid stale closures in useEffect?"`
- `npx @oomfware/cgr ask github.com/vercel/next.js#canary "Where is dynamic route resolution handled in the app router?"`
- `npx @oomfware/cgr ask -m sonnet github.com/shadcn-ui/ui "How do I configure path aliases so components install to the right location?"`
- `npx @oomfware/cgr ask github.com/facebook/react -w github.com/vercel/next.js "How does Next.js integrate with React's server components?"`

Broad questions work for getting oriented; detailed questions get precise answers. Include
file/folder paths when you know them, and reference details from previous answers in follow-ups.

Run `npx @oomfware/cgr --help` for more options.

alternatively, a more structured prompt:

# cgr

You can use `@oomfware/cgr` to ask questions about external repositories.

    npx @oomfware/cgr ask [options] <repo>[#branch] <question>

    options:
      -m, --model <model>   model to use: opus, sonnet, haiku (default: haiku)
      -d, --deep            clone full history (enables git log/blame/show)
      -w, --with <repo>     additional repository to include, supports #branch (repeatable)

Useful repositories:

- `github.com/facebook/react` for React internals, hooks, reconciler
- `github.com/vercel/next.js` for Next.js app router, server components
- `github.com/shadcn-ui/ui` for shadcn component patterns, registry system
- `github.com/tailwindlabs/tailwindcss` for Tailwind internals, plugin API
- `github.com/bluesky-social/atproto` for AT Protocol, Bluesky API

Broad questions work for getting oriented; detailed questions get precise answers. Include
file/folder paths when you know them, and reference details from previous answers in follow-ups.

Run `npx @oomfware/cgr --help` for more options.