# Diagrams

- Page: https://shared.btbytes.com/p/diagrams
- Date: 2020-05-23

Community list of comparisons between [Text to diagram](https://text-to-diagram.com/) tools

[Diagrams python library](https://diagrams.mingrammer.com/docs/getting-started/examples) allows you to draw architectural diagrams for AWS, and other clouds using Python code.

```python
from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB

with Diagram("Grouped Workers", show=False, direction="TB"):
    ELB("lb") >> [EC2("worker1"),
                  EC2("worker2"),
                  EC2("worker3"),
                  EC2("worker4"),
                  EC2("worker5")] >> RDS("events")
```

Output:

![](https://files.btbytes.com/images/diagrams.mingrammer.com/img/grouped_workers_diagram.png)

----

My own wrapper for <https://www.websequencediagrams.com/> is [pywsd](https://github.com/btbytes/pywsd).

There is a Pure python implementation for WSD [here](https://dragonquest64.blogspot.com/2020/05/python-generated-sequence-diagrams.html)

----

* [DAGitty - drawing and analyzing causal diagrams (DAGs)](https://dagitty.net/)
* [PlantUML](https://plantuml.com)
* [Mermaid](https://mermaid-js.github.io/mermaid) mermaid JS library
* [ditaa](http://ditaa.sourceforge.net/)
* [D2](https://d2lang.com/tour/intro/) is a domain-specific language (DSL) that stands for Declarative Diagramming. Declarative, as in, you describe what you want diagrammed, it generates the image.

![](https://files.btbytes.com/images/2023/11/d2lang.png)

----

[Isoflow](https://isoflow.io/) -- Create beautiful cloud diagrams in minutes. Easily create isometric diagrams, for presentations, documentation and illustrations

[Penrose | Penrose](https://penrose.cs.cmu.edu/) -- <q>Create beautiful diagrams just by typing notation in plain text.</q> See [Examples](https://penrose.cs.cmu.edu/examples).

<https://excalidraw.com> -- online drawing tool.
- supports exporting drawn diagrams to SVG and PNG directly from right click.
- has [Libraries](https://libraries.excalidraw.com/) support to load library of shapes, icons etc.
