Most active commenters
  • AlexanderGrooff(5)

143 points AlexanderGrooff | 31 comments | | HN request time: 0.841s | source | bottom
1. ewalk153 ◴[] No.41848823[source]
This would be great to build into project readme workflows.
replies(1): >>41849181 #
2. quuxplusone ◴[] No.41848887[source]
Some nits:

The "Example" buttons don't jump out at me; I found them but it took a while. Also consider labeling them with their point, e.g. "Example 3: Color"

If you change the input text to something well-formed, the graph seems to update immediately. But if you change it to something ill-formed, the graph doesn't update immediately — and then if you click "Generate" manually, it blanks the input box. Either this is a bug, or the "Generate" button doesn't do what I think it does (i.e. generate output). Again, adding a noun to the verb might help. Or just adding some usage information somewhere on the page.

For those like me who've never heard of "Mermaid," apparently it's like GraphViz's dot language but different. https://github.com/mermaid-js/mermaid I tried the flowchart example from Mermaid's own README, but it didn't come out right: looks like the shape characters [] and {} aren't handled.

replies(3): >>41848931 #>>41851455 #>>41851879 #
3. AlexanderGrooff ◴[] No.41848931[source]
Thanks for the feedback! I agree that the web UI can be improved (quite) a bit, most of my efforts went into the actual generation of the diagrams. I'll have a look at prettifying it.
4. octopusRex ◴[] No.41849029[source]
I'm disappointed. I was actually expecting lovely ascii art pictures of mermaids.
replies(2): >>41849192 #>>41849640 #
5. kitd ◴[] No.41849181[source]
You can already use Mermaid in GitHub markdown:

https://docs.github.com/en/get-started/writing-on-github/wor...

replies(3): >>41849753 #>>41849832 #>>41850028 #
6. piedpiper99 ◴[] No.41849330[source]
I supposed it's good for basic usage. I just tried a more complex graph and it didn't render well.
7. derfnugget ◴[] No.41849640[source]
Same. This is more than a nit. It's pretty much a need.
replies(1): >>41849680 #
8. kleiba ◴[] No.41849680{3}[source]
Here you go: https://www.asciiart.eu/mythology/mermaids
9. dmonitor ◴[] No.41849753{3}[source]
GitLab as well

https://handbook.gitlab.com/handbook/tools-and-tips/#using-m...

10. nunobrito ◴[] No.41849755[source]
Hey, where are the mermaids?!?

But now seriously.. the diagrams are working really well for simple examples, thank you so much for sharing this tool. I have bookmarked your page, my documentation is based on text files and often have to build these kind of diagrams too.

The example buttons took me a while to be found, but are good for syntax explanation. Thank you for making this available.

replies(1): >>41850386 #
11. mcraiha ◴[] No.41849832{3}[source]
Azure DevOps wiki also supports Mermaid https://learn.microsoft.com/en-us/azure/devops/project/wiki/...
12. edflsafoiewq ◴[] No.41850028{3}[source]
I don't like that it renders controls on top of the diagram.
13. jonahx ◴[] No.41850039[source]
Nice work, I love ascii diagrams. Especially useful when you want a visual explanation that can be embedded directly in source code.

Small nit on layout: 90 degree joints should use "+" in the connecting lines, as they do in the boxes.

14. ◴[] No.41850060[source]
15. AlexanderGrooff ◴[] No.41850386[source]
Thanks for the kind words!
16. ◴[] No.41850501[source]
17. virtualritz ◴[] No.41850575[source]
This obviously needs a direct pipe into Svgbob!

https://ivanceras.github.io/svgbob-editor/

replies(1): >>41853920 #
18. nlake906 ◴[] No.41851071[source]
love it, will definitely be using it for sketching documentation in comments for SQL sprocs, etc.

One request: support for self-reference, i.e. "A --> A", "A --> A & B"

replies(1): >>41851233 #
19. AlexanderGrooff ◴[] No.41851233[source]
Thanks, that's a good suggestion. I'm also noticing that's not working as intended.
replies(1): >>41852390 #
20. matt3210 ◴[] No.41851455[source]
Same, I had no idea there were examples until I read this.
21. lordswork ◴[] No.41851879[source]
Counter-nit: I found the examples within a few seconds.
replies(1): >>41854261 #
22. AlexanderGrooff ◴[] No.41852390{3}[source]
Fixed in 0.5.0. Give it a try!
23. zczc ◴[] No.41852414[source]
In the same vein: https://plantuml.com/ascii-art
24. tiagoafpereira ◴[] No.41852558[source]
Also: https://dot-to-ascii.ggerganov.com/
25. abraxas ◴[] No.41853324[source]
In the age of AI someone automated Mentifex[1]!

[1] https://nothingisreal.com/mentifex_faq.html

26. pkaye ◴[] No.41853920[source]
Needs to have a '+' and the elbows and T intersections.
27. girvo ◴[] No.41853934[source]
Hah we rely on Mermaid a _heap_ at work for building internal dependency graphs from `yarn info` JSON data and a super lazy depth-first graph haha. Super useful, nice to see another renderer!

ts-directed-graph outputs Mermaid :)

This tool seems way more useful for hand-made ones, definitely bookmarking

replies(1): >>41854275 #
28. brink ◴[] No.41854261{3}[source]
Counter-counter-nit: I did not.
29. danpalmer ◴[] No.41854275[source]
Out of interest have you managed to get Mermaid graphs rendering outside of a browser?

I was trying to do this a while back so I could do server side rendering of graphs, but it seemed to depend strongly on the presence of a DOM. Couldn’t quite get it working with JS-DOM either.

30. the_arun ◴[] No.41854330[source]
I use this for generating AWS deployment diagrams, which is kinda similar - https://github.com/mingrammer/diagrams