Skip to main content

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

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.1.0.tar.gz (14.0 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.1.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for srcflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c2afbb94e25dffcdac23bc7da9a0325601ebc375c3d9bda34a59e7233aff4c17
MD5 0536c148039347680504836997187918
BLAKE2b-256 ed701a9e1f340db2ecb22fe4cdfedf705b2a52d0b38ee9f414e686100b29375a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: srcflow-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca901a71bdb24ecefdacdd3925947c2c202ab9dbf8d8f67fab7ab291ca95e16e
MD5 ad1c9987d59b2eb8700292c42a55d696
BLAKE2b-256 3f80ae3ccd7f804f1546045061020fa3d2b2f13a54e5c574c83d425a3ad7f754

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