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

dep-report

v0.0.5

Published

Zero-config CLI tool that generates version-controlled snapshots of dependency risk

Readme

dep-report

Turn your dependency chaos into a daily, version-controlled risk brief.

Zero-config CLI tool that generates version-controlled snapshots of dependency risk.

Installation

npm install -g dep-report
# or
pnpm add -g dep-report
# or
bun add -g dep-report

Or use with npx (no installation needed):

npx dep-report

The Problem

Dependency drift is invisible until it explodes.

You get bombarded with automated PRs but can't tell which ones actually matter. No context, just version bumps. A security advisory drops and you're scrambling to figure out your exposure. A build breaks because some package hasn't been touched in 3 years. Management asks about technical debt and you're pulling together an answer on the spot.

The real issue isn't automation—it's visibility. You need to see what's outdated, understand the risk, and have evidence for your decisions. Not just a flood of PRs.

Renovate/Dependabot create noise. dep-report creates evidence.

The Solution

dep-report gives you a daily, human-readable risk brief, checked into your repo.

Run in your project directory:

dep-report

This will:

  1. Detect your package manager (npm, pnpm, or bun)
  2. Scan for outdated packages
  3. Enrich with registry metadata (publish dates, age)
  4. Generate reports in .dep-report/reports/

The Outcome

You can see at a glance whether you're getting healthier or rotting.

Proof Point:

"Six months ago we had 34 stale dependencies, 9 majors ignored. Today we're at 3 and 1—and we can prove it from the reports in /.dep-report/reports."

Quick Start

Usage

Initialize Configuration

To customize behavior, initialize the configuration:

dep-report init

This creates .dep-report/config.json and .dep-report/notes.json in your project.

Basic Audit

dep-report

Scans for outdated packages and generates reports based on your configuration.

View Reports

dep-report open

Opens the latest HTML report in your default browser.

Reports

Reports are generated in .dep-report/reports/:

  • YYYY-MM-DD_outdated.md - Daily snapshot (markdown)
  • YYYY-MM-DD_outdated.html - Daily snapshot (HTML)
  • latest.md - Always points to the most recent markdown report
  • latest.html - Always points to the most recent HTML report

Configuration

Configuration is stored in .dep-report/config.json. Run dep-report init to create it.

Configuration Options

{
  "staleThreshold": "18 months",
  "ignorePatterns": ["@types/*", "eslint-*"],
  "formats": {
    "markdown": true,
    "html": true
  },
  "concurrency": 5,
  "failConditions": {
    "stale": false,
    "major": false
  },
  "reportEmptyState": true
}

staleThreshold (string)

Duration string indicating when a package is considered "stale". Format: "N days", "N weeks", "N months", or "N years".

Example: "18 months", "90 days", "2 years"

ignorePatterns (string[])

Array of glob patterns to exclude from reports. Uses minimatch for pattern matching.

Examples:

  • ["@types/*"] - Ignore all @types packages
  • ["eslint-*", "@eslint/*"] - Ignore eslint-related packages
  • ["package-name"] - Ignore specific package

formats (object)

Controls which report formats are generated:

  • markdown: Generate markdown reports (.md)
  • html: Generate HTML reports (.html)

concurrency (number)

Number of concurrent registry API requests. Default: 5. Increase for faster processing (but be respectful of rate limits).

failConditions (object)

Exit code conditions for CI/CD integration:

  • stale: Exit with code 1 if any packages exceed staleThreshold
  • major: Exit with code 1 if any packages have major version updates available

reportEmptyState (boolean)

Whether to generate reports when no outdated packages are found. Default: true.

Notes (Decision Log)

Transform tribal knowledge into auditable decisions. Add notes to packages in .dep-report/notes.json:

{
  "react": "BLOCKED: waiting for team migration",
  "lodash": "DEFERRED: Q2 2026 - requires architecture refactor",
  "axios": "ACCEPTED RISK: pinned for stability @platform-team"
}

Notes with keywords (BLOCKED:, DEFERRED:, ACCEPTED RISK:) are automatically highlighted in reports with badges, creating a self-documenting decision log.

Usage Examples

CI/CD Integration

Fail the build if major updates are available:

{
  "failConditions": {
    "major": true
  }
}
dep-report || exit 1

Ignore Dev Dependencies

{
  "ignorePatterns": ["@types/*", "eslint-*", "@eslint/*", "typescript", "prettier"]
}

Only Markdown Reports

{
  "formats": {
    "markdown": true,
    "html": false
  }
}

Custom Stale Threshold

{
  "staleThreshold": "6 months"
}

Edge Cases & Limitations

Exotic Versions

Packages with non-semver versions (e.g., file:, git+, workspace:) are marked as Exotic risk level. Age calculation may not be available for these packages.

Missing Packages

If a package is listed in package.json but not installed, it's marked as NotInstalled.

Registry Connectivity

The tool requires internet connectivity to fetch package metadata from the npm registry. If the registry is unreachable, the tool will exit with an error.

Package Manager Detection

The tool detects package managers by looking for lockfiles in this priority order:

  1. pnpm-lock.yaml → pnpm
  2. bun.lock or bun.lockb → bun
  3. package-lock.json → npm

If no lockfile is found, the tool will exit with an error.

Rate Limiting

The tool respects npm registry rate limits by:

  • Processing packages in batches (default: 5 concurrent requests)
  • Adding a 500ms delay between batches
  • You can adjust concurrency in config, but be mindful of rate limits

Age Calculation

Age is calculated based on when the currently installed version was published, not when the latest version was published. This answers: "How old is the dependency we're actively using?"

Guarantees

Privacy:

  • No tracking, no analytics, no phoning home
  • All data stays local in your repository
  • Registry queries are read-only package metadata

Control:

  • Outputs are plain files under your version control
  • No vendor lock-in, no proprietary formats
  • Works offline with cached data

Transparency:

  • Open source (MIT license)
  • Readable templates, editable notes
  • Deterministic output (same input = same report)

Development

# Install dependencies
bun install

# Run in development mode
bun run dev

# Build for production
bun run build

# Run tests
bun test

# Type check
bun run typecheck

Testing

Quick Test (Fast)

bun test  # Unit + integration tests (<5 seconds)

Sandbox Test (Thorough)

bun run test:sandbox  # Real API calls (~30 seconds)

See sandbox/README.md for details.

Before Releasing

  1. Run bun test (must pass)
  2. Run bun run test:sandbox (must pass)
  3. Visually inspect HTML reports
  4. Run npm run build and test CLI manually