Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement โ†’
Sign In

devcompass

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devcompass

Dependency health checker with ecosystem intelligence, unified interactive dashboard with 5 dynamic layouts (Tree/Force/Radial/Conflict/Analytics), historical tracking with SQLite, snapshot comparison, timeline visualization, modular CSS/JS architecture,

Source
npmnpm
Version
3.2.4
Version published
Weekly downloads
101
-21.09%
Maintainers
1
Weekly downloads
ย 
Created
Source

๐Ÿงญ DevCompass

AI-powered dependency health checker with 10 complete CLI commands featuring CVE vulnerability detection, interactive graph visualization, snapshot management, backup system, unified dashboard with 5 dynamic layouts (Tree/Force/Radial/Conflict/Analytics), intelligent AI recommendations, multi-provider LLM support, historical tracking with SQLite database, snapshot comparison, timeline visualization, modular CSS/JS architecture, intelligent clustering (Ecosystem/Health/Depth grouping), real-time filtering, advanced zoom controls, theme support (dark/light), supply chain security with auto-fix, license conflict resolution, package quality auto-fix, batch fix modes, and professional dependency exploration.

npm version npm downloads License: MIT

Analyze your JavaScript projects to find unused dependencies, outdated packages, detect CVE vulnerabilities with OSV + NVD, visualize dependency graphs with interactive controls, manage snapshots of your project state, compare changes over time, backup and restore package files, get AI-powered recommendations, ask questions about your dependencies, find package alternatives with AI, chat with AI about your project, monitor GitHub issues in real-time for 502 packages, configure your own GitHub token to avoid rate limits, customize all configuration via JSON files, organize packages by ecosystem (React/Vue/Angular/Testing/Build Tools), group by health status (Critical/Warning/Healthy), analyze by depth levels, instant layout switching, dark/light theme toggle, real-time filtering, advanced zoom controls, track dependency changes over time with SQLite database, visualize evolution with interactive timelines, check bundle sizes, verify licenses, detect and auto-fix supply chain attacks, resolve license conflicts automatically, replace abandoned/deprecated packages automatically, analyze package quality, batch fix with granular control, and automatically fix issues with dry-run, progress tracking, and backups. Perfect for CI/CD pipelines with JSON output and exit codes.

๐Ÿ›ก๏ธ LATEST v3.2.4: CVE Vulnerability Detection - Real-time security scanning with OSV + NVD! ๐Ÿ›ก๏ธ
๐ŸŽฏ v3.2.3: Feature Complete - All 10 commands now working! Graph, Snapshot, Compare, Backup! ๐ŸŽฏ
๐Ÿค– v3.2.2: AI-Powered Analysis - Get intelligent recommendations from OpenAI, Anthropic, Google, or FREE local AI! ๐Ÿค–

๐ŸŽ‰ Latest Release: v3.2.4 (2026-05-01)

๐Ÿ›ก๏ธ CVE Vulnerability Detection - Industry-Standard Security Scanning!

๐ŸŒŸ What's New in v3.2.4:

๐Ÿ›ก๏ธ Real-Time CVE Detection

DevCompass now integrates with industry-standard vulnerability databases to detect security issues in real-time!

Key Features:

  • ๐Ÿ” OSV API Integration (Primary Source - No Key Required)

    • Open Source Vulnerabilities database
    • npm-focused vulnerability detection
    • Fast, free, comprehensive coverage
    • GitHub Security Advisories integration
  • ๐Ÿ›๏ธ NVD API Integration (Secondary Enrichment - Optional Key)

    • National Vulnerability Database (NIST)
    • Official CVE data with CVSS scores
    • Detailed vulnerability metadata
    • Enhanced severity classification
  • โšก Intelligent Caching System

    • 24-hour TTL with automatic expiry
    • SQLite-based local storage
    • Instant subsequent scans (<100ms)
    • Cache version management
    • Batch queries with concurrency control
  • ๐Ÿ”’ Encrypted API Key Storage

    • AES-256-GCM encryption
    • Machine-specific encryption keys
    • Local-only storage (never transmitted)
    • Secure token management

CVE Commands:

# Configure NVD API key (optional but recommended)
devcompass cve key --set --api-key <your-key>
devcompass cve test                         # Test connection
devcompass cve key                          # Show status

# Cache management
devcompass cve cache --stats                # View statistics
devcompass cve cache --clear                # Clear cache

# Analysis includes CVE detection automatically
devcompass analyze                          # CVE scan included!

Getting NVD API Key:

