Skip to content
npm 1.2.0Open source CLI

Dependency health scanner (DepGuard)

One command that scans a project for outdated, vulnerable, deprecated and stale packages across npm, pip, Cargo and Go.

Solo build · Open source, CLI, multi-ecosystem scanning

  • TypeScript
  • Node.js
  • Commander.js
  • tsup
  • OSV.dev
  • CLI

Problem

Dependency health is scattered: one tool for outdated versions, another for audits, and nothing at all for deprecated or abandoned packages, least of all across several languages.

What I built

A universal scanner CLI published as @lbharath/depguard. It detects the package manager from the manifest or lockfile, then reports outdated versions, known vulnerabilities, deprecated or yanked releases and stale packages, in a terminal, JSON or Markdown report.

Architecture

  1. Detect · package manager from manifest / lockfile
  2. Scan · per-ecosystem engine
  3. Normalise · one dependency model, semver diffing
  4. Enrich · OSV.dev, registry deprecation, publish dates
  5. Report · terminal, JSON or Markdown

Hard parts and decisions

  • Covers npm, pnpm, yarn and bun, plus pip, Poetry, Pipenv, conda, Cargo and Go modules.
  • Vulnerabilities come from OSV.dev for every ecosystem, with native audits layered on for JavaScript.
  • --fail-on-high exits non-zero, so it can gate a CI pipeline.
  • Monorepo workspace scanning (--workspace) for JavaScript projects.
  • Known limits are documented in the README rather than hidden.

What it shows

Tooling that works across ecosystems, shipped as an installable package.