Skip to content
/ depvis Public

Fast, multi-language dependency graph visualizer with interactive web viewer

License

Notifications You must be signed in to change notification settings

mfinean/depvis

Repository files navigation

depvis

CI Crates.io License: MIT Rust

A fast, multi-language dependency graph visualizer written in Rust.

Scan any codebase and generate interactive dependency graphs showing how files, packages, and build targets connect.

Web Viewer

Features

  • Multi-language — JavaScript/TypeScript, Python, Rust, Go, npm, CMake, ROS
  • Interactive web viewer — D3.js force graph with search, filtering, and path finding
  • Multiple outputs — Text, JSON, DOT, PNG, SVG
  • Cycle detection — Find and report circular dependencies
  • Smart caching — Fast incremental updates

Try It

git clone https://github.com/mfinean/depvis.git
cd depvis
cargo run --release --features serve -- --root examples/sample_workspace --serve

Open http://127.0.0.1:7878 to explore the interactive graph.

Installation

Pre-built binaries — Download from GitHub Releases

Install with cargo:

cargo install --git https://github.com/mfinean/depvis.git --features serve

Or build from source:

git clone https://github.com/mfinean/depvis.git
cd depvis
cargo install --path . --features serve

Usage

# Scan current directory
depvis

# Launch interactive web viewer
depvis --serve

# Generate SVG visualization
depvis --svg output.svg

# Show only package-level dependencies
depvis --preset packages

# Detect circular dependencies
depvis --cycles

# Comprehensive graph analysis
depvis --analyze

Documentation

License

MIT