hey Mastodon! what's a good tool for generating diagrams from code? preferably some diagram-oriented DSL that can be embedded in Markdown. i know of Mermaids but it has a very restricted class of diagrams it can draw which kind of sucks.

@beka_valentine well there's GraphViz dot...but its a bit unwieldy imo

https://graphviz.org/docs/layouts/dot/

Let me know what you find if you want, I'm also curious.

dot

[hierarchical or layered drawings](https://en.wikipedia.org/wiki/Layered_graph_drawing) of directed graphs.

Graphviz

@beka_valentine looks like dot is actually a generic format. I've only used it with Graphviz tho.

https://en.m.wikipedia.org/wiki/DOT_(graph_description_language)

DOT (graph description language) - Wikipedia