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

@yukiakai/deptrace

v1.1.2

Published

Dependency auditing and upgrade planning for JavaScript and TypeScript projects.

Downloads

489

Readme

@yukiakai/deptrace

Dependency auditing and upgrade planning for JavaScript and TypeScript projects.

@yukiakai/deptrace helps identify:

  • Vulnerable dependencies
  • Available upgrades
  • Upgrade blockers
  • Dependency transparency information
  • Root dependencies responsible for vulnerable dependency chains

Unlike traditional vulnerability scanners, deptrace does not rely on advisory-level upgrade suggestions alone.

For each vulnerable dependency, deptrace traces the dependency graph back to the root dependencies that introduce it and evaluates whether an upgrade actually removes the vulnerable package from the resolved dependency tree.

This helps avoid remediation recommendations that appear valid but still leave vulnerable dependencies reachable after installation.

Features

  • Security auditing
  • Latest version auditing
  • Root dependency remediation analysis
  • Dependency graph resolution
  • Dependency chain analysis
  • Upgrade planning
  • Workspace and monorepo support
  • JSON and console reports
  • Dependency transparency reporting
  • Conservative handling of non-registry dependency sources

Installation

npm install -g @yukiakai/deptrace

then

npx deptrace

Commands

Security Audit

Analyze project dependencies for known vulnerabilities.

deptrace security

Latest Audit

Analyze available dependency upgrades.

deptrace latest

Examples

Audit the current project:

deptrace security

Check available upgrades:

deptrace latest

Audit multiple projects in a monorepo:

deptrace security --project-dir packages/*

Include prerelease versions:

deptrace latest --include-prerelease

Generate JSON output:

deptrace security --output-format json

Save JSON output:

deptrace security --output-format json > report.json

Options

Common Options

| Option | Description | | ----------------------------- | ----------------------------------------------------------- | | --project-dir <pattern...> | Project directory glob patterns | | --output-format <format> | Output format (console, json) | | --show-transparency | Show dependency transparency information | | --allow-external-sources | Follow non-registry dependencies during dependency analysis | | --include-prerelease | Include prerelease versions | | --minimum-release-age <age> | Minimum release age (e.g. 7d, 24h, 30m) |


External Dependency Sources

By default, deptrace only follows dependencies that can be resolved through package registries.

External dependency sources such as:

  • git:
  • file:
  • directory:
  • workspace:
  • remote tarballs

are ignored during dependency graph expansion unless explicitly enabled.

This behavior makes analysis deterministic and independent from platform-specific package manager resolution behavior.

Enable external source traversal:

deptrace latest --allow-external-sources

Output Formats

Console

Human-readable output optimized for local development.

deptrace latest

JSON

Machine-readable output optimized for automation and CI/CD.

deptrace latest --output-format json

Monorepo Support

Analyze multiple projects using glob patterns.

deptrace security \
  --project-dir packages/*
deptrace latest \
  --project-dir apps/* \
  --project-dir packages/*

Release Age Filtering

New package releases may occasionally contain regressions.

Use release age filtering to avoid recommending versions that were published too recently.

Example:

deptrace latest --minimum-release-age 7d

Supported units:

  • s
  • m
  • h
  • d

Examples:

30m
12h
7d
30d

Why Not npm audit?

deptrace focuses on dependency graph remediation rather than advisory reporting.

npm audit may recommend upgrades based on advisory metadata alone.

deptrace evaluates whether a remediation actually removes or patches the vulnerable dependency in the resolved dependency graph before reporting it as a fix candidate.


License

MIT Yuki Akai