Architecture as a code is an open-source modeling language and toolkit that enables software teams to describe, visualize, collaborate on, and maintain software architecture as code. Inspired by the C4 Model and other architectural DSLs, LikeC4 lets you define your system’s structure in a textual DSL and then automatically generate consistent diagrams that reflect that design, ensuring that architecture documentation stays in sync with source code changes. The project includes command-line tooling, IDE integrations, live preview servers, and diagram exporters, letting developers instantly see architectural diagrams update as the model evolves. By treating architecture as code, teams benefit from version control, live collaboration, consistency across diagrams, and the ability to treat architectural change with the same tooling and workflows used for code.
Features
- Text-based DSL to describe software architecture
- Generates live architecture diagrams from models
- CLI and IDE tooling for preview and validation
- Support for diagram export formats (PNG, Mermaid, DOT)
- Version-controlled architecture with code
- Customizable notation and element types