LikeC4 — архитектура системы как код

★ 5.6K

likec4/likec4 is an open-source architecture-as-code tool: you describe your system in a text-based DSL inspired by the C4 model, and live diagrams are generated automatically and versioned alongside your source code. Reach for it when architecture diagrams in the wiki go stale the day they're drawn — you need to onboard a new developer, align on module boundaries before a refactor, attach an up-to-date diagram to a pull request or docs site, and stop redrawing everything by hand after each change. The core is a custom DSL for elements, relationships, and nested detail levels; `npx likec4 start` launches an interactive viewer; VS Code and Open VSX extensions provide editor support, and there's image export, docs-site embedding, and MCP integration. Built in TypeScript, published to npm under the MIT license, runs locally via CLI with no Docker required. The tool generates diagrams from code — not the other way around — so unlike draw.io the model never drifts from reality; the learning curve is lower than Structurizr DSL. Works best for teams who want living architecture documentation; for a quick throwaway sketch a graphical editor is still faster.