Pele – Mermaid diagrams as themeable SVG
81 points by dchest 5 hours ago | 13 comments

lukeify 22 minutes ago
Anytime I try mermaid for anything more complex than a toy diagram I always end up absolutely frustrated by the arcane and topologically poor layout that is produced.

Styling seems like a trivial problem by comparison.

reply
kepano 4 minutes ago
I strongly agree, and that's why I designed Pele to only follow its syntax not its layout. See the examples https://pele.run/examples

The playground also has a Compare mode https://pele.run/playground

reply
tptacek 4 minutes ago
Graph layout is a famously hard problem!
reply
oliveralbertini 4 minutes ago
[dead]
reply
nickmain 3 hours ago
Does the official Mermaid library still require a full or headless browser environment in order to lay out the SVG? If so, Pele is great news for embedding Mermaid rendering in other places.
reply
invokestatic 53 minutes ago
The python mermaidx library works for this, which works well for generating documentation with embedded diagrams as part of CI/CD but the layout/rendering can sometimes be very wonky. For instance I will have a bunch of connections crossing over each other instead of neatly arranged to avoid it. Changing the layout settings does not fix it so sometimes I will just export it from mmdc and embed a png.
reply
Imustaskforhelp 3 hours ago
Is pele open source?

I tried to find the source code of it but I was unable in finding so

Edit: found it, https://github.com/obsidianmd/pele

Also folks, this is a good reminder to please have a github icon on the top of the page to easily show git/github links if the app is open source, also helps in the fact that I can star your projects and bookmark them more easily :-D

reply
blktiger 3 hours ago
reply
druvisc 2 hours ago
Just FYI, "pele" is "mouse" in Latvian. :)
reply
hmokiguess 2 hours ago
and "skin" in portuguese :)
reply
apodik 2 hours ago
and a football player in brazil :D
reply
mixmastamyk 38 minutes ago
Only with an accent on the final é.
reply
mtros 47 minutes ago
and "d*ck" in slovak...
reply
aslakhellesoy 28 minutes ago
Spade in French
reply
sog 2 hours ago
[flagged]
reply