Software Architecture As Code Tools

Dr Milan Milanović
3 min readDec 18, 2023

We see more tools enabling you to create software architecture and other diagrams as code. The main benefit of this concept is that most diagram-as-code tools can be scripted and integrated into a built pipeline to generate automatic documentation.

The other benefit responsible for the growing use of diagrams as code to create software architecture is that it enables text-based tooling, which most software developers already use.

What are some existing tools for creating such diagrams?

  1. Structurizr

Create multiple diagrams from a single (C4) model. It allows the creation of numerous diagrams from a single model using different tools and programming languages.

Structurizr

For C4 models, you can also use tools such as C4Sharp, a .net library for building diagrams as code.

2. PlantUML

It is an open-source tool that allows users to create plain text diagrams. With PlantUML, you can make different kinds of UML and non-UML diagrams, too (Sequence, Class, Component, JSON data, Network, Gantt, etc.).

PlantUML

3. Diagrams

--

--