Keadex Mina Logo
BETA
Diagram as Code.
For real.
Open Source, serverless IDE to easily code and organize at a scale C4 model diagrams.
Other download optionsPackages:
Code C4 model diagrams without giving up on software development best practices
and on power of freehand drawing.
A simple IDE for coding C4 model diagrams.
Even offline.
  • C4 model centric: Mina is based on the C4 model approach to diagramming software architecture.
  • Serverless: a diagram as code application, without the need of installing servers or deploying software. Just download the application and use it.
  • Offline: the rendering system of Mina is based on Rust, and compilation into WASM enables its portability across different systems. This allows for the quick and immediate translation of code into diagrams, without the need to depend on external servers, thus also available offline.
  • Simple: an interface reduced to the essentials and simple to use.
Not another language to learn.
Just based on PlantUML.
One of Mina's fundamental principles is to facilitate onboarding and usage. For this reason, unlike many other tools, Mina does not introduce a new Domain-Specific Language (DSL) to provide its functionalities but relies on the PlantUML DSL.

Specifically, Mina supports the syntax of the official PlantUML C4 model standard library.

This allows you to reuse PlantUML C4 code created with other tools and immediately leverage Mina's capabilities. If you decide to leave Mina (but we hope you don't), you can still reuse the PlantUML code created in Mina with other tools that support PlantUML.

PlantUML was born in 2009 and is a well-known open-source tool with a mature and widely used DSL. In the meantime, several PlantUML extensions have been released. Among these is C4-PlantUML, the standard library that supports the specifications of the C4 model.

Logo PlantUMLMina PlantUML example
Semi-automated rendering (Keadex Mina)Example of clear diagram created with MinaFully automated rendering (other tools)Example of messy diagram created with other tools
Semi-automated but clear diagrams, over fully automated, but messy diagrams.
Architectural diagrams are fundamental for sharing within the team how different systems and processes are integrated with each other. These become even more important in large companies, where hundreds of different systems are integrated. In this case, it is equally crucial to create clear and understandable diagrams.

Applications with fully automated rendering systems, in the presence of many architectural elements, generate cluttered and hardly understandable diagrams, making them lose their utility.

For this reason, Mina adopts and integrates a semi-automated rendering system: starting from the code, it automatically renders various architectural elements, but leaves the positioning activity to the user.

In the future, Mina will seek to automate rendering even more, without ever neglecting the fundamental goal: the comprehensibility of the diagrams.

A simple project structure, easily versionable.
A Mina project primarily consists of the following files:
  • .puml files: contain the code of the diagrams.
  • .json files: contain specifications of the diagrams, including position, size, and metadata of the elements within a diagram.

Thus, the project only contains human-readable code without any binary data or incomprehensible metadata files.

This feature makes a Mina project easily versionable with tools such as GitHub, facilitating the adoption of common software development best practices like code reviews, pull request approval processes, continuous integration, and more.

Mina project structure flow
Mina documentation integration example
Integrated with the most common documentation platforms.
Keadex provides various libraries and extensions to include diagrams created with Mina within the most common documentation platforms.

By using these packages:

  • You can include the diagrams using their URL, without the need to export them.
  • As a result your documentation will always render the most updated diagram based on your versioning system, without the need for constant manual updates.
  • The diagrams will be interactive, allowing navigation across various connected architectural diagrams.
AI-Powered
ALPHA
This feature is in alpha version and in development stages. Therefore, it may currently return results that are not always correct.

Mina integrates AI to generate diagram code based on a natural language description of your architecture.

Mina uses OpenAI's gpt-3.5-turbo-instruct model to provide the functionality of generating code for architectural diagrams from natural language descriptions. Since Mina is and always will be open source and free, and since the gpt-3.5-turbo-instruct model is not free, you will need to configure your OpenAI API Key within Mina if you want to use this feature.

Demo of AI to generate a diagram
FAQ
Keadex logo
Keadex ©2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
Privacy Policy  |  Terms & Conditions