Scans a project directory for Python, JavaScript, and TypeScript files, extracts import relationships, and generates an interactive D3.js force graph in a single HTML file.
pip install -e .
depviz /path/to/projectOpens dependencies.html with an interactive graph. Nodes are colored by language (Python blue, JS yellow, TS blue), sized by import count. Hover for details, drag to rearrange.
depviz . # scan current directory
depviz ./src -o graph.html # custom output
depviz . --ignore vendor legacy # skip directories
import xandfrom x import yin Pythonimport x from 'y'andrequire('y')in JS/TS- Resolves cross-file dependencies by matching import names to filenames
- Ignores
node_modules,.venv,__pycache__,.gitby default
MIT