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 🙏

© 2024 – Pkg Stats / Ryan Hefner

sandworm

v1.18.0

Published

Beautiful Visualizations For Your App's Dependencies 🪱

Downloads

10,598

Readme

Beautiful Visualizations For Your App's Dependencies 🪱

  • Outputs SVGs
  • Powered by D3
  • Overlays security vulnerabilities
  • Overlays package license info
  • Works with npm, yarn, and pnpm
  • Made by the team behind Sandworm - Easy auditing & sandboxing for your JavaScript dependencies

Sandworm Tooltips

Warning Sandworm does NOT currently support workspaces.

Get Involved

Install

yarn global add sandworm # or npm install -g sandworm

Options

Options:
      --version          Show version number                           [boolean]
      --help             Show help                                     [boolean]
  -o, --output           The name of the output directory, relative to the
                         application path        [string] [default: ".sandworm"]
  -d, --include-dev      Include dev dependencies     [boolean] [default: false]
  -v, --show-versions    Show package versions        [boolean] [default: false]
  -t, --type             Visualization type[string] [choices: "tree", "treemap"]
  -p, --path             The application path    [string] [default: current dir]
      --md, --max-depth  Max depth to represent                         [number]

Chart Types

Treemap

  • Node colors represent the dependency depth;
  • Node surface represents the size of the corresponding directory under node_modules;
  • A dotted pattern in a node background means the package is a shared dependency, required by multiple packages, and present multiple times in the chart;
  • Shared dependency sizes are added to every dependent package, to represent the independent size structure properly; hence, the displayed size might be larger than the actual size on disk;
  • A red package background means the package has direct vulnerabilities;
  • A purple package background means the package depends on other vulnerable packages;
  • Click on a node to make the tooltip persist; click outside to close it;
  • When representing deep dependencies, the surface area of certain packages might reach zero, making them invisible.

Sandworm Treemap Chart

Tree

  • Nodes are grouped by color based on the root dependency that they belong to;
  • Red text in a package name means the package has direct vulnerabilities;
  • Purple text in a package name means the package depends on other vulnerable packages;
  • Click on a node to make the tooltip persist; click outside to close it;
  • By default, the tree chart has a maximum depth of 7, meaning only seven levels of dependencies will be represented, to keep the output readable; you can override this using the --md option.

Sandworm Tree Chart

Samples