A Visual Studio Code extension that visualizes file dependencies in a real-time interactive graph. Perfect for understanding code architecture and navigating complex TypeScript, JavaScript, Vue and Svelte projects.
Multi-Language Support: First-class support for TypeScript (.ts, .tsx), JavaScript (.js, .jsx), Vue (.vue), and Svelte (.svelte).
Cycle Detection: Automatically detects and highlights circular dependencies with red dashed lines and badges.
Smart Navigation: Navigate through your code history with a built-in "Back" button in the graph view.
Interactive Graph:
Expand/Collapse: Dynamically load dependencies by clicking the + / - buttons on nodes.
Bidirectional Navigation: Find files that reference the current file (reverse dependencies) by clicking the ◀ button on the root node. This scans the entire workspace to find all incoming references.
File Navigation: Click on any node to instantly open the corresponding file in the editor.
VS Code Integration: Native look and feel using VS Code themes, colors, and fonts.
Powered by ReactFlow & Dagre: Smooth, automatic graph layout that adjusts as you explore.
Prerequisites
Node.js: v24 or higher
VS Code: v1.85.0 or higher
Installation
From Marketplace
Install directly from the VS Code Marketplace (when published) or search for "Graph-It-Live" in the Extensions view (Ctrl+Shift+X or Cmd+Shift+X).
From Open VSX Registry
The extension is also available on the Open VSX Registry. You can install it using a compatible editor (like VSCodium) or by downloading the .vsix from the registry page.
From VSIX
Download the .vsix file from releases.
In VS Code: Extensions → ... (Views and More Actions) → Install from VSIX...
Select the downloaded .vsix file.
Usage
Open a Project: Open a folder containing TypeScript, JavaScript, Vue, or Svelte files.
Open the Graph:
Click the Graph-It-Live icon in the Activity Bar (left sidebar).
Or run the command: Graph-It-Live: Show Dependency Graph.
Or click the graph icon in the editor title bar when viewing a supported file.
Interact:
Navigate: Click a node to open the file.
Expand: Click the small + button on a node to reveal its dependencies.
Reverse Lookup: Click the ◀ button on the left of the root node to see which files import the current file.
Go Back: Use the "Back" button in the top-left corner to return to previously viewed files.
Pan/Zoom: Drag the background to pan; scroll or pinch to zoom.
Configuration
Customize the extension in VS Code Settings (Cmd+, or Ctrl+,):
Setting
Default
Description
graph-it-live.maxDepth
50
Maximum depth of dependencies to analyze initially.
graph-it-live.excludeNodeModules
true
Whether to exclude node_modules imports from the graph.