Generate beautiful Mermaid.js diagrams from your code using AI. This extension analyzes your code and automatically creates visual representations of components, relationships, and data flow.
- 🤖 AI-powered code analysis
- 📊 Automatic diagram generation
- 🔄 Real-time preview
- 🖱️ Interactive diagram viewing with pan and zoom
- 🎨 Theme-aware rendering
- 🔒 Secure API key management
- Visual Studio Code 1.80.0 or newer
- SambaNova API key which can be requested from here
- Install the extension from the VS Code Marketplace
- Open any code file you want to analyze
- Click the diagram icon in the editor title bar or use the command palette
- Enter your SambaNova API key when prompted
- View the generated diagram in the side panel
Generate Mermaid Diagram from Code: Analyze current file and generate a diagramClear API Key: Remove the stored API key
- Open any code file in VS Code
- Click the diagram icon in the editor title bar (or use Command Palette:
Generate Mermaid Diagram from Code) - The extension will analyze your code and generate a diagram
- Use the interactive controls to pan and zoom the diagram
- The diagram updates automatically when you regenerate it
- Component relationships
- Method calls
- Data flow
- Dependencies
- Events and triggers
- Color-coded components by type
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.