Peer Dependency Helper

Audit and fix peer dependency issues with ease

🚀 Get Started 📖 Documentation

🚀 Quick Start

Install and start using Peer Dependency Helper in seconds:

Installation

npm install -g peer-dep-helper

Basic Usage

# Audit peer dependencies
peer-dep-helper audit

# Fix peer dependency issues
peer-dep-helper fix

# Check version
peer-dep-helper --version

🔍 What is Peer Dependency Helper?

Peer Dependency Helper is a powerful CLI tool designed to solve one of the most frustrating problems in Node.js development: peer dependency issues.

🚨 The Problem

Peer dependencies are dependencies that your package expects to be installed by the consuming application. When they're missing, outdated, or conflicting, you get:

  • ❌ Broken installations and runtime errors
  • ❌ Confusing npm/yarn warnings
  • ❌ Incompatible package versions
  • ❌ Hours wasted debugging dependency issues
  • ❌ Failed CI/CD builds

✅ The Solution

Peer Dependency Helper automatically:

  • 🔍 Detects missing, outdated, and conflicting peer dependencies
  • 🔧 Fixes issues with intelligent version resolution
  • Optimizes performance with smart caching
  • 🎨 Presents results beautifully with customizable themes
  • 🏗️ Scales from simple projects to complex monorepos

⚖️ How We Compare

See how Peer Dependency Helper stands out from other approaches and tools:

Feature
Manual Approach
npm/yarn Warnings
Detection
❌ Manual inspection of package.json files
⚠️ Basic warnings during install
Fixing
❌ Manual research and trial-and-error
❌ No automatic fixing
Monorepo Support
❌ Extremely complex and error-prone
⚠️ Limited workspace awareness
Performance
❌ Time-consuming manual process
⚠️ Slows down install process
User Experience
❌ Frustrating and error-prone
⚠️ Basic text output
CI/CD Integration
❌ Not suitable for automation
⚠️ Exit codes but no structured output
Customization
❌ No customization options
❌ No customization options
Version Resolution
❌ Manual semver analysis required
⚠️ Basic version checking
Caching
❌ No caching, repeated work
⚠️ Basic npm/yarn caching
Error Handling
❌ Manual debugging and research
⚠️ Generic error messages
Package Manager Support
❌ Manual process for each
⚠️ Limited to specific manager
Workspace Detection
❌ Manual workspace analysis
⚠️ Basic workspace support
Recursive Fixing
❌ One-time fixes only
❌ No recursive resolution
Dry Run Mode
❌ No preview capability
❌ No dry run option
Selective Fixing
❌ All-or-nothing approach
❌ No selective options
Configuration
❌ No configuration options
⚠️ Limited to package.json
Theme System
❌ No theming support
❌ No theming support
Spinner Integration
❌ No progress indicators
⚠️ Basic progress bars
Help System
❌ No built-in help
⚠️ Basic help documentation
Exit Codes
❌ No standardized exit codes
⚠️ Basic exit codes
Silent Mode
❌ No silent operation
⚠️ Limited quiet options
Debug Mode
❌ No debugging capabilities
⚠️ Limited debug info

🎯 Why Choose Peer Dependency Helper?

🚀

10x Faster

Automated detection and fixing saves hours of manual work

🎯

More Accurate

Intelligent version resolution prevents compatibility issues

🛡️

Prevents Errors

Catch issues before they reach production or break builds

🎨

Better UX

Beautiful, customizable output makes dependency management enjoyable

🆚 Comparison with Other Tools

Feature
npm audit
yarn audit
pnpm audit
Peer Dependencies
❌ No peer dependency support
❌ No peer dependency support
❌ No peer dependency support
Security Focus
✅ Security vulnerabilities
✅ Security vulnerabilities
✅ Security vulnerabilities
Automatic Fixing
⚠️ npm audit fix (limited)
❌ No automatic fixing
❌ No automatic fixing
Monorepo Support
⚠️ Basic workspace support
⚠️ Basic workspace support
⚠️ Basic workspace support
Version Resolution
❌ No version resolution
❌ No version resolution
❌ No version resolution
User Experience
⚠️ Basic CLI output
⚠️ Basic CLI output
⚠️ Basic CLI output
Customization
❌ No customization
❌ No customization
❌ No customization
JSON Output
✅ --json flag
✅ --json flag
✅ --json flag
Recursive Analysis
❌ No recursive analysis
❌ No recursive analysis
❌ No recursive analysis
Performance
⚠️ Can be slow on large projects
⚠️ Can be slow on large projects
⚠️ Can be slow on large projects

💡 Note: Complementary Tools

Peer Dependency Helper is designed to complement security tools like npm audit, yarn audit, and pnpm audit. While those tools focus on security vulnerabilities, Peer Dependency Helper specializes in dependency compatibility and structure issues. Use both for comprehensive dependency management!

⚙️ How It Works

1

Scan Your Project

Analyzes your package.json files, node_modules, and workspace configurations to understand your dependency structure.

2

Detect Issues

Identifies missing peer dependencies, version conflicts, and outdated packages that could cause problems.

3

