r/VSCodeExtensions • u/osg_junue • 15d ago
I built a VS Code extension that lets AI agents describe system architectures as text and visualize them as animations
I've been experimenting with a different approach to system architecture diagrams, especially when working with AI coding agents.
One problem I've noticed is that asking an AI to generate HTML or SVG diagrams directly can become cumbersome. The output often mixes the actual system structure with layout and rendering details.
So I built DynamicArchitectViewer, a VS Code extension that takes a different approach.
Instead of generating drawing code, AI agents describe the architecture using a small text-based DSL (.dav files).
The extension handles layout, rendering, and animation.
What makes it interesting?
Text-based diagrams: Describe nodes, groups, connections, and system states without specifying coordinates.
Step-by-step animations: Visualize how requests and events flow through a system, one step at a time.
State visualization: Show failures, status changes, and other conditions directly on nodes.
AI agent integration: Skills are available for Claude Code, GitHub Copilot, and Codex.
Machine-checkable output: A CLI checker validates syntax and references, and can provide additional feedback about diagram quality.
Export and CI: Export animated SVG or standalone HTML, and check generated SVGs against their source
.davfiles in CI.
For example, you can ask an AI agent:
"Visualize the order-to-payment flow in this repository, including the normal path and a failure scenario where the payment provider returns 503 and the order eventually fails."
The agent generates a .dav file, validates it with the checker, and you can inspect the result in the VS Code preview.
The idea is to let AI focus on understanding and describing system behavior, while a dedicated engine takes care of visualization.
I'm not trying to replace Mermaid. I see this as a different approach, particularly useful when you want to explain dynamic behavior rather than just show static relationships.
Links:
Live Playground (try it in your browser): https://osg-junue.github.io/DynamicArchitectViewer/
Demo Video (YouTube, 1:35): https://www.youtube.com/watch?v=wFpWjMfTAGQ
More Examples (animated SVGs): https://github.com/Osg-Junue/DynamicArchitectViewer/blob/develop/docs/examples.md
I'd love to hear your thoughts:
Do you think animated architecture diagrams are useful for explaining real-world systems?
Would you prefer writing these diagrams yourself, or having an AI agent generate and maintain them?
What kinds of systems or workflows would you like to visualize this way?
Feedback, criticism, and feature suggestions are very welcome!