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

depegraph

v1.0.2

Published

Dependency graph analyzer for Node.js projects

Readme

DepeGraph

A powerful dependency graph analyzer for Node.js projects that visualizes your project's dependencies in an interactive, beautiful graph format.

DepeGraph Example 1 DepeGraph Example 2

Features

  • 🔍 Interactive Visualization: Explore your dependency tree with an intuitive D3.js-powered interface
  • 🌟 Sunburst Layout: Dependencies radiate from root packages like rays of the sun
  • 🏷️ Smart Labeling: Hover to expand truncated package names
  • 🎯 Connection Highlighting: Click or hover on nodes to highlight all connected dependencies
  • 🏢 Workspace Support: Multi-workspace projects are organized and color-coded
  • 🔄 Real-time Analysis: Analyzes package.json, yarn.lock, and package-lock.json files
  • 📱 Responsive Design: Works on desktop and mobile devices
  • 🎨 Beautiful UI: Dark theme with smooth animations and modern design

Installation

Quick Start with npx (Recommended)

# Analyze current directory
npx depegraph

# Use custom port
npx depegraph --port 3000

Global Installation

npm install -g depegraph
DepeGraph

Usage

Basic Usage

# Navigate to your Node.js project
cd my-awesome-project

# Run DepeGraph
npx depegraph

# Browser will automatically open at http://localhost:8831

Advanced Usage

# Analyze a current project folder
npx depegraph

# Use a different port
npx depegraph --port 3000

Command Line Options

depegraph [options]

Options:
  -p, --port <port>     Port number (default: 8831)
  -h, --help           Display help for command

Supported Project Types

DepeGraph works with any Node.js project that uses:

  • npm (package.json + package-lock.json)
  • Yarn (package.json + yarn.lock)
  • pnpm (package.json + pnpm-lock.yaml)
  • Monorepos with workspaces
  • Lerna projects
  • Rush projects

Graph Features

Interactive Controls

  • Hover over nodes to see connection highlights
  • Drag nodes to reposition them
  • Zoom and pan to explore large dependency trees
  • Click on nodes to focus on their connections

Visual Elements

  • 🟢 Green Nodes: Direct dependencies
  • 🔵 Blue Nodes: Root packages/workspaces
  • 🟠 Orange Nodes: Development dependencies
  • 📏 Node Size: Indicates dependency depth
  • 🔗 Connection Lines: Show dependency relationships

Workspace Organization

In monorepo projects, DepeGraph automatically:

  • Groups dependencies by workspace
  • Places each workspace in its own cluster
  • Shows cross-workspace dependencies
  • Labels workspace boundaries

Performance

DepeGraph is optimized for large projects:

  • ✅ Handles 1000+ dependencies smoothly
  • ✅ Efficient force-directed layout algorithms
  • ✅ Smart label rendering (only visible labels are processed)
  • ✅ Debounced hover effects
  • ✅ Minimal memory footprint

Development

Prerequisites

  • Node.js 18+
  • npm, yarn, or pnpm

Setup

# Clone the repository
git clone https://github.com/dsshard/depegraph.git
cd depegraph

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Troubleshooting

Common Issues

Port already in use:

npx depegraph --port 3001

Large projects loading slowly:

  • DepeGraph automatically optimizes for large projects
  • Try filtering to specific workspaces if needed

Browser doesn't open automatically:

  • Manually navigate to http://localhost:8831
  • Check if your system supports the open command

Dependencies not showing:

  • Ensure your project has package.json
  • Run npm install or yarn install first
  • Check that lock files are present

Debug Mode

DEBUG=1 npx depegraph

License

MIT © Steven Green

Changelog

v1.0.0

  • 🎉 Initial release
  • ✨ Interactive dependency visualization
  • 🌟 Sunburst layout algorithm
  • 🏢 Workspace support
  • 📱 Responsive design

Made with ❤️ for the Node.js community

If DepeGraph helped you understand your project better, please give it a ⭐ on GitHub!