Render Mermaid diagrams as SVGs or ASCII art

github.com

110 points by mellosouls 3 hours ago


smusamashah - 4 minutes ago

Also see https://arthursonzogni.com/Diagon for text to ascii

nulone - 18 minutes ago

The ASCII output is the missing piece for AI-assisted coding workflows. LLMs can spit out Mermaid, but you can't see the diagram inline in a terminal/code-review context. This fixes that.

Terretta - 44 minutes ago

If you like Obsidian.md but can't quite recommend it for less technical folks, these devs' Craft notes spaces are a great alternative:

https://www.craft.do/

While great for individuals, it's particularly strong out-of-the-box for teams, or even teams of teams with two levels of grouping.

They bring the same ... craft (ahem) ... to the whole product as shown in their Craft Agents or this renderer, with a strong foundation originally started in the Markdown philosophy. Check out the founder's story on their About page for a refreshingly LLM-free backgrounder.

jonfw - 2 hours ago

I love ASCII diagrams! The fact that I can write a diagram that looks equally wonderful in my terminal via cat as it does rendered on my website is incredible.

A good monospaced font and they can look really sharp!

I will definitely give this tool a shot.

I will also shout out monodraw as a really nice little application for building generic ASCII diagrams- https://monodraw.helftone.com/

tempaccsoz5 - an hour ago

The actual Mermaid ASCII renderer is from another project [0]. This project transliterated it to typescript and added their own theming.

[0]: https://github.com/AlexanderGrooff/mermaid-ascii

rahimnathwani - an hour ago

Wow! It has this:

  Subgraph Direction Override: Using direction LR inside a subgraph while the outer graph flows TD.
With this, you should be able to approximate swim lane diagrams, which is something Mermaid lacks.

The last time I checked, Mermaid couldn't render subgraphs in a different direction than the overall graph.

a_t48 - 2 hours ago

The live demo requires some download of an AI agent platform? I'd really like to try this but not if that's what's required.

peanutz454 - an hour ago

I get a sense of deja vu. There was another such project posted within the last 3 months, and another within last 6 months. I should have bookmarked them, because at least one of them was an open library (I think).

doanbactam - an hour ago

I've had issues with other CLI wrappers there. ASCII output is a nice touch for including diagrams directly in code comments without breaking formatting. Does it handle large graphs well, or does the text wrap get messy? We tried using `graph-easy` for this before but the syntax was annoying. 6.

dleeftink - 2 hours ago

Pair this with Unicode plots[0] and you're set!

[0]: https://github.com/JuliaPlots/UnicodePlots.jl

lubujackson - an hour ago

This is great, I will definitely make use of this!

wyes - an hour ago

How is the LaTeX compatibility? Base mermaid's LaTeX compatibility is quite sparse.

jackconsidine - 2 hours ago

> Aesthetics — Might be personal preference, but wished they looked more professional

Im sold. Love mermaid but totally agree.

- 2 hours ago
[deleted]
cjlm - an hour ago

See also graph-easy.online (https://github.com/cjlm/graph-easy-online)