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

@mkafonso/guardian

v0.1.4

Published

A CLI tool that analyzes Node.js dependencies, prioritizes risks, and generates actionable HTML reports.

Readme

npm license node

Resumo

O Guardian é uma CLI para análise de dependências que vai muito além do npm audit.

Ele combina análise técnica (vulnerabilidades + reachability) com contexto do mundo real (incidentes recentes), e entrega um relatório HTML pronto para compartilhar.

Tudo focado em responder:

o que realmente importa agora no seu projeto

Features

  • Análise rápida de dependências Node.js
  • Radar com os incidentes mais quentes da semana
  • Priorização real de risco (não só CVE)
  • Sugestões de atualização seguras
  • Detecção de risco de manutenção
  • Relatório HTML bonito e pronto para compartilhar
  • Integração opcional com IA (OpenAI)

Instalação

npm install -g @mkafonso/guardian

ou

npx @mkafonso/guardian analyze .

Uso rápido

Dentro do seu projeto (na raiz, ou passando o path):

guardian analyze .

Isso irá:

  • Ler seu package.json
  • Detectar lockfiles (npm/yarn/pnpm)
  • Avaliar vulnerabilidades + reachability (quando possível)
  • Priorizar riscos e sugerir ações
  • Gerar o relatório HTML

Por padrão, um arquivo será gerado no diretório atual:

guardian-report.html

Abra no navegador e compartilhe com o time.

Opções

guardian analyze [projectPath] [options]
  • --output, -o <file>: caminho do HTML de saída
  • --no-incidents: desabilita o radar de incidentes
  • --no-reachability: desabilita a análise de reachability

Exemplos:

guardian analyze
guardian analyze .
guardian analyze ./my-app --output guardian-report.html

Radar de Incidentes

O Guardian mostra automaticamente:

  • Ataques de supply chain
  • Malware recente em npm
  • Incidentes em vendors (Next.js, React, etc)
  • Vazamentos e compromissos

Sempre focando nos:

6 incidentes mais relevantes da semana

IA (Opcional)

Para enriquecer os dados:

export OPENAI_API_KEY=your_key_here
export GITHUB_TOKEN=your_key_here

Isso adiciona:

  • Explicação dos incidentes
  • Vetor técnico
  • Ações recomendadas
  • Padrões emergentes

Comparação

| Feature | npm audit | Guardian | | --------------------------- | --------- | -------- | | Vulnerabilidades conhecidas | ✅ | ✅ | | Priorização real | ❌ | ✅ | | Incidentes atuais | ❌ | ✅ | | Insights acionáveis | ❌ | ✅ | | Relatório visual | ❌ | ✅ |

Exemplo

git clone https://github.com/mkafonso/guardian
cd guardian
npm install
npm run dev

Filosofia

O Guardian não tenta mostrar tudo.

Ele foca em:

🔥 o que é crítico agora

🧠 o que você deve fazer primeiro

Contribuição

Contribuições são bem-vindas!

  • Issues
  • PRs
  • Ideias