๐ŸŽฏ CVE Detection Features

  • ๐Ÿ” Automatic Scanning - Every analyze run checks for CVEs
  • ๐ŸŽจ Severity Classification - CRITICAL/HIGH/MEDIUM/LOW ratings
  • โšก Fast Performance - 2-5s first run, <100ms cached
  • ๐Ÿ“Š Summary Statistics - Count by severity level
  • ๐Ÿ”— Reference Links - Direct links to CVE details
  • ๐Ÿ’พ Smart Caching - 24-hour local cache with auto-expiry
  • ๐Ÿ”’ Privacy First - API keys encrypted, never shared
  • ๐Ÿ†“ Free Option - Works without NVD key (OSV only)

๐Ÿ“Š Enhanced Security Output

๐Ÿ›ก๏ธ  CVE VULNERABILITY DATABASE (4)

  ๐ŸŸก MEDIUM: 12

  Affected Packages:

  axios@0.21.1
    โ— GHSA-3p68-rc4w-qgx5 - MEDIUM
      Axios has a NO_PROXY Hostname Normalization Bypass that Leads to SSRF
    โ— GHSA-43fc-jf86-j433 - MEDIUM
      Axios Denial of Service vulnerability

  express@4.17.1
    โ— GHSA-qw6h-vgh9-j6wx - MEDIUM
      Express.js Open Redirect in malformed URLs

  ๐Ÿ’ก Sources: OSV (Open Source Vulnerabilities) + NVD (National Vulnerability Database)
  Run npm audit fix to fix known vulnerabilities

โœจ All Features

Command Suite (10/10 Complete) โœ…

  • ๐Ÿ“Š analyze - Full dependency analysis with AI + CVE detection
  • ๐Ÿ”ง fix - Auto-fix issues with backup
  • ๐Ÿ“Š graph - Interactive dependency visualization
  • ๐Ÿ“ธ snapshot - Snapshot management
  • ๐Ÿ”„ compare - Snapshot comparison
  • ๐Ÿ’พ backup - Backup management
  • ๐Ÿ“ˆ timeline - Health trend visualization
  • ๐Ÿค– ai - AI-powered insights
  • ๐Ÿ”‘ llm - AI provider management
  • ๐Ÿ›ก๏ธ cve (v3.2.4) - CVE vulnerability management
  • โš™๏ธ config - DevCompass configuration

Security & Vulnerability Detection (v3.2.4)

  • ๐Ÿ›ก๏ธ CVE Detection - OSV + NVD integration
  • ๐Ÿ” Real-Time Scanning - Check every package
  • ๐ŸŽจ Severity Classification - CRITICAL/HIGH/MEDIUM/LOW
  • โšก Smart Caching - 24-hour TTL for performance
  • ๐Ÿ”’ Encrypted Storage - AES-256-GCM for API keys
  • ๐Ÿ“Š Detailed Reports - CVE IDs, summaries, references
  • ๐Ÿ’พ Batch Processing - Concurrent vulnerability checks
  • ๐Ÿ†“ Free Tier - Works without API keys

AI & Intelligence (v3.2.2)

  • ๐Ÿค– AI-Powered Analysis - Multi-provider LLM integration
  • ๐Ÿ’ฌ Interactive AI Chat - Ask questions, get answers
  • ๐Ÿ”„ Package Alternatives - AI-suggested replacements
  • ๐Ÿ”’ Encrypted Tokens - AES-256-GCM security
  • ๐Ÿ“Š Cost Tracking - Monitor AI usage

Tracking & History (v3.2.1 + v3.2.3)

  • ๐Ÿ“Š Historical Tracking - SQLite database, auto-save snapshots
  • ๐Ÿ” Snapshot Comparison - Side-by-side diff analysis
  • ๐Ÿ“ˆ Timeline Visualization - Interactive D3 charts
  • ๐Ÿ’พ Backup Management - Manual backup/restore operations
  • ๐Ÿ—‚๏ธ Flexible Dates - 9 date formats supported

Visualization (v3.2.0 + v3.2.3)

  • ๐ŸŽจ Unified Dashboard - 5 layouts, modular architecture
  • ๐Ÿ“Š Interactive Graphs - Multiple layouts with real-time filtering
  • ๐Ÿ“Š Analytics Layout - Statistics dashboard
  • ๐ŸŒ™ Theme Support - Dark/light mode toggle
  • โšก Performance - 4-6ร— faster rendering
  • ๐Ÿ”ฒ Intelligent Clustering - Ecosystem/Health/Depth grouping

Configuration & Security

  • ๐Ÿ”ง Dynamic Data Configuration - JSON-based scalable config
  • ๐Ÿ”‘ GitHub Token Config - User tokens, no rate limits
  • ๐Ÿ”’ Encrypted Storage - AES-256-GCM for sensitive data
  • ๐Ÿ“ฆ 502 Tracked Packages - Comprehensive monitoring

๐Ÿš€ Installation

# Global (recommended)
npm install -g devcompass@3.2.4

# Local
npm install --save-dev devcompass@3.2.4

# One-time use
npx devcompass@3.2.4 analyze

# Upgrade from any version
npm install -g devcompass@3.2.4

