Skip to content

asddasqa23/Code-Dependency-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Dependency Visualizer

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.

Python License

Usage

pip install -e .
depviz /path/to/project

Opens 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.

Options

depviz .                          # scan current directory
depviz ./src -o graph.html        # custom output
depviz . --ignore vendor legacy   # skip directories

What it detects

  • import x and from x import y in Python
  • import x from 'y' and require('y') in JS/TS
  • Resolves cross-file dependencies by matching import names to filenames
  • Ignores node_modules, .venv, __pycache__, .git by default

License

MIT

About

A tool that parses a codebase and generates a visual graph of its dependencies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages