Professional dependency health checker with AI-powered insights, real-time CVE detection, and comprehensive project analysis
DevCompass is a comprehensive dependency analysis platform that combines security scanning, health monitoring, and AI-powered recommendations into a single powerful CLI tool. Built for modern JavaScript projects, it provides enterprise-grade insights with developer-friendly workflows.
npm audit and Dependabot are free, zero-install, and already in your workflow β
DevCompass isn't trying to replace them. It covers what they structurally don't:
| npm audit | Dependabot | OSV-Scanner | DevCompass | |
|---|---|---|---|---|
| CVE scanning | β (GitHub Advisory DB) | β | β (OSV) | β (OSV + NVD) |
| Ecosystem scope | npm only | multi | multi (npm, PyPI, Go, Maven, Cargo, β¦) | npm only |
| License conflicts | β | β | partial (deps.dev license lookup, no conflict analysis) | β |
| Unused dependency detection | β | β | β | β |
| Historical health trends | β | β | β | β |
| AI-suggested alternatives | β | β | β | β |
| Interactive dependency graph | β | β | β | β (Tree/Force/Radial/Conflict/Analytics) |
| Safe auto-fix w/ rollback | partial | PR-based | experimental (osv-scanner fix, no rollback) |
β w/ automatic backup |
OSV-Scanner (Google/OpenSSF) is the closest open-source relative β it queries the same OSV.dev database DevCompass uses, but it's a general-purpose, multi-ecosystem CLI with no npm-specific health scoring, unused-dependency detection, history, or AI layer. Container-focused scanners like Trivy and Grype go further into OS packages, IaC, and images, but treat npm as just one of many ecosystems rather than the primary target. Retire.js is npm/JS-specific like DevCompass but scans against its own curated vulnerability feed rather than OSV, and is purely a detector with no health scoring, history, or fix automation.
DevCompass analyzes your project dependencies to provide actionable insights about:
- π‘οΈ Security - Real-time CVE detection with OSV + NVD integration
- π Health - Dependency quality, maintenance status, and project health scores
- π€ Intelligence - AI-powered recommendations and package alternatives
- π History - Track changes over time with snapshots and timeline visualization
- π¨ Visualization - Interactive dependency graphs with 5 layouts (Tree, Force, Radial, Conflict, Analytics)
- π§ Automation - Auto-fix issues with intelligent risk classification
What is DevCompass?
DevCompass is a free, open-source (MIT) CLI tool that analyzes Node.js/npm project dependencies for security vulnerabilities, license conflicts, unused packages, and outdated versions, then can safely auto-fix what it finds. Install it with npm install -g devcompass and run devcompass analyze.
What's a good alternative to npm audit for scanning npm dependencies?
DevCompass is a drop-in complement to npm audit: it uses the same OSV vulnerability database plus optional NVD enrichment for CVSS scores, and adds license-conflict detection, unused-dependency detection, historical health trends, and safe auto-fix with automatic backup β none of which npm audit does. See the comparison table above.
Does DevCompass replace Dependabot? No, and it isn't trying to. Dependabot opens PRs for outdated/vulnerable dependencies inside GitHub; DevCompass is a local CLI you run anytime, without a GitHub integration, and it additionally covers license conflicts, unused dependencies, and health scoring, which Dependabot doesn't.
Is DevCompass free? Yes. The core tool β CVE scanning, health scoring, auto-fix, graphs, history β is free and open source. AI features are optional and only cost money if you connect a paid provider (OpenAI/Anthropic/Google); using the built-in local Ollama support keeps AI analysis free too.
What vulnerability databases does DevCompass use? OSV (Open Source Vulnerabilities) is the primary, no-API-key-required source. NVD (NIST's National Vulnerability Database) is an optional secondary source for CVSS severity scores, enabled with a free API key.
Does DevCompass send my code anywhere?
Dependency names and versions are sent to OSV (and NVD, if configured) to look up known vulnerabilities β that's how any CVE scanner works. Your source code is never uploaded. AI features send dependency metadata (not source code) to whichever provider you configure; using devcompass llm add --provider local (Ollama) keeps everything on your machine.
Can I use DevCompass without an OpenAI API key? Yes. AI features work with OpenAI, Anthropic, Google, or a fully free/local Ollama model β see the AI Integration Guide. Every other feature (CVE scanning, health scoring, auto-fix, graphs, history) works with no AI provider configured at all.
Does DevCompass automatically fix vulnerable or outdated dependencies?
Yes β devcompass fix classifies fixes as safe/moderate/risky, previews changes, takes an automatic backup, and supports rollback. Run devcompass fix --dry-run to preview without changing anything.
Does DevCompass work in CI/CD pipelines?
Yes β devcompass analyze --ci --threshold 8.0 exits non-zero when the health score drops below the threshold, and --json produces machine-readable output for pipelines. See CI/CD Integration.
Real-time CVE scanning with industry-standard databases:
- Dual-Source Detection - OSV (free) + NVD (optional API key)
- CVSS Severity Scoring - CRITICAL/HIGH/MEDIUM/LOW classification
- Smart Caching - 24-hour local cache for instant subsequent scans
- Encrypted Storage - AES-256-GCM for API keys
- Batch Processing - Concurrent vulnerability checks for performance
Get intelligent insights with multi-provider LLM support:
- 4 AI Providers - OpenAI, Anthropic, Google, or local Ollama
- Interactive Chat - Ask questions about your dependencies
- Smart Alternatives - AI-suggested package replacements
- Context-Aware - Recommendations based on your project state
- FREE Option - Use local Ollama for zero-cost AI analysis
Monitor dependency evolution with comprehensive tracking:
- Auto-Snapshots - Automatic state capture on every analysis
- Comparison Tools - Side-by-side diff between snapshots
- Timeline Visualization - Interactive D3 charts showing trends
- SQLite Database - Fast, reliable local storage
Explore dependencies with rich, interactive graphs:
- 5 Layout Modes - Tree, Force-directed, Radial, Conflict, Analytics
- Real-Time Filtering - Show only vulnerable, outdated, or unused packages
- Dark/Light Themes - Comfortable viewing in any environment
- Export Options - PNG, JSON, or interactive HTML
Automated issue resolution with safety guarantees:
- Risk Classification - Safe, moderate, and risky fixes identified
- Preview Mode - See all changes before applying
- Automatic Backups - Restore point before any modifications
- Interactive Confirmation - Review and approve changes
# Global installation (recommended)
npm install -g devcompass
# Local project installation
npm install --save-dev devcompass
# One-time use with npx
npx devcompass analyze# Run your first analysis (shows Top 3 critical issues)
devcompass analyze
# Get full detailed report
devcompass analyze --deep
# Get AI-powered recommendations
devcompass analyze --ai
# Generate interactive dependency graph
devcompass graph --open
devcompass analyze against a project pinned to axios@0.21.1, lodash@4.17.15, and minimist@1.2.5 β all three carry real, disclosed CVEs
# Get free NVD API key from: https://nvd.nist.gov/developers/request-an-api-key
devcompass cve key --set --api-key YOUR_KEY
# Test connection
devcompass cve test
# Run analysis with CVE detection
devcompass analyzeComprehensive dependency analysis with security scanning and health metrics.
# Basic analysis (Top 3 critical issues)
devcompass analyze
# Full detailed report (all issues)
devcompass analyze --deep
# With AI recommendations
devcompass analyze --ai
# JSON output for CI/CD
devcompass analyze --json
# Silent mode (no output)
devcompass analyze --silent
# CI mode (exit code based on health)
devcompass analyze --ci
# CI mode with custom threshold
devcompass analyze --ci --threshold 8.0Output Modes:
- Default - Top 3 critical issues (clean, focused output)
- Deep - Complete analysis with all issues categorized
- JSON - Structured data for automation
- Silent - No output (exit code only for scripting)
Health Score Icons:
- π’ 9.0-10.0 - Excellent (Outstanding health)
- β 8.0-8.9 - Good (Healthy project)
β οΈ 6.0-7.9 - Needs Attention (Some issues)- π 4.0-5.9 - Poor (Many issues)
- π΄ 0.0-3.9 - Critical (Urgent action needed)
Manage CVE detection settings and vulnerability database.
# Configure NVD API key
devcompass cve key --set --api-key YOUR_KEY
devcompass cve key # Show current status
devcompass cve key --remove # Remove stored key
# Test API connection
devcompass cve test
# Cache management
devcompass cve cache --stats # View cache statistics
devcompass cve cache --clear # Clear cached dataGetting NVD API Key:
- Visit NVD Developer Portal
- Enter email and organization
- Activate via email link (valid 7 days)
- Configure in DevCompass
Cache Behavior:
- TTL: 24 hours
- Performance: First run 2-5s, cached <100ms
- Storage: SQLite local database
Checking NVD key status and CVE cache statistics β both read-only, never touch your stored key
Fix dependency issues with intelligent risk classification and safety guarantees.
# Interactive fix with preview (NEW default behavior)
devcompass fix
# Skip confirmation
devcompass fix --yes
# Include all fixes (including risky)
devcompass fix --all
# Preview only (no changes)
devcompass fix --dry-run
# Also rewrite source call-sites broken by a major-version update
devcompass fix --migrate-syntax
# Undo the most recent --migrate-syntax run
devcompass fix undoSafety Features:
- Automatic backup before changes
- Risk classification (safe/moderate/risky)
- Interactive preview and confirmation
- Live
package.jsondiff in the preview, before you confirm - Health score tracking (before β after)
- Rollback support (
devcompass fix undofor--migrate-syntax,devcompass backup restoreotherwise)
--migrate-syntax: for any fix action that crosses a major version, scans the project for files that require()/import the updated package and rewrites the call-sites β a built-in codemod when one's registered, otherwise your configured AI provider (devcompass llm add). Every file it touches is snapshotted first, so nothing is committed automatically: review the changes, run your tests, and either keep them or run devcompass fix undo to revert the whole run.
Same project as above β preview, confirm, automatic backup, then a real health score jump from 4.0 to 10.0
Generate interactive dependency graphs with multiple layouts and filters.
# Generate graph with default settings
devcompass graph
# Specify layout
devcompass graph --layout force # Force-directed
devcompass graph --layout radial # Radial tree
devcompass graph --layout conflict # Highlight conflicts
devcompass graph --layout analytics # Analytics dashboard view
# Apply filters
devcompass graph --filter vulnerable # Security issues only
devcompass graph --filter outdated # Outdated packages
devcompass graph --filter unused # Unused dependencies
# Customize output
devcompass graph --output my-deps.html
devcompass graph --width 1600 --height 900
devcompass graph --depth 5
# Open in browser
devcompass graph --openInteractive Features:
- Switch layouts without reload
- Real-time filtering
- Depth control slider
- Search functionality
- Zoom and pan
- Export as PNG/JSON
devcompass graph --layout force --filter vulnerable
Manage project state snapshots for comparison and tracking.
# Save current state
devcompass snapshot save
# List snapshots
devcompass snapshot list
devcompass snapshot list --limit 50
devcompass snapshot list --project myapp
# View details
devcompass snapshot view 123
devcompass snapshot view 123 --verbose
# Delete snapshot
devcompass snapshot delete 123
devcompass snapshot delete 123 --yes
Listing snapshots for a project, then viewing one in detail
Compare two snapshots to track changes over time.
# Basic comparison
devcompass compare 51 52
# Detailed comparison
devcompass compare 51 52 --verbose
# Save report
devcompass compare 51 52 -o report.md
Real before/after: same project across two snapshots, health 4.96 β 10.00 after devcompass fix
View and analyze snapshot history across all projects, or filtered to one.
# List all snapshots
devcompass history list
devcompass history list --limit 50
devcompass history list --project myapp
# Filter by date
devcompass history list --date 25-08-2026 # Specific day
devcompass history list --month 08-2026 # Specific month
devcompass history list --year 2026 # Specific year
devcompass history list --from 01-08-2026 --to 28-08-2026
# Monthly summary
devcompass history summary
# Statistics (totals, first/last snapshot, average health)
devcompass history stats
# Delete old snapshots beyond a threshold (default: keep last 30)
devcompass history cleanup
devcompass history cleanup --keep 10 --project myappNote:
historyonly takes a subcommand β it has no per-snapshot detail view. Usedevcompass snapshot view <id>(above) ordevcompass compare <id1> <id2>for a single snapshot's details.
devcompass history list --project docs-demo-project followed by devcompass history stats
Generate a health-score trend summary and an interactive HTML timeline showing dependency evolution.
# Generate timeline (last 30 days, all projects)
devcompass timeline
# Customize timeframe
devcompass timeline --days 30
devcompass timeline --days 90
# Filter to one project
devcompass timeline --project myapp
# Custom output path
devcompass timeline --output my-timeline.html
# Open in browser
devcompass timeline --open
Trend detection picks up the real 4.96 β 10 jump and labels it "improving"
Manage package.json and package-lock.json backups.
# List backups
devcompass backup list
# Show backup details
devcompass backup info --name backup-2025-05-10T19-50-37-541Z
# Restore from backup
devcompass backup restore --name backup-2025-05-10T19-50-37-541Z
devcompass backup restore --name backup-xxx --force
# Clean old backups
devcompass backup clean # Keep latest 5
devcompass backup clean --keep 3 # Keep latest 3
Restore automatically snapshots the current state first, then rolls back package.json / package-lock.json
Interact with AI for dependency analysis and recommendations.
# Ask questions
devcompass ai ask "Why is axios outdated?"
devcompass ai ask "Should I update to React 19?"
# Get package alternatives
devcompass ai alternatives moment
# Interactive chat
devcompass ai chat
# Get recommendations
devcompass ai recommend
Real response from a free local model (Ollama) β no API key, no cost
Configure and manage AI/LLM providers.
# Add 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
# List providers
devcompass llm list
# Set default
devcompass llm default openai
# Test connection
devcompass llm test openai
# View usage statistics
devcompass llm stats
# Update provider
devcompass llm update openai --model gpt-4o
# Remove provider
devcompass llm remove anthropic
Listing the configured local (Ollama) provider and testing the connection
Manage DevCompass settings.
# Set GitHub token (avoid rate limits)
devcompass config --github-token YOUR_TOKEN
# Show current configuration
devcompass config --show
# Remove GitHub token
devcompass config --remove-github-tokenManage the .devcompass/ output directory in the current project (cache, backups, generated graphs, reports, exports, and temp files).
# Show a summary of what's stored, with cleanup options
devcompass clean
# Clean everything
devcompass clean --all
# Clean one category at a time
devcompass clean --cache # Cached analysis results
devcompass clean --backups # Internal .devcompass/backups/ (rarely populated β see note below)
devcompass clean --temp # Temporary files
devcompass clean --graphs # Generated dependency-graph HTML files
devcompass clean --reports # Generated reports
# Skip the confirmation prompt
devcompass clean --graphs --forceRunning devcompass clean with no flags never deletes anything β it prints a summary (file counts and size per category) and the list of available flags; you always pass an explicit category (or --all) to actually clean something, plus --force to skip the "Continue? (y/N)" prompt.
Note:
--backupshere only clears the.devcompass/backups/directory tracked by this command's own output manager. Thepackage.json/package-lock.jsonbackups thatfixandbackup restoreactually create and use live in<project>/.devcompass-backups/(a separate directory) β manage those withdevcompass backup clean, notdevcompass clean --backups.
DevCompass integrates with two industry-standard vulnerability databases:
-
OSV (Open Source Vulnerabilities) - Primary source, no API key required
- Comprehensive npm package coverage
- GitHub Security Advisories
- Fast, free, always available
-
NVD (National Vulnerability Database) - Secondary enrichment, optional
- Official NIST CVE database
- CVSS severity scores
- Detailed vulnerability metadata
Every devcompass analyze automatically:
- Scans all project dependencies
- Queries OSV database for vulnerabilities
- Enriches with NVD data (if configured)
- Caches results locally for 24 hours
- Reports findings with severity levels
π‘οΈ 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
β 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
π‘ Sources: OSV + NVD
Run npm audit fix to address vulnerabilities
| Operation | Without Cache | With Cache | Improvement |
|---|---|---|---|
| 6 packages | 2-5 seconds | <100ms | 20-50Γ faster |
| CVE lookup | 300-500ms | <10ms | 30-50Γ faster |
| Full scan | 8-12 seconds | 5-6 seconds | ~50% faster |
# 1. Install Ollama
curl -fsSL https://ollama.com/install.sh | sh
# 2. Start Ollama
ollama serve
# 3. Pull a model
ollama pull llama3.2
# 4. Configure DevCompass
devcompass llm add --provider local --model llama3.2 --base-url http://localhost:11434
# 5. Test it
devcompass llm test local
# 6. Use it!
devcompass analyze --ai
devcompass ai ask "What should I update first?"# Get API key from: https://platform.openai.com/api-keys
# Configure
devcompass llm add --provider openai --token sk-YOUR-KEY --model gpt-4o-mini
# Test
devcompass llm test openai
# Use
devcompass analyze --aiAnalysis Integration:
- Automatic health assessment
- Risk prioritization
- Breaking change warnings
- Migration guidance
Interactive Q&A:
devcompass ai ask "Why is my health score low?"
devcompass ai ask "Should I update axios?"
devcompass ai ask "What are the breaking changes in React 19?"Package Alternatives:
devcompass ai alternatives moment
# Returns:
# 1. date-fns (~2KB vs 67KB) - Tree-shakeable, modern API
# 2. dayjs (~2KB) - moment.js compatible, drop-in replacement
# 3. Luxon (~15KB) - Better timezone support, richer featuresInteractive Chat:
devcompass ai chat
# Opens interactive session:
# You: What's wrong with my dependencies?
# AI: You have 3 packages with known CVEs...
# You: Which should I fix first?
# AI: Priority 1 is axios because...# In your CI pipeline
devcompass analyze --ci --json > analysis.json
# Check exit code
# 0 = health score above threshold
# 1 = health score below threshold# GitHub Actions example
- name: Dependency Health Check
run: |
npm install -g devcompass
devcompass analyze --ci# Weekly security scan
devcompass analyze --deep > security-report.txt
devcompass cve cache --stats
# Export for compliance
devcompass analyze --json | jq '.vulnerabilities'# Before updates
devcompass snapshot save
devcompass backup list
# Update dependencies
npm update
# Check impact
devcompass analyze
devcompass compare <before-id> <after-id>
# Rollback if needed
devcompass backup restore --name <backup-name># Generate weekly report
devcompass analyze --deep > weekly-report.txt
devcompass timeline --days 7 --open
# Track trends
devcompass history summary
devcompass history stats~/.devcompass/
βββ history.db # Snapshot database (analyze, snapshot, history, compare, timeline)
βββ cve.db # CVE cache + NVD API key
βββ ai.db # LLM provider settings + AI conversation/cost history
βββ config.db # Configuration (GitHub token)
βββ .encryption-salt # Salt for AES-256-GCM encryption of stored keys/tokens
<project>/.devcompass/ # Per-project output: cache, backups, graphs, reports, exports, temp
<project>/.devcompass-backups/ # package.json / package-lock.json backups (used by `fix` and `backup`)
Dynamic Package Tracking:
data/tracked-repos.json- GitHub repositories to monitordata/popular-packages.json- Common package patternsdata/quality-alternatives.json- Deprecated package replacementsdata/gpl-alternatives.json- GPL license alternatives
Batch Fix Categories:
data/batch-categories.json- Fix categorization rulesdata/priorities.json- Priority classification
Command not found
npm install -g devcompass
# or
npx devcompass analyzeOld version installed
npm update -g devcompass
devcompass --version # Should show 4.1.5No analysis cache found
# Run analyze first
devcompass analyze
# Then other commands work
devcompass graph --openCVE detection not working
# Clear cache
devcompass cve cache --clear
# Run fresh scan
devcompass analyzeNVD API key invalid
# Test connection
devcompass cve test
# Get new key from: https://nvd.nist.gov/developers/request-an-api-key
# Update key
devcompass cve key --remove
devcompass cve key --set --api-key NEW_KEYNo AI provider configured
# Add a provider
devcompass llm add --provider local --model llama3.2 --base-url http://localhost:11434Ollama connection failed
# Check if Ollama is running
ps aux | grep ollama
# Start Ollama
ollama serve
# Test connection
devcompass llm test local- π§¬
fix --migrate-syntaxrewrites source call-sites broken by a major-version update β a built-in codemod when one's registered, otherwise your configured AI provider β with every touched file snapshotted first - β©οΈ
fix undoreverts the most recent--migrate-syntaxrun in one command - π
fix's preview now shows a livepackage.jsondiff of exactly what each action will change - π Fixed
fixplanning both a remove and an update for the same package when it was flagged both unused and security/outdated
- π Fixed a GitHub token redirect leak and a dashboard XSS
- π Fixed
graph --layout analytics(was rejected by CLI validation), and predictive/security/ecosystem scans silently reporting "clean" on partial failure - π Added
docs/ARCHITECTURE.mdanddocs/TEST_AUDIT.md
- π¬ Regenerated
demo-overview.gif,demo-analyze.gif, anddemo-fix.gif- these were recorded on3.2.7and never re-recorded across five subsequent releases, so the README showed a version five majors/minors behind current.analyze/fixprint aDevCompass v${version}banner and--helpprints a "New in vX.X.X" line, both read live frompackage.json.
- π Fixed the maintainer portfolio link (
https://portfolio.ajaythorat.com/βhttps://www.ajaythorat.com) in the README,llms.txt, andpackage.json'sauthor.url
- π Added a README FAQ section and an
llms.txtfile for LLM/search discoverability - π Added maintainer portfolio/LinkedIn links
- π·οΈ Expanded
package.jsonkeywords and GitHub topics to cover existing features (SCA, CVSS, typosquatting, license compliance, Ollama)
- π― CVE severity/CVSS score/fix version are now real - the OSV batch endpoint
analyzerelies on only ever returned a bare{id, modified}per finding; every scan silently reported severityMEDIUM, CVSS0, and "Update to latest" regardless of the actual advisory. Each finding is now hydrated with its real data before being reported. - π CVSS scores no longer misread the spec version as the score -
"CVSS:3.1/..."vector strings are now scored with a real CVSS v3.1 calculation instead of a regex that grabbed "3.1" itself - π―
fixnow offers real target versions instead of "Update to latest" - the patched version is resolved from the advisory data and threaded through to the safe/moderate/risky classification - π
fixcan no longer silently run with no backup - a failed backup used to be swallowed and reported as success - π CLI numeric flags (
--limit,--width,--height,--keep,--days) no longer silently corrupted -parseIntwas being used as commander's option parser, turning the default value intoparseInt's radix - π
analyze --ci --threshold 0respected - previously silently reverted to the default 7.0 - π
llm testactually tests the connection instead of always reporting success - π AI chat now has real multi-turn memory
- β Added test coverage for the health-score and fix-risk-classification algorithms, and a CI job that runs the existing test suites against real fixture projects
- See CHANGELOG.md for the complete list
- β‘
analyzeno longer hangs on real projects -npm auditwas being run once per dependency instead of once per project (17x redundant on a 12-dep project); a project that used to take 2+ minutes now completes in ~25s - β‘ CVE scans reuse the 24h cache - the vulnerability cache existed but was never actually consulted by
analyze; repeat scans of an unchanged project now skip redundant OSV/NVD calls - π― CVE checks use the installed version, not the declared range -
"^4.17.0"was queried as4.17.0regardless of what actually resolved innode_modules, causing both false positives and false negatives - π CVE scan failures no longer look like a clean scan - a failed OSV/network call used to silently report "0 vulnerabilities"; now flagged as an incomplete scan instead
- π Duplicate issues no longer double-count - a package flagged by more than one quality/ecosystem collector was penalizing the health score twice
- π Custom AI provider base URLs (OpenAI/Anthropic/Google) now actually work - a naming mismatch meant a configured proxy/gateway URL was silently ignored
- π AI daily cost limit now persists across commands - it lived in memory only and reset on every CLI invocation
- π Fixed a
mysql2false-positive typosquatting flag, anunused-depsskip-list false negative, incorrect graph truncation metadata, and a couple of silent-failure/redundant-query bugs in snapshot comparison and version resolution - π Added a README comparison table (vs.
npm audit/Dependabot) and aCONTRIBUTING.md
- π Stale Version Strings -
analyze --jsonoutput, saved snapshot metadata, and theanalyze/fix/--helpheaders were hardcoded to3.2.6and had drifted from the actual running version; all now readpackage.jsonat runtime - π README Polish - Added a CI status badge and real terminal-recorded demo GIFs/screenshot
- π axios upgraded 1.15.2 β 1.19.0 β resolves HIGH-severity ReDoS, unbounded resource allocation, Proxy-Authorization credential leak, and prototype-pollution MITM advisories
- π form-data (transitive) upgraded 4.0.5 β 4.0.6 β resolves a CRLF injection via unescaped multipart field names/filenames
- β
npm auditreports 0 vulnerabilities - β
100% Backward Compatible - No code changes required (fixed within the existing
^1.6.0range)
- π Command Injection Fixes - Sanitized package names/versions before all
npm install/uninstallshell calls - π Path Traversal Fix - Backup restore/info/delete now validate backup names before touching the filesystem
- π Salted Key Derivation - API key encryption upgraded to salted
scrypt, with transparent decryption of tokens saved under the old scheme - π Shell Injection in Unused-Dependency Fallback - The
knip-unavailable fallback now runsgrepviaexecFileSyncinstead of a shell string, so a crafted dependency name in a scanned project'spackage.jsoncan't run arbitrary commands - π Graph Fixes - Diamond dependencies (shared by multiple packages) now render correctly instead of being dropped as false cycles
- π AI Cost Tracking - Fixed a 1000Γ pricing bug in provider cost estimates and switched to real token usage when providers report it
- π CVE Retry Logic - NVD lookups now back off on 5xx/network errors, not just HTTP 429
- π Snapshot/Timeline Fixes - Corrected field name and date-format mismatches that broke history comparisons and date-range queries
- π Unused Dependency Detection - Fixed
knipoutput parsing so unused packages are detected again - β 100% Backward Compatible - All existing features preserved
- π― Top 3 Issues default view for cleaner UX
- π‘οΈ Fix Preview with interactive confirmation
- ποΈ Modular Architecture - 31 new files, clean code organization
- β Silent & CI Modes - Better automation support
- π¨ Health Score Icons - Visual indicators (π’β
β οΈ π π΄) - π Enhanced Security - Command injection protection
- π 100% Backward Compatible - All existing features preserved
- π‘οΈ Real-time CVE vulnerability scanning
- π OSV + NVD database integration
- β‘ Smart caching (24-hour TTL)
- π Encrypted API key storage (AES-256-GCM)
- π¨ CVSS severity classification
- π Interactive graph visualization
- πΈ Snapshot management system
- π Snapshot comparison tools
- πΎ Backup management
- π€ Multi-provider LLM integration
- π¬ Interactive AI chat
- π Package alternative suggestions
- π FREE local AI with Ollama
- π SQLite snapshot database
- π Timeline visualization
- π Snapshot comparison
- π¨ Modular architecture
- π Analytics layout
- π Theme support
Contributions are welcome! Here's how you can help:
- Package Alternatives - Add to
data/quality-alternatives.json - AI Prompts - Improve
src/features/ai/prompt.templates.js - Graph Layouts - Enhance
src/dashboard/scripts/layouts.js - Documentation - Fix typos, add examples
See CONTRIBUTING.md for the full guide, including "good first issue" areas and the PR checklist.
# Fork and clone
git clone https://github.com/YOUR_USERNAME/devcompass.git
cd devcompass
# Create feature branch
git checkout -b feature/amazing-feature
# Make changes and test
npm test
# Commit with conventional commits
git commit -m "feat: add amazing feature"
# Push and create PR
git push origin feature/amazing-feature# Install dependencies
npm install
# Link for local testing
npm link
# Test your changes
devcompass analyze
# Run in different project
cd /path/to/test-project
devcompass analyzeMIT Β© Ajay Thorat β Portfolio Β· LinkedIn
- OSV - Open Source Vulnerabilities database
- NVD - National Vulnerability Database (NIST)
- OpenAI - GPT models
- Anthropic - Claude models
- Google - Gemini models
- Ollama - Local AI runtime
- Issues: GitHub Issues
- Email: ajaythorat988@gmail.com
- Documentation: Full Guide
- Maintainer: Ajay Thorat β Portfolio Β· LinkedIn
If DevCompass helps your project, please consider giving it a star! β
Made with β€οΈ by Ajay Thorat
DevCompass v4.1.5 - Professional Dependency Intelligence Platform π§β¨