๐Ÿ“– Usage

Basic Commands

# Configure GitHub token (recommended)
devcompass config --github-token <your-token>
devcompass config --show

# Analyze project (includes CVE detection!)
devcompass analyze
devcompass analyze --ai  # ๐Ÿค– With AI recommendations!
devcompass analyze --no-history  # Skip snapshot

# Generate interactive graph
devcompass graph --open
devcompass graph --layout force --filter vulnerable

# Auto-fix issues
devcompass fix
devcompass fix --batch
devcompass fix --dry-run

CVE Commands (NEW in v3.2.4)

# Configure NVD API key (optional)
devcompass cve key --set --api-key <your-nvd-key>
devcompass cve key                          # Show current status
devcompass cve key --remove                 # Remove stored key

# Test NVD API connection
devcompass cve test                         # Validate your key

# Cache management
devcompass cve cache --stats                # View cache statistics
devcompass cve cache --clear                # Clear vulnerability cache

# CVE detection runs automatically with analyze
devcompass analyze                          # Includes CVE scan!

Getting Your NVD API Key:

# 1. Visit: https://nvd.nist.gov/developers/request-an-api-key
# 2. Fill in:
#    - Email address
#    - Organization name
#    - Agree to Terms of Use
# 3. Check your email for single-use activation link
# 4. Click link to activate (must activate within 7 days)
# 5. Copy your API key from the confirmation page
# 6. Add to DevCompass:
devcompass cve key --set --api-key 9d47e8fb-0837-4da7-a1cf-7a0bxxx8ca22

# 7. Test it:
devcompass cve test

# Output:
# ๐Ÿงช Testing NVD API Key...
# โœ“ NVD API key is valid โœ“

Graph Commands (v3.2.3)

# Generate interactive dependency graph
devcompass graph                            # Default tree layout
devcompass graph --layout force             # Force-directed layout
devcompass graph --layout radial            # Radial tree layout
devcompass graph --layout conflict          # Highlight conflicts

# Apply filters
devcompass graph --filter vulnerable        # Show only vulnerable
devcompass graph --filter outdated          # Show only outdated
devcompass graph --filter unused            # Show only unused

# Customize output
devcompass graph --output my-graph.html     # Custom filename
devcompass graph --width 1600 --height 900  # Custom dimensions
devcompass graph --depth 5                  # Limit depth to 5 levels
devcompass graph --open                     # Open in browser

# Export formats
devcompass graph --format json              # Export as JSON
devcompass graph --format html              # Export as HTML (default)

Snapshot Commands (v3.2.3)

# Save current state
devcompass snapshot save

# List all snapshots
devcompass snapshot list                    # Last 20 snapshots
devcompass snapshot list --limit 50         # Last 50 snapshots
devcompass snapshot list --project myapp    # Filter by project

# View snapshot details
devcompass snapshot view 123                # Basic info
devcompass snapshot view 123 --verbose      # Detailed info

# Delete old snapshots
devcompass snapshot delete 123              # With confirmation
devcompass snapshot delete 123 --yes        # Skip confirmation

Compare Commands (v3.2.3)

# Compare two snapshots
devcompass compare 51 52                    # Basic comparison
devcompass compare 51 52 --verbose          # Show all packages
devcompass compare 51 52 -o report.md       # Save to file

Backup Commands (v3.2.3)

# List all backups
devcompass backup list

# Show backup details
devcompass backup info --name backup-2026-04-26T19-50-37-541Z

# Restore from backup
devcompass backup restore --name backup-2026-04-26T19-50-37-541Z
devcompass backup restore --name backup-xxx --force  # Skip confirmation

# Clean old backups
devcompass backup clean                     # Keep latest 5
devcompass backup clean --keep 3            # Keep latest 3

AI Commands (v3.2.2)

# Setup AI provider
devcompass llm add --provider openai --token sk-xxx --model gpt-4o-mini
devcompass llm add --provider local --model llama3.2 --base-url http://localhost:11434

# AI Analysis
devcompass analyze --ai
devcompass ai ask "Why is my health score low?"
devcompass ai alternatives moment
devcompass ai chat
devcompass llm stats

History Commands (v3.2.1)

# List snapshots (also available via 'snapshot list')
devcompass history list
devcompass history list --month 04-2026

# Compare snapshots (also available via 'compare')
devcompass compare 5 8

# Timeline visualization
devcompass timeline --open
devcompass timeline --days 60

๐Ÿ›ก๏ธ CVE Vulnerability Detection (v3.2.4)

How It Works

Automatic Detection: Every time you run devcompass analyze, the tool automatically:

  • ๐Ÿ“ฆ Scans all dependencies in your project
  • ๐Ÿ” Queries OSV database for known vulnerabilities
  • ๐Ÿ›๏ธ Enriches with NVD data (if key configured)
  • ๐Ÿ’พ Caches results locally for 24 hours
  • ๐Ÿ“Š Reports findings with severity levels

