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

@catreeo123/vulnscan

v0.2.7

Published

Scan Node.js dependencies for vulnerabilities missing from npm audit

Readme

vulnscan

Scan npm dependencies for vulnerabilities using a local advisory database synced from OSV and GitHub Advisory Database.

Unlike npm audit, vulnscan works offline after the first sync and supports fine-grained severity filtering per project.

Installation

npm install -g @catreeo123/vulnscan

Or from source:

npm install && npm run build && npm link

Usage

# Scan current directory (reads package-lock.json)
vulnscan

# Scan a specific directory
vulnscan scan /path/to/project

# Check a single package
vulnscan check [email protected]

# Force a fresh advisory sync
vulnscan update

# Register the /vulnscan Claude Code skill
vulnscan skill install

# Show help
vulnscan --help

Options

| Flag | Description | |------|-------------| | --format json\|table | Output format (default: table) | | --fail-on <csv> | Severities that exit non-zero, e.g. critical,high (overrides .vulnscanrc) | | --offline, --no-sync | Skip advisory sync — use existing local data | | --dir <path> | Directory for .vulnscanrc lookup (check only) | | --help, -h | Show usage |

Exit codes

  • 0 — clean: no findings at or above --fail-on threshold, no incomplete warnings
  • 1 — findings: one or more findings meet the --fail-on severity threshold
  • 2 — incomplete: advisory data may be missing (e.g. sync failed, git-sourced deps skipped); takes priority over exit 1

JSON output

--format json emits:

{
  "schemaVersion": "1",
  "findings": [
    {
      "name": "lodash",
      "version": "4.17.20",
      "via": "webpack",
      "advisory": {
        "id": "CVE-2021-23337",
        "canonicalId": "GHSA-35jh-r3h4-6jhm",
        "type": "cve",
        "severity": "high",
        "title": "Command Injection in lodash",
        "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-23337"
      },
      "fix": "4.17.21"
    }
  ],
  "warnings": []
}

fix is undefined when no fix is known. advisory.type is "cve" for vulnerabilities or "mal" for malicious package reports. Full schema: docs/output-schema.md.

Configuration

Create .vulnscanrc at your project root or ~ (home wins if both exist):

{
  "failOn": ["critical", "high"],
  "stalenessHours": 24
}

--fail-on on the CLI overrides failOn from the config file.

Environment variables

| Variable | Description | |----------|-------------| | GITHUB_TOKEN | GitHub personal access token — without it, advisory sync is rate-limited to 60 req/hr | | VULNSCAN_DB_PATH | Override the SQLite database path (default: ~/.vulnscan/db.sqlite) |

How it works

On first run, vulnscan downloads the full OSV npm advisory feed and paginates the GitHub Advisory REST API into a local SQLite database. Subsequent scans reuse this cache and only re-sync when it's older than stalenessHours (default: 24h).

Each scan reads your package-lock.json, resolves the full dependency tree (including transitive deps), and checks every package against the local advisory database using semver range matching. Findings are deduplicated across sources using GHSA IDs.

Development

npm test               # run all tests
npm run test:watch     # watch mode
npm run build          # compile TypeScript → dist/

# Run a single test file
npx vitest run src/scanner.test.ts

# Run a single test by name
npx vitest run src/scanner.test.ts -t "scan returns findings"

No lint script is configured — TypeScript strict mode (strict: true) catches type errors at build time.