[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] [![MIT License][license-shield]][license-url] [![VS Code][vscode-shield]][vscode-url]
Real-time interactive flowcharts and dependency visualization for your code
<a href="https://marketplace.visualstudio.com/items?itemName=DucPhamNgoc.codevisualizer">Download Extension</a>
·
<a href="https://github.com/DucPhamNgoc08/CodeVisualizer/issues/new?labels=bug&template=bug-report---.md">Report Bug</a>
·
<a href="https://github.com/DucPhamNgoc08/CodeVisualizer/issues/new?labels=enhancement&template=feature-request---.md">Request Feature</a>
Table of Contents
![CodeVisualizer Demo][product-video]
CodeVisualizer is a powerful VS Code extension that transforms the way you understand and navigate code. Whether you're diving into a new codebase, debugging complex logic, or documenting your architecture, CodeVisualizer provides instant visual insights through two powerful visualization modes.
Why CodeVisualizer?
CodeVisualizer bridges the gap between code and comprehension, making it easier for developers to onboard, debug, and maintain software projects of any size.
This extension leverages cutting-edge technologies to deliver fast, accurate code analysis and beautiful visualizations:
Note on Language Support:
- Function-Level Flowcharts: Supports Python, TypeScript/JavaScript, Java, C++, C, Rust, and Go
- Codebase Dependency Visualization: Currently supports TypeScript/JavaScript and Python (more languages coming soon)
- AI-Powered Features: Available only for Function-Level Flowcharts
Transform individual functions into interactive, visual flowcharts to understand control flow, decision points, and execution paths.
Capabilities: - Multi-language Support: Parse and visualize functions across Python, TypeScript/JavaScript, Java, C++, C, Rust, and Go - Interactive Visualization: Click nodes to navigate to code, zoom and pan for detailed exploration - Multiple Views: Sidebar view for quick reference and detachable panel windows for deep analysis - Semantic Analysis: Intelligent understanding of control flow, loops, exceptions, and async operations - 9 Beautiful Themes: Choose from Monokai, Catppuccin, GitHub, Solarized, One Dark Pro, Dracula, Material Theme, Nord, or Tokyo Night - Auto-refresh: Automatically update flowcharts as you edit code
Analyze and visualize your entire codebase structure, revealing module dependencies, file relationships, and project architecture at a glance.
Capabilities: - Dependency Graph: Complete visualization of import/require relationships between modules - Color-Coded Categories: Automatic file classification into Core, Report, Config, Tool, and Entry categories - VSCode Theme Integration: Seamless dark/light theme support matching your editor - High-Contrast Visualization: Color-coded edges and strokes for instant comprehension - Interactive Navigation: Zoom, pan, and explore even the largest dependency graphs smoothly - Folder Hierarchy: Smart subgraphs organized by your directory structure
Note: AI features enhance function-level flowcharts only, making complex logic instantly readable.
Get CodeVisualizer up and running in your VS Code environment in just a few clicks.
Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac) to open ExtensionsClick Install
Install from VSIX file (if applicable)
sh
code --install-extension codevisualizer-1.0.2.vsix
Configure AI Features (Optional)
Ctrl+, (Windows/Linux) or Cmd+, (Mac)Or use Ollama for completely local AI processing
Start Visualizing
Ctrl+Shift+P / Cmd+Shift+P) and type "CodeVisualizer"Ctrl+Shift+P / Cmd+Shift+P) and type "Visualize Codebase Flow"Ctrl+Shift+P / Cmd+Shift+P) and type "CodeVisualizer: Enable AI Labels"| Language | Status |
|---|---|
| Python | Full Support |
| TypeScript/JavaScript | Full Support |
| Java | Full Support |
| C++ | Full Support |
| C | Full Support |
| Rust | Full Support |
| Go | Full Support |
| Language | Status | File Extensions |
|---|---|---|
| TypeScript/JavaScript | Full Support | .js, .ts, .mjs, .cjs |
| Python | Full Support | .py |
Planned Support: Java, C++, C, Rust, Go dependency analysis coming in future releases.
Code Analysis: - All code parsing happens 100% locally on your machine - No code is ever sent to external servers for flowchart generation - AST parsing uses local Tree-sitter WASM parsers with zero network requests - Your source code never leaves your computer
AI Features (Optional & Opt-in): - When AI labels are enabled, only node labels (short text snippets, not full code) are sent to LLM providers - API keys are stored securely using VS Code's built-in Secret Storage API with encryption - Smart caching minimizes API calls and reduces data transmission - Use Ollama for complete privacy with local model processing - All AI features are disabled by default and require explicit user activation
None. CodeVisualizer does not collect, store, or transmit your data.
Exception: When AI labels are explicitly enabled by you, minimal label text (e.g., "if x > 0", "return result") is sent to your chosen LLM provider for translation. This is completely optional and can be disabled anytime.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)# Clone the repository
git clone https://github.com/DucPhamNgoc08/CodeVisualizer.git
# Install dependencies
npm install
# Open in VS Code
code .
# Press F5 to launch Extension Development Host
Distributed under the MIT License. See LICENSE.txt for more information.
Duc Pham Ngoc - Ducphamngoc39@
$ claude mcp add CodeVisualizer \
-- python -m otcore.mcp_server <graph>