One command → full visual map of your JavaScript/TypeScript project.
DepMap scans your codebase, builds a dependency graph, detects circular dependencies, and renders an interactive visualization in your browser.
# Install globally
npm install -g depmap
# In your project root
depmap startA browser window opens at http://localhost:3000 with an interactive graph of your entire codebase.
Scan the project and open an interactive visualization in the browser.
depmap start # Scan current directory
depmap start ./src # Scan specific folder
depmap start --port 8080 # Custom port
depmap start --exclude "**/*.test.ts" --exclude "**/mocks/**"Output dependency data as JSON (no server).
depmap analyze # Print JSON to stdout
depmap analyze --output deps.json # Save to fileCheck for circular dependencies. Exits with code 1 if any are found — perfect for CI/CD.
depmap check
depmap check ./src --exclude "**/*.test.ts".js · .jsx · .ts · .tsx · .mjs · .cjs
git clone <repo>
cd depmap
npm install
npm run build
node dist/cli.js start ./srcMIT