Show HN: VS Code extension to visualize code and dependencies (github.com)

🤖 AI Summary
CodeVisualizer is an open-source VS Code extension that generates real-time, interactive visualizations of code: function-level flowcharts that reveal control flow, decision points and async/exception paths, and codebase-level dependency graphs that map module/file relationships and folder hierarchies. It parses seven languages for flowcharts (Python, TS/JS, Java, C/C++, Rust, Go) and currently supports dependency analysis for TypeScript/JavaScript and Python. Visuals are interactive (click-to-jump, zoom/pan), theme-aware, auto-refresh on changes, and offer export features in development. Under the hood the extension parses source locally using Tree-sitter compiled to WASM, builds ASTs, converts them into an intermediate representation (nodes/edges), emits Mermaid diagram code and renders via Mermaid.js. Optional AI-powered “smart labels” replace raw technical labels with human-friendly descriptions using LLM providers (OpenAI, Gemini, Groq, Ollama, Anthropic); only short label text is sent when enabled, API keys are stored in VS Code Secret Storage, caching minimizes calls, and local models (Ollama) are supported for privacy. Key implications for AI/ML engineers: faster code comprehension, architecture discovery, and onboarding with minimal code exposure, plus an extensible open-source pipeline (MIT) for contributors—note current limits: AI labeling is only for flowcharts and dependency viz is limited to TS/JS and Python.
Loading comments...
loading comments...