Data Sources:

  • OSV (Open Source Vulnerabilities) - Primary source, no key required
  • NVD (National Vulnerability Database) - Secondary enrichment, optional API key

Features

Severity Classification:

  • ๐Ÿ”ด CRITICAL - Immediate action required
  • ๐ŸŸ  HIGH - Fix soon (this week)
  • ๐ŸŸก MEDIUM - Plan to fix (this month)
  • โšช LOW - Monitor, fix when convenient

Performance:

  • โšก First Run: 2-5 seconds (API calls to OSV + NVD)
  • ๐Ÿš€ Cached Run: <100ms (from local SQLite)
  • ๐Ÿ’พ Cache Duration: 24 hours with automatic expiry
  • ๐Ÿ”„ Batch Processing: 5 concurrent requests max

Security & Privacy:

  • ๐Ÿ”’ Encrypted Storage: AES-256-GCM for API keys
  • ๐Ÿ–ฅ๏ธ Local Only: Keys never transmitted to DevCompass servers
  • ๐Ÿ”‘ Machine-Specific: Encryption tied to your machine
  • ๐Ÿ›ก๏ธ Read-Only: Only queries vulnerability databases

Example Output

$ devcompass analyze

๐Ÿ” DevCompass v3.2.4 - Analyzing your project...

โœ” Scanned 6 dependencies in project
โšก GitHub check completed in 4.76s
๐Ÿ“ฆ CVE check completed (6/6 from cache)

๐Ÿ”ด CVE VULNERABILITIES DETECTED (4 packages)

  ๐ŸŸก MEDIUM: 12

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

๐Ÿ›ก๏ธ  CVE VULNERABILITY DATABASE (4)

  ๐ŸŸก MEDIUM: 12

  Affected Packages:

  axios@0.21.1
    โ— GHSA-3p68-rc4w-qgx5 - MEDIUM
      Axios has a NO_PROXY Hostname Normalization Bypass that Leads to SSRF
    โ— GHSA-43fc-jf86-j433 - MEDIUM
      Axios Denial of Service vulnerability

  express@4.17.1
    โ— GHSA-qw6h-vgh9-j6wx - MEDIUM
      Express.js Open Redirect in malformed URLs
    โ— GHSA-rv95-896h-c2vc - MEDIUM
      Express.js path traversal vulnerability

  lodash@4.17.21
    โ— GHSA-f23m-r3pf-42rh - MEDIUM
      Prototype pollution in lodash
    โ— GHSA-r5fr-rjxr-66jc - MEDIUM
      Command injection in lodash templates

  request@2.88.2
    โ— GHSA-p8p7-x288-28g6 - MEDIUM
      Server-Side Request Forgery in request

  ๐Ÿ’ก Sources: OSV (Open Source Vulnerabilities) + NVD (National Vulnerability Database)
  Run npm audit fix to fix known vulnerabilities

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

Cache Management

# View cache statistics
$ devcompass cve cache --stats

๐Ÿ“Š CVE Cache Statistics

  Total entries: 14
  Active: 14
  Expired: 0
  Outdated: 0

# Clear cache (force fresh scan)
$ devcompass cve cache --clear

โœ“ Cleared 14 cached CVE entries

API Key Management

# Show current status
$ devcompass cve key

๐Ÿ”‘ NVD API Key Status

โœ“ Configured
  Key: 9d47e8f***ca22

๐Ÿ’ก Commands:
  Test: devcompass cve test
  Remove: devcompass cve key --remove

# Test your API key
$ devcompass cve test

๐Ÿงช Testing NVD API Key...

โœ“ NVD API key is valid โœ“

Ready to use:
  Run: devcompass analyze to scan with CVE detection

# Remove API key
$ devcompass cve key --remove

โœ“ NVD API key removed

Performance Comparison

OperationWithout CacheWith CacheImprovement
Scan 6 packages~2-5s<100ms20-50ร— faster
CVE lookup300-500ms<10ms30-50ร— faster
Full analysis~8-12s~5-6s40-50% faster

Technical Details

Database Schema:

-- Encrypted API keys
api_keys (id, service, api_key, is_active, created_at)

-- Cached vulnerability data
vulnerability_cache (
  id, package_name, package_version, 
  vulnerabilities, cache_version,
  cached_at, expires_at
)

-- Cache metadata
cache_metadata (key, value)

Encryption:

  • Algorithm: AES-256-GCM
  • Key Derivation: SHA-256(hostname + username)
  • IV: 12 bytes (GCM standard)
  • Tag: 16 bytes (authentication)

Cache Version Management:

  • Automatic cache invalidation on parser updates
  • Version tracking in metadata table
  • Seamless migration on upgrades

