Swark is an open-source developer tool and Visual Studio Code extension that automatically generates software architecture diagrams directly from source code using large language models. The project aims to help developers quickly understand complex codebases by analyzing repositories and producing visual diagrams that represent system architecture, dependencies, and component relationships. Instead of relying on manually maintained diagrams that often become outdated, Swark uses AI to infer architecture patterns dynamically from the code itself. The tool integrates with GitHub Copilot and the VS Code environment, allowing developers to generate diagrams with minimal setup and without requiring additional authentication or API configuration. Because the logic of understanding code structure is handled by an LLM, Swark can support many programming languages and frameworks without requiring custom rules for each language.
Features
- Automatic architecture diagram generation from source code
- Visual Studio Code extension with integrated workflow
- Integration with GitHub Copilot for AI-assisted analysis
- Support for multiple programming languages and frameworks
- Visualization of system components and dependencies
- Open-source architecture analysis powered by large language models