lukilabs/beautiful-mermaid
Recommended between 2026-01-29 and 2026-02-13. Last pushed 2026-05-06.
▲ 1 recommend · ▼ 1 criticism
What hackers say
“This is really neat. I just added beautiful-mermaid [0] support to Orange Juice [1]”
— oj-hn-dot-com, 2026-02-13 · strong recommendation · original comment on Hacker News ↗
show original comment
This is really neat. I just added beautiful-mermaid [0] support to Orange Juice [1] because there is no way to display images on this site, even from an extension (due to their aggressive CSP lockouts). But I can render text->SVG and mermaid doesn't look awful just typed out, but anyone who has the extension installed is leveled up. Is there something like this running as a library that I can also add? [0] https://github.com/lukilabs/beautiful-mermaid [1] https://oj-hn.com
Criticism
“Meanwhile they could've just bundled mermaid-ascii and run it on wasm.”
— forgotpwd16, 2026-01-29 · original comment on Hacker News ↗
show original comment
Meanwhile they could've just bundled mermaid-ascii and run it on wasm. But then again probably took Claude less than an hour to port this to TS. The main algorithms are 1:1 conversion. https://github.com/AlexanderGrooff/mermaid-ascii/blob/master/cmd/draw.go#L170-L238 https://github.com/lukilabs/beautiful-mermaid/blob/main/src/ascii/draw.ts#L30-L80
Badge for your README
[](https://hackerrepos.org/repo/lukilabs/beautiful-mermaid)