๐Ÿ“Š Interactive Graph Visualization (v3.2.3)

Features

Multiple Layouts:

  • ๐ŸŒณ Tree - Hierarchical tree structure
  • ๐Ÿ”ต Force - Force-directed physics simulation
  • ๐ŸŽฏ Radial - Radial tree from center
  • โš ๏ธ Conflict - Highlight dependency conflicts

Real-Time Filtering:

  • ๐Ÿ”ด Vulnerable - Show only packages with vulnerabilities
  • ๐Ÿ“ฆ Outdated - Show only outdated packages
  • ๐Ÿ—‘๏ธ Unused - Show only unused dependencies
  • โš ๏ธ Deprecated - Show only deprecated packages

Interactive Controls:

  • ๐ŸŽจ Switch layouts without page reload
  • ๐Ÿ” Filter packages in real-time
  • ๐Ÿ”ข Depth slider (1-10 levels)
  • ๐Ÿ”Ž Search for packages
  • ๐Ÿ–ฑ๏ธ Zoom and pan
  • ๐Ÿ’พ Export as PNG or JSON

Example

# Generate graph and open in browser
devcompass graph --open

# Force-directed layout showing only vulnerabilities
devcompass graph --layout force --filter vulnerable --open

# Custom output with depth limit
devcompass graph --output deps.html --depth 3 --open

Output

๐Ÿ“Š DevCompass - Dependency Graph
โœ” Generated graph with 86 nodes (4 with issues)
โœ” Graph exported: dependency-graph.html

๐Ÿ“ˆ GRAPH SUMMARY
  Format:        HTML
  Mode:          โœ“ Unified Interactive
  Layouts:       Tree, Force, Radial, Conflict (switchable)
  Filters:       All, Vulnerable, Outdated, Unused, Deprecated (switchable)
  Total Nodes:   86
  Total Links:   163
  File Size:     144.68 KB
  Enriched:      โœ“ Analysis data applied

๐Ÿ“ธ Snapshot Management (v3.2.3)

Features

Save Snapshots:

  • ๐Ÿ’พ Manual snapshot creation
  • ๐Ÿ“Š Captures complete project state
  • ๐Ÿท๏ธ Includes health scores and metadata
  • โฐ Timestamped automatically

List Snapshots:

  • ๐Ÿ“‹ Table view of all snapshots
  • ๐Ÿ” Filter by project name
  • ๐Ÿ“Š Shows health scores and dependency counts
  • ๐Ÿ“… Sorted by date

View Details:

  • ๐Ÿ“Š Complete snapshot information
  • ๐Ÿ”ด Vulnerability status
  • ๐Ÿ“ฆ Outdated package list
  • ๐Ÿ—‘๏ธ Unused dependencies
  • ๐Ÿ’ฏ Health metrics

Example

# Save current state
$ devcompass snapshot save
๐Ÿ“ธ Saving Snapshot...
โœ… Snapshot saved successfully!

๐Ÿ“ธ Snapshot Info:
   ID: 71
   Packages: 6
   Dependencies: 163
   Duration: 12ms

# List all snapshots
$ devcompass snapshot list

๐Ÿ“‹ Dependency Snapshots

ID    Project          Version     Health    Deps    Date
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
71    test-project     1.0.0       0.5       6       2026-05-01 1:45:23 PM
70    test-project     1.0.0       0.5       6       2026-04-30 7:37:27 AM
69    devcompass       3.2.4       7.5       7       2026-04-30 6:02:45 AM

Total: 20 snapshot(s)

# View details
$ devcompass snapshot view 71

๐Ÿ“ธ Snapshot #71

Project Information:
  Name: test-project
  Version: 1.0.0
  Date: 2026-05-01 1:45:23 PM

Health Metrics:
  Health Score: 0.5/10
  Total Dependencies: 6
  CVE Vulnerabilities: 12 (MEDIUM)

Package Summary:
  ๐Ÿ”ด Vulnerable: 4
  ๐Ÿ“ฆ Outdated: 6
  ๐Ÿ—‘๏ธ  Unused: 2

๐Ÿ”„ Snapshot Comparison (v3.2.3)

Features

Compare Snapshots:

  • ๐Ÿ“Š Side-by-side diff
  • โž• Show added packages
  • โž– Show removed packages
  • ๐Ÿ”„ Show version changes
  • ๐Ÿ“ˆ Track health score changes
  • ๐Ÿ›ก๏ธ Track CVE vulnerability changes
  • ๐Ÿ“ Export reports

Example

# Compare two snapshots
$ devcompass compare 69 71

โœ” Comparison complete (0ms)

๐Ÿ“Š Snapshot Comparison

Snapshots:
  #69 โ†’ #71
  2026-04-30 06:02:45 โ†’ 2026-05-01 13:45:23