Provide Solutions

Offers intelligent fixes with proper version resolution, considering compatibility across all your packages.

4

Apply Fixes

Automatically installs missing dependencies and updates package.json files to resolve conflicts.

🎯 Why Use Peer Dependency Helper?

Save Time

Stop wasting hours debugging peer dependency issues. Get instant, accurate diagnosis and fixes.

🛡️

Prevent Breakage

Catch dependency issues before they reach production. Ensure your builds and deployments succeed.

🔧

Works Everywhere

Compatible with npm, yarn, and pnpm. Supports monorepos, workspaces, and complex project structures.

🚀

Developer Experience

Beautiful, customizable CLI output with themes, emojis, and helpful tips. Makes dependency management enjoyable.

📊

CI/CD Ready

JSON output, exit codes, and configurable behavior make it perfect for automated workflows and CI/CD pipelines.

🎨

Highly Customizable

25+ themes, config files, environment variables, and CLI flags let you tailor the experience to your needs.

✨ Features

🔍

Comprehensive Auditing

Detect missing, outdated, and conflicting peer dependencies across your entire project

🔧

Automatic Fixing

Fix common peer dependency issues with intelligent suggestions and automated resolution

🎨

Beautiful Themes

25+ beautiful themes with customizable colors, box styles, and emoji support

Performance Optimized

Smart caching and efficient algorithms for fast scanning of large projects

🏗️

Monorepo Ready

Built for complex projects with multiple packages, workspaces, and nested dependencies

🔧

Flexible Configuration

Customize behavior with config files, environment variables, and CLI flags

🎨 Beautiful Themes

Customize the look and feel with 25+ beautiful themes:

⚡ Default

Clean and modern with cyan and green accents

--theme default
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🌙 Dark

Classic dark theme with blue and cyan accents

--theme dark
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

☀️ Light

Clean light theme with blue and gray

--theme light
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🎯 Minimal

Minimalist output with no emojis

--theme minimal
Peer Dependency Helper
All peer dependencies are valid!
Found 12 packages with peer dependencies

🌈 Colorful

Vibrant rainbow colors with emojis

--theme colorful
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🎨 Monokai

Monokai-inspired with bold boxes

--theme monokai
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🐙 GitHub Dark

GitHub dark theme with double boxes

--theme githubdark
Peer Dependency Helper
All peer dependencies are valid!
Found 12 packages with peer dependencies

🐙 GitHub Light

GitHub light theme with single boxes

--theme githublight
Peer Dependency Helper
All peer dependencies are valid!
Found 12 packages with peer dependencies

🌿 Forest

Nature-inspired green and brown

--theme forest
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🌹 Rose Pine

Rose-pine color palette

--theme rosepine
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🦉 Night Owl

Night Owl theme with double boxes

--theme nightowl
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🎭 Playful

Playful theme with arrow boxes

--theme playful
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

💼 Corporate

Professional corporate theme

--theme corporate
Peer Dependency Helper
All peer dependencies are valid!
Found 12 packages with peer dependencies

🧛 Dracula

Dark and elegant with magenta and yellow

--theme dracula
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🟢 Matrix

Classic terminal green with no emoji

--theme matrix
Peer Dependency Helper
All peer dependencies are valid!
Found 12 packages with peer dependencies

🎨 Pastel

Soft and friendly with blue and magenta

--theme pastel
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🌅 Sunset

Warm and vibrant with red and yellow

--theme sunset
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🌊 Ocean

Cool and calming with cyan and blue

--theme ocean
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

⚡ Neon

Bright and futuristic with green and cyan

--theme neon
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

📺 Classic

Traditional terminal style with no emoji

--theme classic
Peer Dependency Helper
All peer dependencies are valid!
Found 12 packages with peer dependencies

🌈 Rainbow

Colorful and playful with magenta and cyan

--theme rainbow
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

❄️ Nord

Arctic, icy blue and gray inspired by Nord theme

--theme nord
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🍊 Gruvbox

Warm retro orange, yellow, and brown (Gruvbox)

--theme gruvbox
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🌙 Solarized Dark

Solarized dark: blue, cyan, yellow, base03

--theme solarizeddark
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

☀️ Solarized Light

Solarized light: base3, yellow, blue, cyan

--theme solarizedlight
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🌅 Ayu Dark

Ayu dark: orange, yellow, gray

--theme ayudark
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

☀️ Ayu Light

Ayu light: light yellow, blue, gray

--theme ayulight
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🐱 Catppuccin

Catppuccin: mauve, peach, teal, latte

--theme catppuccin
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🌙 One Dark

One Dark: blue, cyan, magenta, gray

--theme onedark
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🧛 Dracula Pro

Dracula Pro: pink, purple, cyan, yellow

--theme draculapro
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🌙 Arc Dark

Arc Dark: blue, teal, gray

--theme arcdark
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🌲 Everforest

Everforest: green, brown, yellow

--theme everforest
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

🎨 Material

Material: blue, teal, orange

--theme material
🔍 Peer Dependency Helper
✅ All peer dependencies are valid!
📦 Found 12 packages with peer dependencies

