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

brin

v0.1.16

Published

the credit score for context — security scanning for packages, repos, MCP servers, skills, domains and commits

Readme


your agents are at risk every time they use external context. brin pre-scans packages, skills, and web pages to detect malware, prompt injection, and supply chain attacks.

this repo contains the brin cli — a thin Rust client over the brin API. no sdk, no auth, no signup. a single command returns a score, verdict, and threat data.


install

via npm

npm install -g brin

via shell script

curl -fsSL https://brin.sh/install.sh | sh

usage

brin check <origin>/<identifier>

before your agent acts on any external context, make a single call. brin returns a score, verdict, and any detected threats.

packages

brin check npm/express
brin check npm/[email protected]
brin check pypi/requests
brin check crate/serde
{
  "origin": "npm",
  "name": "express",
  "score": 81,
  "confidence": "medium",
  "verdict": "safe",
  "tolerance": "conservative",
  "scanned_at": "2026-02-25T09:00:00Z",
  "url": "https://api.brin.sh/npm/express"
}

repositories

brin check repo/expressjs/express

MCP servers

brin check mcp/modelcontextprotocol/servers

agent skills

brin check skill/owner/repo

domains and pages

brin check domain/example.com
brin check page/example.com/login

commits

brin check commit/owner/repo@abc123def

flags

| flag | description | |------|-------------| | --details | include sub-scores (identity, behavior, content, graph) | | --webhook <url> | receive tier-completion events as the deep scan progresses | | --headers | print only the X-Brin-* response headers instead of the JSON body |

--details

brin check npm/express --details
{
  "origin": "npm",
  "name": "express",
  "score": 81,
  "verdict": "safe",
  "sub_scores": {
    "identity": 95.0,
    "behavior": 40.0,
    "content": 100.0,
    "graph": 30.0
  }
}

--webhook

brin runs a 3-tier analysis — the LLM tier takes 20–30s. pass a webhook url to receive results as each tier completes rather than waiting:

brin check npm/express --webhook https://your-server.com/brin-callback

events posted to your endpoint:

| event | description | |-------|-------------| | tier1_complete | identity + registry metadata done | | tier2_complete | static analysis done | | tier3_complete | LLM threat analysis done | | scan_complete | final score with graph analysis |

--headers

for fast, scriptable checks without JSON parsing:

brin check npm/express --headers
X-Brin-Score: 81
X-Brin-Verdict: safe
X-Brin-Confidence: medium
X-Brin-Tolerance: conservative

flags can be combined:

brin check npm/express --details --webhook https://your-server.com/cb

what we score

six types of external context that agents consume autonomously — each with a distinct threat model and scoring methodology.

| origin | example | threats detected | |--------|---------|-----------------| | npm / pypi / crate | npm/express | install-time attacks, credential harvesting, typosquatting | | domain / page | domain/example.com | prompt injection, phishing, cloaking, exfiltration via hidden content | | repo | repo/owner/repo | agent config injection, malicious commits, compromised dependencies | | skill | skill/owner/repo | description injection, output poisoning, instruction override | | mcp | mcp/owner/server | tool shadowing, schema abuse, silent capability escalation | | commit | commit/owner/repo@sha | PR injection, security sabotage, backdoor introduction |


how it works

before your agent acts on any external context, make a single GET request. brin returns a score, verdict, and any detected threats. pre-scanned results return in under 10ms — fast enough to sit in the critical path of every agent action, no queues, no cold starts.

brin check npm/express
      |
      v
GET https://api.brin.sh/npm/express
      |
      v
  score · verdict · threats

if brin is unreachable, the agent continues as normal — zero risk to your existing workflow.


for ai agents


environment variables

| variable | default | description | |----------|---------|-------------| | BRIN_API_URL | https://api.brin.sh | override the API endpoint |


local development

git clone https://github.com/superagent-ai/brin-cli
cd brin
cargo build
cargo test

contributing

see CONTRIBUTING.md for details.


license

MIT