Skip to main content

Dependency flow visualizer for JS/TS/Python/Go/Rust/Java/C++ and more

Project description

srcflow

Dependency flow visualizer for any JS / TS / JSX / TSX repository.

Generates a single interactive HTML file — no server, no config, no dependencies. Every file is a box. Every import is an arrow. Click any file to see exactly what it depends on and what depends on it.

srcflow screenshot

Install

pip install srcflow

Requires Python 3.9+. No other dependencies.

Usage

# inside any JS/TS repo — generates depflow.html
cd /your/repo
srcflow

# target a specific repo from anywhere
srcflow /path/to/repo

# custom output path
srcflow /path/to/repo --out ~/Desktop/myrepo.html

# override source root (if not src/ or lib/)
srcflow /path/to/repo --src /path/to/repo/packages/web/src

What you get

Open depflow.html in any browser:

  • 5 columns auto-detected from your directory names: Model → Pages → Components → Services/Effects → Utils
  • 186 real import edges drawn as curved arrows between files
  • Click any file → its imports highlight blue (↓), files that import it highlight red (↑)
  • Double-click → smooth animated zoom into that file
  • Search → type any filename, jump with ↑↓, press Enter to focus
  • Column tabs → click a layer name to zoom the entire column into view
  • Scroll to zoom at cursor · drag to pan · pinch on trackpad

Supported languages

.js .jsx .ts .tsx .mjs .cjs

Parses ES6 import statements and CommonJS require() calls.

License

MIT — Saivamsi Chakrala

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

srcflow-0.5.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

srcflow-0.5.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file srcflow-0.5.0.tar.gz.

File metadata

  • Download URL: srcflow-0.5.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for srcflow-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e8e27b1b2800689a6c383adc811df7f3d0a3aba86e7709cf40a712ebba89c24f
MD5 5dc00bce525b493d6de4a3099a28eeef
BLAKE2b-256 bc9392b89c0008fb2d2d6fe2dcc8d488fe64ce4ae5173fbd229959aadf926c08

See more details on using hashes here.

File details

Details for the file srcflow-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: srcflow-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for srcflow-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6057ce5544d67a1d6dfc258bface5de01d98619c45e8dfbd07a455495df79013
MD5 76ce200d302492ed5737e20ae643b56d
BLAKE2b-256 108f44710ab97238f627ed540d8f1ffc90e044f15c56677f81641c122070487f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page