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.