Skip to main content
Preset:

Nodi

AStartround
BProcessrectangle
CEndround

Connessioni

ABsolid
BCsolid

Codice Mermaid

flowchart TD
    A(["Start"])
    B["Process"]
    C(["End"])
    A -->  B
    B -->  C
Incolla questo codice su mermaid.live per visualizzare il diagramma.

Come utilizzare Architecture Diagram Generator

Choose Diagram Type

Choose between flowchart, sequence, class, entity-relation or state machine. Only the flowchart has a full visual builder; the others show a starting Mermaid example to be edited manually.

Load a preset or build from scratch

For the flowchart you can start with a preset (Microservices, CI/CD Pipeline, Auth Flow) or add nodes and connections manually by ID, name, shape and line type.

Generate Mermaid Code

Concise diagrams to convert nodes and connections into valid, updated Mermaid syntax automatically on every change.

Copy and display the diagram

Copy and paste the generated code into Mermaid supported editors like Mermaid Live, a README on GitHub, or any other editor that supports Mermaid to see the rendered diagram.

Suggerimenti

  • Use presets as a starting point and then personalize nodes and connections instead of starting from scratch.
  • Labels on connections (e.g. "HTTPS", "JWT verify") greatly improve the diagram's readability for those unfamiliar with the architecture.
  • Keep node IDs brief (A, B, client, db) and use the name field for readable description: Mermaid syntax remains cleaner.

Domande frequenti

What is a Mermaid and why use it for diagrams?

Mermaid is a text-based language to generate diagrams (flowchart, sequence, class, ER, state machine) from simple text without dedicated graphical tools. It's natively supported by GitHub, GitLab, Notion and many Markdown editors, making the diagrams versionable alongside the code.

Why does only the flowchart have a visual builder?

The flowchart is the most common type of diagram to represent software architectures and process flows, so it has priority in the interactive builder. The other types (sequence, class, ER, state) show a sample Mermaid template that you can copy and manually customize by following official Mermaid syntax.

What's the difference between node shapes?

Conventional Mermaid shapes: - Rectangle represents a generic process or component - Round indicates start/end points - Diamond is used for decisions/conditions - Circle represents special nodes like databases or events. These are just visual forms and do not change the logic of the diagram.

How do I view the generated diagram?

Copy the generated Mermaid code and paste it on mermaid.live for immediate preview, or insert it into a `mermaid` code block within a README.md file on GitHub/GitLab to automatically render it.