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

@buygit/cli

v0.5.0

Published

Command-line client for the BuyGit Open Index — search, get, alt, compare, trending, categories, license-compat (with --fail-on for CI gating), audit, deep-audit, explain, stats, diff, init, doctor, watch, completion. CSV / Markdown / JSON output. Wraps t

Downloads

726

Readme

@buygit/cli

Terminal client for the BuyGit Open Index — search 78,094+ curated, license-tagged Git assets from any shell. No MCP client required.

npm license

Companion to @buygit/mcp-server. Same underlying public REST API; this package is for terminal users instead of agents.

Install

# One-off
npx @buygit/cli search "image diff" --license MIT

# Or install globally
npm install -g @buygit/cli
buygit search "image diff" --license MIT

No API key. No signup. Free forever.

Examples

# Search 78k catalog, MIT-only, with risk score on every result
buygit search "react form library" --license MIT --limit 5

# Compact mode — drops ~70% of response tokens
buygit search "image diff" --compact

# Full listing detail with 4-axis signals
buygit get next-saas-starter-pro

# License compatibility verdict (exit 0 = compatible, 1 = incompatible)
buygit license-compat GPL-3.0 MIT
buygit license-compat AGPL-3.0 Apache-2.0

# Audit any external GitHub repo (no need to be in our catalog)
buygit audit https://github.com/sindresorhus/is-online

# License-filtered alternatives
buygit alt vercel/next.js --license MIT

# Catalog stats + data freshness
buygit stats

# JSON output for piping into jq
buygit search "react" --license MIT --json | jq '.results[].slug'

Why this exists

@buygit/mcp-server runs inside Claude Desktop / Cursor / Cline. @buygit/cli is the same answers from your shell. Useful for:

  • CI scripts: buygit license-compat GPL-3.0 MIT && build fails if the dep is incompatible
  • Quick lookups without launching an agent
  • Self-hosted instances (set BUYGIT_BASE_URL=https://your-instance.example.com)

Environment

| Var | Effect | |---|---| | BUYGIT_BASE_URL | Override default https://buygit.com (for self-hosted) |

Exit codes

| Code | Meaning | |---|---| | 0 | success | | 1 | generic error (incompatible license, repo not found, …) | | 2 | invalid arguments |

Pair license-compat with && in CI:

buygit license-compat $DEP_LICENSE MIT && npm install $PACKAGE

License

MIT.