Hacker News new | past | comments | ask | show | jobs | submit login

I used MermaidJS for diagrams in one of my projects.

Initially it was fun, although MermaidJS lacked support for the diagram types I used at that time.

What stooped to be fun, is that MermaidJS needs a whole Chromebrowser engine to render the diagrams and it is built on Node.js.

Trying to generate my diagrams in another environment again was a total PITA and not worth the time.

I would love if the MermaidJS devs would port everything to another tech stack, don't use a whole browser engine to render their diagrams and make diagram creation easy and reproducible for build piplelines.




> make diagram creation easy and reproducible for build piplelines.

Up to you, but PlantUML is one .jar file and thus very easily renders in a pipeline. So, between waiting for MermaidJS(!) to port everything to another tech stack or using a tool that has a ton more diagram types than Mermaid and has an offline render tool ... up to you


Sounds like you might like D2. It is written in Golang and doesnt use Chrome to render.

Wrote an article about it: https://victorbjorklund.com/build-diagrams-as-code-with-d2-d...


You can dispense with this if you type it on markdown or an Jupyter notebook and use quarto to render it.


its actually does not require node, it runs completely in the browser


> it runs completely in the browser

That's the complaint. Have fun trying to get attractive and reprodicible headless CI builds. I still have some issue with font rendering using latest version of their cli.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: