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.3.0.tar.gz (15.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.3.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: srcflow-0.3.0.tar.gz
  • Upload date:
  • Size: 15.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.3.0.tar.gz
Algorithm Hash digest
SHA256 d080522ae1940f108ebfc860891a6b1d0444595ccd584a26332e2ee8e5507b33
MD5 3e24c7566ccadc78964b314e7cf38631
BLAKE2b-256 721a3254e59a56af296305cc2b44509204e40becd9e6f9268e10f6b2c83aeeba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: srcflow-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec55fc3bdb35ade79e37f99ce2f246ae2a40b1decb8c905786881a58240ba73e
MD5 1910832a209babf231de29d56c95e624
BLAKE2b-256 97f40076ccd4a4d63da0a6a7abc78444534438045bb6e42ba128269cef7e8429

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