Changes:
  Total Packages: 7 โ†’ 6 (-1)
  Health Score: 7.50 โ†’ 0.50 (-7.00) โŒ
  CVE Vulnerabilities: 0 โ†’ 12 (+12) ๐Ÿ”ด

  Added: 0
  Removed: 1
  Updated: 3
  Unchanged: 3

๐Ÿ—‘๏ธ Removed Packages (1):
  - better-sqlite3 (11.14.0)

๐Ÿ”„ Updated Packages (3):
  โŸณ axios
     Version: 0.27.2 โ†’ 0.21.1
     Health: 9.0 โ†’ 6.2 (-2.8)
     ๐Ÿ”ด New vulnerabilities detected: 2 MEDIUM CVEs

  โŸณ chalk
     Version: 5.4.2 โ†’ 4.1.2
     Health: 10.0 โ†’ 8.5 (-1.5)

  โŸณ lodash
     Version: 4.17.21 โ†’ 4.17.20
     Health: 9.0 โ†’ 7.0 (-2.0)
     ๐Ÿ”ด New vulnerabilities detected: 2 MEDIUM CVEs

๐Ÿ’พ Backup Management (v3.2.3)

Features

Backup Operations:

  • ๐Ÿ“ฆ List all backups with metadata
  • ๐Ÿ”„ Restore from specific backup
  • ๐Ÿ“‹ Show detailed backup info
  • ๐Ÿงน Clean old backups
  • ๐Ÿ›ก๏ธ Safety confirmations
  • ๐Ÿ“Š Track backup reasons

Example

# List all backups
$ devcompass backup list

๐Ÿ’พ DevCompass Backups

Found 3 backup(s):

1. backup-2026-04-26T19-50-37-541Z
   Created: Apr 27, 2026 01:20:37 (3 days ago)
   Files: package.json, package-lock.json
   Reason: Before automated fixes
   Fixes pending: 3
   Health score: 0.5/10

2. backup-2026-04-26T18-12-33-397Z
   Created: Apr 26, 2026 23:42:33 (3 days ago)
   Files: package.json, package-lock.json
   Reason: Before automated fixes
   Fixes pending: 3
   Health score: 0.5/10

๐Ÿ’ก COMMANDS:
   Restore: devcompass backup restore --name backup-2026-04-26T19-50-37-541Z
   Info: devcompass backup info --name backup-2026-04-26T19-50-37-541Z
   Clean: devcompass backup clean

# Restore from backup
$ devcompass backup restore --name backup-2026-04-26T19-50-37-541Z

๐Ÿ”„ DevCompass Backup Restore

Backup details:
  Name: backup-2026-04-26T19-50-37-541Z
  Created: Apr 27, 2026 01:20:37
  Files: package.json, package-lock.json

โš ๏ธ  WARNING: This will overwrite your current package.json and package-lock.json

Continue with restore? (y/N): y

Step 1: Creating backup of current state...
โœ“ Current state backed up: backup-2026-05-01T13-50-15-123Z

Step 2: Restoring from backup...
โœ“ Backup restored successfully!

Files restored:
  โœ“ package.json
  โœ“ package-lock.json

โš ๏ธ  IMPORTANT: Run npm install to sync node_modules

๐Ÿค– AI-Powered Analysis Guide (v3.2.2)

Quick Start

1. Install Ollama (FREE local AI):

# Install Ollama
curl -fsSL https://ollama.com/install.sh | sh

# Start Ollama
ollama serve

# Pull a model
ollama pull llama3.2

# Add to DevCompass
devcompass llm add --provider local --model llama3.2 --base-url http://localhost:11434

# Test it
devcompass llm test local

# Use it!
devcompass analyze --ai

2. Or use OpenAI:

# Get API key from: https://platform.openai.com/api-keys

# Add provider
devcompass llm add --provider openai --token sk-your-key --model gpt-4o-mini

# Test connection
devcompass llm test openai

# Use it!
devcompass analyze --ai

Example AI Interactions

Get Analysis:

$ devcompass analyze --ai

๐Ÿค– AI Recommendations

๐Ÿ”ด CRITICAL (Do Now):
- Security Vulnerabilities (12 CVEs detected)
  โ†’ Run: npm audit fix
  โ†’ Why: MEDIUM severity issues in axios, express, lodash

๐ŸŸก HIGH PRIORITY (This Week):
- Update axios (0.21.1 โ†’ 1.15.2)
  โ†’ Why: Contains 2 known CVEs (GHSA-3p68-rc4w-qgx5, GHSA-43fc-jf86-j433)
  โ†’ Breaking changes: Response format changed

Ask Questions:

$ devcompass ai ask "Should I update axios from 0.21.1 to 1.15.2?"

๐Ÿค– Yes, you should update axios:

