←back to thread

234 points AlexanderGrooff | 3 comments | | HN request time: 0.627s | source
Show context
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 #
1. 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.

replies(1): >>41856633 #
2. pjungwir ◴[] No.41856633[source]
I've used [mmdc](https://github.com/mermaid-js/mermaid-cli) to generate mermaid images from a Makefile. It looks like it is implemented with puppeteer, so perhaps it doesn't quite fit your request. But if you just want something you can use at the cli, it is great.
replies(1): >>41864479 #
3. danpalmer ◴[] No.41864479[source]
Thanks. You're right, unfortunately this doesn't fit my needs, but I can see how it would be fine for CLI and casual use cases.