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

depsensei

v0.1.8

Published

A CLI tool to detect and resolve dependency issues across various programming environments

Downloads

5

Readme

DepSensei 🛡️

A smart CLI tool that helps developers maintain healthy dependencies across their projects. DepSensei automatically detects, analyzes, and helps resolve dependency issues while keeping your project secure and up-to-date.

npm version License: MIT PRs Welcome

✨ Features

  • 🔍 Smart Analysis: Automatically detects outdated, deprecated, and conflicting dependencies
  • 🎯 Multi-Ecosystem Support: Currently supports JavaScript/Node.js, with more ecosystems coming soon
  • 🛠️ Intelligent Fixes: Provides smart suggestions for resolving dependency issues
  • 🧪 Safe Testing: Tests fixes in a sandboxed environment before applying them
  • 🔒 Secure Updates: Creates backups and allows selective package updates
  • 📊 Detailed Reports: Clear, tabular reports of dependency issues and suggested fixes

📦 Installation

There are several ways to use DepSensei:

Option 1: Using npx (Recommended for one-off usage)

# Run directly without installation
npx depsensei

Pros:

  • No installation required
  • Always uses the latest version
  • Doesn't pollute global packages
  • Perfect for occasional use

Cons:

  • Downloads the package each time (unless cached)
  • Slightly slower first run

Option 2: Local Installation (Recommended for project use)

# Install as a dev dependency in your project
npm install depsensei --save-dev

# Run using npx
npx depsensei

# Or run directly from node_modules
./node_modules/.bin/depsensei

Pros:

  • Version is locked to your project
  • Faster execution
  • Works offline
  • Better for CI/CD pipelines
  • Keeps dependencies with your project

Cons:

  • Takes up space in your project's node_modules
  • Need to update manually when new versions are released

Option 3: Global Installation (Not recommended)

# Install globally
npm install -g depsensei

# Run from anywhere
depsensei

Pros:

  • Available system-wide
  • Faster execution than npx

Cons:

  • Can cause version conflicts between projects
  • Requires global npm permissions
  • Can pollute your global npm packages
  • Need to manually update

🚀 Quick Start

  1. Navigate to your project directory:
cd your-project
  1. Analyze your dependencies:
depsensei analyze
  1. Review and apply fixes:
depsensei fix

📝 Usage Guide

Analyzing Dependencies

# Basic analysis
depsensei analyze

# Analyze with specific options
depsensei analyze --path <custom-path>  # Analyze a specific project path
depsensei analyze --ecosystem <ecosystem>  # Analyze a specific ecosystem

The analysis will show:

  • Outdated packages
  • Deprecated packages
  • Version conflicts
  • Security vulnerabilities (coming soon)

Applying Fixes

# Basic fix mode
depsensei fix

# Interactive mode (recommended)
depsensei fix --interactive

# Show what would be fixed without making changes
depsensei fix --dry-run

# Force mode (skip confirmations)
depsensei fix --force

# Skip backup creation
depsensei fix --no-backup

# Skip npm install after updates
depsensei fix --no-install

# Fix a specific project path
depsensei fix --path <custom-path>

# Fix a specific ecosystem
depsensei fix --ecosystem <ecosystem>

The fix command will:

  1. Show all detected issues
  2. Let you choose whether to proceed (unless --force is used)
  3. Allow you to select which packages to update (in interactive mode)
  4. Create a backup of your package.json (unless --no-backup is used)
  5. Apply the selected updates
  6. Run npm install (unless --no-install is used)

Command Options

# Show help
depsensei --help

# Show version
depsensei --version

🛠️ Supported Ecosystems

Currently Supported

  • JavaScript/Node.js
    • package.json
    • package-lock.json
    • Detects outdated, deprecated, and conflicting dependencies
    • Smart version resolution
    • Safe update application

Coming Soon

  • Python (requirements.txt, pyproject.toml)
  • Rust (Cargo.toml)
  • Ruby (Gemfile)
  • Java (pom.xml, build.gradle)

💻 Development

Prerequisites

  • Node.js 14 or higher
  • npm 6 or higher

Setup

  1. Clone the repository:
git clone https://github.com/ericBlack1/depSensei.git
cd depSensei
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Available Scripts

# Run tests
npm test

# Run workflow tests
npm run test:workflow

# Start development mode
npm run dev

# Lint code
npm run lint

# Format code
npm run format

# Build project
npm run build

Project Structure

depsensei/
├── src/
│   ├── analyzers/     # Ecosystem-specific analyzers
│   ├── fixers/        # Fix generators and appliers
│   ├── commands/      # CLI commands
│   ├── core/          # Core types and utilities
│   └── utils/         # Helper functions
├── test/              # Test files
└── dist/             # Compiled output

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

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

Development Guidelines

  • Write clear, descriptive commit messages
  • Add tests for new features
  • Update documentation for any changes
  • Follow the existing code style
  • Make sure all tests pass

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📞 Support

If you encounter any issues or have questions, please:

  1. Check the existing issues
  2. Create a new issue if needed
  3. Join our Discord community (coming soon)