Kroki!
https://kroki.io/
Kroki provides a unified API with support for BlockDiag (BlockDiag, SeqDiag, ActDiag, NwDiag, PacketDiag, RackDiag), BPMN, Bytefield, C4 (with PlantUML), D2, DBML, Ditaa, Erd, Excalidraw, GraphViz, Mermaid, Nomnoml, Pikchr, PlantUML, Structurizr, SvgBob, Symbolator, TikZ, UMLet, Vega, Vega-Lite, WaveDrom, WireViz... and more to come!
lukilabs/beautiful-mermaid
https://github.com/lukilabs/beautiful-mermaid?tab=readme-ov-file#rendermermaidtext-options-promisestring
Mermaid is the de facto standard for text-based diagrams. It's brilliant. But the default renderer has problems:
Aesthetics — Might be personal preference, but wished they looked more professional
Complex theming — Customizing colors requires wrestling with CSS classes
No terminal output — Can't render to ASCII for CLI tools
Heavy dependencies — Pulls in a lot of code for simple diagrams
We built beautiful-mermaid at Craft to power diagrams in Craft Agents. It's fast, beautiful, and works everywhere—from rich UIs to plain terminals.