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

depmender

v2.3.4

Published

Comprehensive CLI tool for dependency management - unified 'depmender fix' command handles all operations: scan, fix, install-missing, remove-unused, update-deps, dedupe, sync, resolve, and more. Supports npm, yarn, pnpm with security audits and real-time

Readme

DepMender

npm version npm downloads License: MIT Node.js Version PRs Welcome

A comprehensive CLI tool that scans JavaScript/TypeScript projects for dependency issues and fixes them automatically. Features advanced diagnostics, unused dependency cleanup, real-time monitoring, and intelligent configuration management.

What it does

DepMender helps you maintain healthy dependencies with 5 simple commands:

  • check - Analyze dependencies and system health (replaces scan + doctor)
  • report - Generate detailed health reports
  • fix - Fix ALL issues with one command (install-missing, remove-unused, dedupe, sync, resolve, and more)
  • upgrade - Upgrade all dependencies to their latest versions
  • init - Initialize configuration file

Unified Fix Command

Unlike other tools that require multiple commands for different operations, DepMender provides ONE command to handle everything:

depmender fix --yes

This single command replaces all of these standalone operations:

  • install-missing - Install missing dependencies
  • remove-unused - Remove unused dependencies
  • dependency-sync - Sync dependencies
  • version-fix / fix-versions - Fix version mismatches
  • update-deps - Update outdated packages
  • cleanup - Clean up broken installations
  • dedupe - Deduplicate dependencies
  • sort - Sort dependencies
  • validate - Validate integrity
  • deep-scan - Deep scan for issues
  • repair - Repair broken packages
  • auto-fix - Auto-fix all issues
  • normalize - Normalize structure
  • optimize - Optimize dependency tree
  • sync - Sync all files
  • resolve - Resolve conflicts

Installation

npm install -g depmender

Quick Start

# Initialize configuration (optional)
depmender init

# Check project dependencies and system health
depmender check

# Get detailed report
depmender report

# Fix ALL issues with one command
depmender fix --yes

# Upgrade all dependencies to latest versions
depmender upgrade --yes

Commands

Core Commands

depmender check

Analyzes your project dependencies and system health (combines scan + doctor functionality).

depmender check                    # Check current directory
depmender check --path ./frontend  # Check specific directory
depmender check --json            # Get JSON output
depmender check --verbose         # Show detailed information

What it checks:

  • Outdated packages and available updates
  • Missing dependencies
  • Broken installations
  • Security vulnerabilities
  • Peer dependency conflicts
  • Version mismatches
  • Node.js environment and version compatibility
  • Project structure (package.json, lockfiles, node_modules)
  • Package manager health

depmender report

Generates detailed health report with issue breakdown.

depmender report                  # Generate detailed report
depmender report --json          # Export as JSON
depmender report --verbose       # Include extra details

depmender fix

Unified command that automatically fixes all dependency issues with backup creation.

This single command handles all fix operations:

  • Install missing dependencies
  • Remove unused dependencies
  • Update outdated packages
  • Fix version mismatches
  • Resolve peer conflicts
  • Deduplicate dependencies
  • Sync package.json with lockfile
  • Repair broken installations
  • Normalize and optimize dependency tree
depmender fix                     # Interactive fix with prompts
depmender fix --yes              # Auto-fix without confirmation
depmender fix --path ./backend   # Fix specific project

depmender upgrade

Upgrade all dependencies to their latest versions.

depmender upgrade                 # Interactive upgrade with prompts
depmender upgrade --yes          # Auto-upgrade without confirmation
depmender upgrade --path ./api   # Upgrade specific project

Features:

  • Upgrades all outdated packages to latest versions
  • Creates automatic backups before changes
  • Shows detailed upgrade plan
  • Risk assessment for each upgrade
  • Safe rollback if issues occur

depmender init

Initialize depmender configuration file.

depmender init                    # Create sample config file
depmender init --force           # Overwrite existing config

Creates: depmender-files/depmender.config.js with customizable options:

  • Scanning rules (max outdated days, allowed vulnerabilities)
  • Auto-fix settings (risk levels, confirmations)
  • Output formatting (colors, verbosity)
  • Integrations (Slack, GitHub)

Note: The configuration file is created in a depmender-files folder in your project root. You may want to add this folder to your .gitignore if you don't want to commit the configuration.

Utility Commands

depmender help

Shows help information for commands.

depmender help                   # General help
depmender help check             # Help for specific command

depmender examples

Shows usage examples and workflows.

depmender examples              # Show usage examples

depmender troubleshooting

Shows troubleshooting guide for common issues.

depmender troubleshooting       # Show troubleshooting guide

Configuration

Create a depmender.config.js file to customize behavior:

module.exports = {
  // Scanning rules
  rules: {
    maxOutdatedDays: 90,           // Allow packages older than 90 days
    allowedVulnerabilities: ['low'], // Ignore low severity vulnerabilities
    excludePackages: [             // Skip these packages
      '@types/*',
      'eslint-*'
    ],
    includeDev: true               // Include devDependencies in scan
  },
  
  // Auto-fix settings
  autoFix: {
    enabled: false,                // Enable automatic fixes
    confirmBeforeFix: true,        // Ask for confirmation
    backupBeforeFix: true,         // Create backup before fixing
    maxRiskLevel: 'medium'         // Only auto-fix low/medium risk
  },
  
  // Output customization
  output: {
    format: 'detailed',            // 'minimal', 'detailed', 'json'
    showSuccessMessages: true,     // Show success messages
    colors: true                   // Enable colored output
  }
};

Global Options

All commands support these global options:

  • -p, --path <path> - Project path to analyze (default: current directory)
  • --json - Output results in JSON format
  • --verbose - Enable verbose output with additional details
  • --quiet - Suppress all logs except errors

Workflows

Daily Development

# Quick health check
depmender check

# Detailed analysis before deployment
depmender report --verbose

# Fix issues automatically
depmender fix --yes

# Upgrade to latest versions
depmender upgrade --yes

CI/CD Integration

# Generate JSON report for CI
depmender check --json > dependency-report.json

# Fail build on critical issues
depmender check --json | jq '.healthScore < 50' && exit 1

# Auto-fix in CI (with caution)
depmender fix --yes && npm test

Project Maintenance

# System health check
depmender check

# Upgrade all dependencies
depmender upgrade --yes

# Verify everything works
npm test

Package Manager Support

  • npm - Full support with package-lock.json
  • Yarn - Full support with yarn.lock
  • pnpm - Full support with pnpm-lock.yaml

Features

  • 5 Simple Commands - check, report, fix, upgrade, init - that's all you need
  • Unified Fix Command - One command (depmender fix) replaces 15+ standalone operations
  • Comprehensive Checking - Detects 6 types of dependency issues plus system health
  • Intelligent Fixing - Smart suggestions with risk assessment
  • Easy Upgrades - Upgrade all dependencies with one command
  • Flexible Configuration - Customize behavior per project
  • Detailed Reporting - JSON/HTML output for integration
  • Security Focus - Vulnerability detection and fixing
  • Performance Optimized - Parallel scanning, caching
  • Lightweight - Under 500KB package size

License

MIT

🤝 Contributing

We welcome contributions! Here's how you can help:

  1. Report Bugs - Open an issue with detailed information
  2. Suggest Features - Share your ideas for improvements
  3. Submit PRs - Fix bugs or add new features
  4. Improve Docs - Help make documentation better
  5. Share Feedback - Let us know how you're using DepMender

Made with ❤️ for the JavaScript/TypeScript community