⚫ High Contrast

High contrast: black, white, yellow

--theme highcontrast
Peer Dependency Helper
All peer dependencies are valid!
Found 12 packages with peer dependencies

📺 Retro

Retro terminal: yellow, green, classic boxes, no emoji

--theme retro
Peer Dependency Helper
All peer dependencies are valid!
Found 12 packages with peer dependencies

💎 Elegant

Elegant: white, gray, single-double boxes, no emoji

--theme elegant
Peer Dependency Helper
All peer dependencies are valid!
Found 12 packages with peer dependencies

📦 Box Styles

Choose from multiple box border styles to customize your CLI output:

Rounded corners

round

Default style with smooth rounded corners

Single line borders

single

Clean single-line border style

Double line borders

double

Elegant double-line border style

Bold borders

bold

Strong, prominent border style

Classic ASCII style

classic

Traditional terminal ASCII boxes

Single top/bottom, double sides

singleDouble

Mixed single and double borders

Double top/bottom, single sides

doubleSingle

Reverse mixed border style

Arrow-style borders

arrow

Dynamic arrow-style borders

🎮 Theme Commands

Explore and customize themes with these powerful commands:

📋

List Themes

peer-dep-helper theme list

View all available theme presets with descriptions

👁️

Preview Theme

peer-dep-helper theme preview dark

See how a specific theme looks before using it

🎨

Use Theme

peer-dep-helper audit --theme peerdephelper

Apply a theme to any command

🔧

Custom Box Style

peer-dep-helper audit --theme dark --box-style bold

Override the theme's default box style

🚫

Disable Emojis

peer-dep-helper audit --theme colorful --no-emojis

Use a theme without emoji icons

Minimal Mode

peer-dep-helper audit --theme dark --minimal

Get clean, minimal output for CI/CD

⚙️ Configuration File

Set your default theme preferences in a configuration file:

peer-dep-helper.json

{
  "theme": "peerdephelper",
  "primaryColor": "cyan",
  "secondaryColor": "magenta", 
  "boxStyle": "round",
  "useEmojis": true,
  "minimal": false
}

💡 Configuration Tips

  • Theme Name: Use any preset theme name or create custom ones
  • Colors: Choose from 16+ color options (red, blue, green, cyan, magenta, yellow, etc.)
  • Box Style: Override the theme's default box style
  • Emojis: Enable/disable emoji icons for accessibility
  • Minimal: Perfect for CI/CD pipelines and automation

💻 Usage Examples

See Peer Dependency Helper in action with real examples:

🔍 Basic Audit

Check for peer dependency issues in your project:

Command

peer-dep-helper audit

Output

╭────────────────────────────────────────────────────╮
│                                                    │
│         ┌───────────────────────────────┐          │
│         │                               │          │
│         │   🔍 Peer Dependency Helper   │          │
│         │                               │          │
│         └───────────────────────────────┘          │
│   Audit and fix peer dependency issues with ease   │
│                                                    │
╰────────────────────────────────────────────────────╯
✔ ✅ Scan complete!

┌─────────────────────┐
│                     │
│   📊 Audit Report   │
│                     │
└─────────────────────┘
❌ Found 2 peer dependency issues:

┌─────────────────────────────────────────────────┐
│                                                 │
│   🚨 Missing Peer Dependencies                 │
│                                                 │
└─────────────────────────────────────────────────┘
• react@^18.0.0 (required by @emotion/react@11.11.0)
• react-dom@^18.0.0 (required by @emotion/react@11.11.0)

┌─────────────────────────────────────────────────┐
│                                                 │
│   🔧 Fix Suggestions                           │
│                                                 │
└─────────────────────────────────────────────────┘
Run: peer-dep-helper fix

🔧 Automatic Fix

Automatically install missing peer dependencies:

Command

peer-dep-helper fix

Output

🔧 Installing 2 packages...
📦 Installing react@^18.0.0
📦 Installing react-dom@^18.0.0
✅ Fixes applied successfully!

🔄 Re-auditing to verify fixes...
✅ All peer dependencies are valid!
┌─────────────────────────────────────────┐
│                                         │
│   🎉 All issues resolved successfully!  │
│                                         │
└─────────────────────────────────────────┘

🎨 Custom Themes

Use beautiful themes to customize your CLI experience:

Command

peer-dep-helper audit --theme-preset dracula

Output

┌─────────────────────────────────────────────────┐
│                                                 │
│   🔍 Peer Dependency Helper                   │
│                                                 │
└─────────────────────────────────────────────────┘
📊 Audit Report
✅ No peer dependency issues found.
🎉 Your project is in perfect shape!

�� JSON Output for CI/CD

Get structured output for automated workflows:

Command

peer-dep-helper audit --json

Output

{
  "issues": [
    {
      "package": "react",
      "status": "missing",
      "requiredBy": "my-component-library",
      "requiredVersion": "^18.0.0",
      "installedVersion": null,
      "latestVersion": "18.2.0"
    }
  ],
  "summary": {
    "total": 1,
    "missing": 1,
    "outdated": 0,
    "valid": 0
  }
}