3 min read
|
Saved February 14, 2026
|
Copied!
Do you care about this?
Swark is a VS Code extension that generates architecture diagrams from source code using GitHub Copilot. It supports multiple programming languages without needing additional setup or API keys. The extension saves output files for easy review and debugging.
If you do, here's more
Swark is a VS Code extension that automates the creation of architecture diagrams from code using large language models (LLMs). It's free and open-source, requiring only GitHub Copilot, which is now available at no cost. This tool stands out because it supports virtually any programming language due to its reliance on LLMs, unlike traditional solutions that need incremental updates for new languages. It integrates seamlessly with GitHub Copilot, so there's no need for additional setup or API keys.
When you run Swark, it retrieves code files from a specified folder, builds a prompt for the LLM, and generates a diagram in Mermaid.js format. The output includes a diagram file containing Mermaid code and a log file for debugging purposes. Users can control the number of files processed and the types of files included through settings. Swark also prioritizes privacy by only sharing code with GitHub Copilot and not involving any other external services.
This extension is particularly useful for developers looking to understand new codebases quickly or maintain legacy systems. It can help visualize dependencies and identify design flaws, enhancing code reviews and documentation. Swark even provides insights into test coverage when test files are included in the input. Users can preview their diagrams directly in VS Code or through the Mermaid Live Editor. While it collects telemetry data to improve functionality, it ensures that no personal or source code information is shared.
Questions about this article
No questions yet.