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.4.0.tar.gz (16.6 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.4.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for srcflow-0.4.0.tar.gz
Algorithm Hash digest
SHA256 74ebcfec57026db1cb345f2f057eb8671b5e31c224e41a79d311f391b71292ce
MD5 af50c3ac90d2f3157a620b91e92aa2fb
BLAKE2b-256 86846e9f36ac90264cc29516f3e62237415b7929569a727659009c8b06fc673a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: srcflow-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 16.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cd9440370258ac48320d61b50ce0e137eba3045beed08e3a42f3a30e9cdceaa
MD5 6bdc4a9506b931f99d50039872ac9bab
BLAKE2b-256 155b5728214ca7b68ce07c041a2b5092b16ee02f4692f16dd4a25ec420990cd6

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