Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Quick Start

Scan your project

Just run ghostdep in your project directory:

ghostdep

Or point it at a specific path:

ghostdep -p /path/to/project

ghostdep auto-detects the language and manifest file. No configuration needed.

Read the output

[phantom] axios at src/api.js:3 (confidence: high)
[unused] lodash at package.json (confidence: high)

Found 1 phantom and 1 unused dependencies (12 files scanned in 3ms)
  • [phantom] = imported in code but not in your manifest
  • [unused] = in your manifest but never imported
  • The file and line number tell you where the import is
  • Confidence tells you how sure ghostdep is (see Confidence Scoring)

Exit codes

CodeMeaning
0No findings — your deps are clean
1Findings present
2Error (no manifest found, parse error, etc.)

Generate a config file

ghostdep init

Creates a .ghostdep.yaml with sensible defaults. See Configuration for details.

Fix your deps

Preview the fix commands:

ghostdep fix --dry-run

Or let ghostdep run them (with confirmation):

ghostdep fix --apply

See Auto-Fix for details.