Security: Version 0.21.1 has 2 MEDIUM CVEs detected:
- GHSA-3p68-rc4w-qgx5: NO_PROXY Hostname Normalization Bypass
- GHSA-43fc-jf86-j433: Denial of Service vulnerability

Breaking Changes: Response.data format changed, error handling updated
Migration: Update interceptors, test error handling
Command: npm install axios@latest

Test thoroughly before deploying!

Find Alternatives:

$ devcompass ai alternatives moment

๐Ÿ” Finding alternatives for "moment"

๐Ÿค– Top 3 Alternatives:

1. date-fns (~2KB vs 67KB)
   - Tree-shakeable, modern API
   - Migration: Easy (similar methods)
   
2. dayjs (~2KB)
   - moment.js compatible API
   - Migration: Drop-in replacement
   
3. Luxon (~15KB)
   - Better timezone support
   - Migration: Medium (different API)

Recommendation: Use date-fns for best bundle size

๐Ÿ“Š Historical Tracking System (v3.2.1)

Track your dependency evolution over time with automatic snapshots, comparison tools, and timeline visualization.

How It Works

1. Auto-Save on Analyze Every time you run devcompass analyze, a snapshot is automatically saved:

devcompass analyze

# Output:
# โœ” Scanned 6 dependencies in project
# ๐Ÿ“ธ Snapshot saved (ID: 40, 19ms)
#    Use "devcompass history list" to view all snapshots

2. View Your History

devcompass history list
# Or use the new snapshot command:
devcompass snapshot list

3. Compare Changes

devcompass compare 38 40

4. Visualize Trends

devcompass timeline --open

๐Ÿ› Troubleshooting

"CVE detection not working"

# Make sure you ran analyze first
devcompass analyze

# Check if CVE database exists
ls ~/.devcompass/cve.db

# Clear cache and try again
devcompass cve cache --clear
devcompass analyze

"NVD API key invalid"

# Test your API key
devcompass cve test

# If invalid, get a new key from:
# https://nvd.nist.gov/developers/request-an-api-key

# Remove old key and add new one
devcompass cve key --remove
devcompass cve key --set --api-key <new-key>

"All CVEs showing as UNKNOWN severity"

# This is a cache issue - clear it
devcompass cve cache --clear

# Run fresh scan
devcompass analyze

"CVE scan too slow"

# First run is always slower (2-5s for API calls)
# Subsequent runs use cache (<100ms)

# Check cache status
devcompass cve cache --stats

# If cache expired, it will re-fetch
# Cache TTL is 24 hours

"No analysis cache found"

# Run analyze first to generate cache
devcompass analyze

# Then generate graph
devcompass graph --open

"Graph not opening in browser"

# Check if HTML file was created
ls dependency-graph.html

# Manually open it
firefox dependency-graph.html
# or
chrome dependency-graph.html

"Snapshot list empty"

# Run analyze to create snapshots
devcompass analyze

# Check database exists
ls ~/.devcompass/history.db

# List snapshots
devcompass snapshot list

"Snapshot not found"

# List available snapshots first
devcompass snapshot list

# Use valid ID from list
devcompass snapshot view 70

"Backup list empty"

# Backups are created by fix command
devcompass fix --dry-run

# Check backup directory
ls -la .devcompass-backups/

"Cannot restore backup"

# List available backups
devcompass backup list

# Use exact backup name
devcompass backup restore --name backup-2026-04-26T19-50-37-541Z

"No AI provider configured"

# Add a provider first
devcompass llm add --provider local --model llama3.2 --base-url http://localhost:11434

# Or use OpenAI
devcompass llm add --provider openai --token sk-xxx --model gpt-4o-mini

"Ollama connection failed"

# Check Ollama is running
ps aux | grep ollama

# Restart Ollama
ollama serve &

# Test connection
devcompass llm test local

Common Issues

"Command not found"

npm install -g devcompass@3.2.4

Old version

npm update -g devcompass
devcompass --version  # Should show 3.2.4

๐Ÿค Contributing

Contributions welcome!

Ways to Contribute:

  • Add Package Alternatives

    • Edit data/quality-alternatives.json
    • Submit PR with new deprecated package alternatives
  • Improve AI Prompts

    • Edit src/ai/prompt-templates.js
    • Make recommendations more helpful
  • Add AI Providers

    • Create new provider in src/ai/providers/
    • Follow existing provider patterns
  • Improve Graph Layouts

    • Edit src/dashboard/scripts/layouts.js
    • Add new visualization styles
  • Enhance CVE Detection

    • Improve severity parsing in src/cve/osv-client.js
    • Add more vulnerability sources
    • Enhance caching strategies
  • Code Contributions

    • Fork the repository
    • Create feature branch (git checkout -b feature/amazing)
    • Commit changes (git commit -m 'Add feature')
    • Push branch (git push origin feature/amazing)
    • Open Pull Request

๐Ÿ“„ License

