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

dependency-therapist

v0.3.0

Published

πŸ₯ AI-powered dependency health diagnostics for Node.js projects

Readme

πŸ₯ Dependency Therapist

Is your project healthy?

Dependency Therapist is an AI-powered analysis tool that diagnoses the health of Node.js project dependencies and visualizes technical debt.

Using a medical diagnosis metaphor, it makes dependency health status easy to understand and visualize.

✨ Features

  • 🎯 Overall Health Score: Evaluate project dependencies with a 0-100 score
  • πŸ” Symptom Detection: Automatically detect problematic packages (7 types)
  • πŸ’Š Prescriptions: Suggest specific improvement strategies
  • πŸ“Š Detailed Analysis: Individual evaluation of freshness, security, complexity, maintainability, and performance
  • πŸ”’ Security Scanning: npm audit integration for vulnerability detection
  • πŸ“ˆ Terminal Charts: Interactive ASCII charts and gauges
  • 🌐 HTML Reports: Beautiful, responsive HTML report generation
  • πŸ”§ Auto-Fix: Automatic dependency healing with backup
  • 🌍 i18n Support: English and Japanese language support
  • πŸš€ CI/CD Ready: Threshold checking and JSON output

πŸ“¦ Installation

npm install -g dependency-therapist

Or run directly with npx:

npx dependency-therapist diagnose

πŸš€ Usage

Basic Diagnosis

dependency-therapist diagnose

Options

# Diagnose a specific project
dependency-therapist diagnose --path /path/to/project

# Show simple summary only
dependency-therapist diagnose --simple

# Output in JSON format
dependency-therapist diagnose --json

# Generate HTML report
dependency-therapist diagnose --html report.html

# Show interactive terminal charts
dependency-therapist diagnose --charts

# Use Japanese language
dependency-therapist diagnose --lang ja

# Use English language
dependency-therapist diagnose --lang en

Language Support

The CLI supports English and Japanese. Language is detected automatically from your system locale (LANG environment variable), or you can specify it explicitly:

# Japanese output
dependency-therapist diagnose -l ja

# English output
dependency-therapist heal --lang en --dry-run

Auto-Fix (Heal Command)

# Auto-fix dependencies
dependency-therapist heal

# Preview fixes without applying
dependency-therapist heal --dry-run

# Force fixes including breaking changes
dependency-therapist heal --force

# Skip confirmation prompt
dependency-therapist heal --yes

CI/CD Integration

# GitHub Actions example
- name: Dependency Health Check
  run: |
    npx dependency-therapist diagnose --simple

Exits with code 1 if score is below 60.

πŸ“Š Sample Output

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Project Health Diagnosis Report                                    β”‚
β”‚                                                                    β”‚
β”‚ Overall Health Score: 72/100 🟑 Needs Attention                   β”‚
β”‚                                                                    β”‚
β”‚ πŸ“Š Detailed Scores:                                                β”‚
β”‚ β”œβ”€ Freshness: 45/100 πŸ”΄ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘                      β”‚
β”‚ β”œβ”€ Security: 88/100 🟒 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘                       β”‚
β”‚ β”œβ”€ Complexity: 62/100 🟑 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘                     β”‚
β”‚ β”œβ”€ Maintainability: 71/100 🟑 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘                β”‚
β”‚ └─ Performance: 80/100 🟒 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“‹ Summary:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Total Dependencies: 45
Outdated Packages: 12
Deprecated Packages: 2
Average Age: 8 months
Detected Symptoms: 3

πŸ₯ Detected Symptoms:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

⚠️  Severity: HIGH
Symptom: "Update Delay Syndrome"
Description: 12 packages are outdated (including 3 major updates)
Prescription:
  1. Check with npm outdated
  2. Implement gradual updates
  3. Review CHANGELOG for breaking changes

🎯 Scoring Criteria

Overall Score

  • 🟒 80-100: Healthy - Good condition
  • 🟑 60-79: Needs Attention - Room for improvement
  • πŸ”΄ 0-59: Unhealthy - Urgent action required

Score Categories

  • Freshness: Evaluates package recency
  • Security: Deprecated packages and security risks
  • Complexity: Number and complexity of dependencies
  • Maintainability: Ease of maintenance
  • Performance: Impact on build and runtime

πŸ” Detected Symptoms

| Symptom | Description | |---------|-------------| | Security Vulnerability Infection | npm audit vulnerabilities detected | | Clone Infection | Duplicate packages with multiple versions | | Zombie Package Infection | Deprecated or not updated for 2+ years | | Update Delay Syndrome | Large number of outdated packages | | Dependency Obesity | Too many dependencies (100+) | | Version Conflict Syndrome | Different versions of the same package | | Aging Syndrome | Average dependency age too high |

πŸ“š API Usage Example

You can also use it programmatically:

import { diagnose, generateReport, setLocale } from 'dependency-therapist';

// Set language (optional - defaults to 'en')
setLocale('ja'); // or 'en'

// Run diagnosis
const result = await diagnose('/path/to/project');

// Generate report
console.log(generateReport(result));

// Access scores
console.log(`Overall Score: ${result.score.overall}`);
console.log(`Symptoms: ${result.symptoms.length}`);

πŸ› οΈ Development

# Install dependencies
npm install

# Build
npm run build

# Test
npm test

# Development mode
npm run dev

πŸ“ˆ Roadmap

Phase 1 (MVP) - Completed βœ…

  • Basic scoring functionality
  • Simple CLI
  • Text-based reports

Phase 2 - Completed βœ…

  • Security vulnerability scanning (npm audit integration)
  • HTML report generation
  • Auto-fix functionality (heal command)
  • Duplicate package detection

Phase 3 - In Progress 🚧

  • βœ… Interactive terminal visualization (charts & gauges)
  • βœ… Internationalization (English/Japanese)
  • AI recommendation engine
  • Failure prediction timeline
  • Continuous monitoring

🀝 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

πŸ“„ License

MIT

πŸ™ Acknowledgments

This project is inspired by the following tools and libraries:

  • npm-check
  • depcheck
  • npm-outdated

Stop worrying about dependencies. πŸ₯

dependency-therapist serves as your project's primary physician, watching over your dependency health 24/7/365.