Instantly generate Mermaid.js flowchart diagrams from your code using the power of AI. Simply select a function or a block of code, right-click, and watch the logic come to life.
Features
Code-to-Diagram: Select any block of code (e.g., a function, a loop, a conditional block) and generate a flowchart diagram.
AI-Powered: Uses the high-speed Groq API with the Llama 3 model to analyze code logic.
Seamless Integration: The generated diagram appears in a new VS Code Webview panel, right inside your editor.
Mermaid.js: Leverages the popular Mermaid.js library for clean and clear diagram rendering.
Theme Aware: The diagram view is styled to match your current VS Code theme (light, dark, or high contrast).
Export to SVG: Easily export your generated diagrams as SVG files directly from the flowchart view.
Requirements
You must have a Groq API Key to use this extension. The service is very fast and has a generous free tier.