MIT ยฉ Ajay Thorat

๐ŸŒŸ What's Next?

Completed Features:

  • CVE vulnerability detection (v3.2.4) โœ…
  • OSV + NVD integration (v3.2.4) โœ…
  • Encrypted API key storage (v3.2.4) โœ…
  • Smart caching system (v3.2.4) โœ…
  • Graph visualization (v3.2.3) โœ…
  • Snapshot management (v3.2.3) โœ…
  • Snapshot comparison (v3.2.3) โœ…
  • Backup management (v3.2.3) โœ…
  • AI-powered analysis (v3.2.2) โœ…
  • Multi-provider LLM support (v3.2.2) โœ…
  • Interactive AI chat (v3.2.2) โœ…
  • Package alternatives with AI (v3.2.2) โœ…
  • Historical tracking (v3.2.1) โœ…
  • Timeline visualization (v3.2.1) โœ…
  • Unified dashboard (v3.2.0) โœ…
  • Intelligent clustering (v3.1.6) โœ…

Planned Features:

  • CVSS Score Visualization - Visual severity indicators
  • CVE Trend Analysis - Track vulnerability trends over time
  • Automated CVE Fixes - Auto-update vulnerable packages
  • Cloud Snapshot Sync - Sync snapshots across team
  • Graph Export Formats - PDF, SVG export
  • Web Dashboard - Team health monitoring with AI insights
  • Monorepo Support - Multi-project AI analysis
  • Automated Backup Policies - Schedule automatic backups
  • Snapshot Diff Visualization - Visual diff tool

Want to contribute? Pick a feature and open an issue! ๐Ÿš€

๐Ÿ“Š Version History

v3.2.4 (2026-05-01) - CVE Vulnerability Detection

  • ๐Ÿ›ก๏ธ CVE Detection System - Real-time vulnerability scanning
  • ๐Ÿ” OSV API Integration - Primary source (no key required)
  • ๐Ÿ›๏ธ NVD API Integration - Secondary enrichment (optional)
  • โšก Smart Caching - 24-hour TTL, <100ms cached scans
  • ๐Ÿ”’ Encrypted Storage - AES-256-GCM for API keys
  • ๐ŸŽจ Severity Classification - CRITICAL/HIGH/MEDIUM/LOW
  • ๐Ÿ“Š Detailed Reports - CVE IDs, summaries, references
  • ๐Ÿ’พ Batch Processing - Concurrent vulnerability checks
  • โœ… Zero breaking changes (100% backward compatible)

v3.2.3 (2026-04-30) - Feature Complete

  • ๐ŸŽฏ All 10 commands now working (was 6/10)
  • ๐Ÿ“Š Graph visualization - Interactive dependency graphs with 4 layouts
  • ๐Ÿ“ธ Snapshot management - Save/list/view/delete snapshots
  • ๐Ÿ”„ Snapshot comparison - Side-by-side diff with health tracking
  • ๐Ÿ’พ Backup management - Manual backup operations
  • โšก Instant operations (<1ms for most commands)
  • โœ… Zero breaking changes (100% backward compatible)

v3.2.2 (2026-04-27) - AI-Powered Analysis

  • ๐Ÿค– Multi-provider AI integration (OpenAI, Anthropic, Google, Ollama)
  • ๐Ÿ’ฌ Interactive AI chat with conversation history
  • ๐Ÿ”„ AI-powered package alternative suggestions
  • ๐Ÿ”’ AES-256-GCM encrypted token storage
  • ๐Ÿ“Š Cost tracking and usage statistics
  • โšก Real-time streaming responses
  • ๐Ÿ†“ FREE local AI option with Ollama
  • ๐Ÿ“ Context-aware recommendations
  • โœ… Zero breaking changes (100% backward compatible)

v3.2.1 (2026-04-26) - Historical Tracking System

  • ๐Ÿ“Š SQLite database for snapshot storage
  • ๐Ÿ” Snapshot comparison with side-by-side diff
  • ๐Ÿ“ˆ Timeline visualization with D3 charts
  • ๐Ÿ—‚๏ธ 9 flexible date formats
  • โšก 6-83ร— performance improvements
  • ๐Ÿ› Bug fixes for typosquatting and security

v3.2.0 (2026-04-25) - Unified Dashboard

  • ๐ŸŽจ Unified modular architecture (50% code reduction)
  • ๐Ÿ“Š Analytics layout
  • ๐ŸŒ™ Dark/light themes
  • โšก 4-6ร— performance improvements

Made with โค๏ธ by Ajay Thorat

DevCompass v3.2.4 - Complete Dependency Intelligence + Security Platform! ๐Ÿงญโœจ

Like Lighthouse for your dependencies, now with real-time CVE detection ๐Ÿ›ก๏ธโšก

Keywords

dependencies

FAQs

Package last updated on 01 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts