likec4 is an architecture-as-code framework that transforms text-based architecture definitions into interactive diagrams, static websites, and image files. It serves as a system architecture visualizer and C4 model diagram generator, allowing users to define software components, boundaries, and deployment infrastructure using a domain-specific language.
The tool distinguishes itself by providing a modeling environment with Language Server Protocol integration for real-time validation and autocomplete. It enables interactive architecture documentation where users can navigate through hierarchical system views via drill-down exploration and scoped views.
Beyond basic visualization, the framework covers deployment modeling to map logical software components to physical infrastructure. It includes capabilities for interaction sequence visualization, architectural drift detection to identify discrepancies between design and implementation, and the generation of React or web components for embedding diagrams into applications.
A command-line interface is provided for automated diagram generation in CI/CD pipelines and hosting a local preview server for real-time updates.