Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Just saw you have Mermaid integration. I'm a heavy diagrammer, so thanks for that! Any thoughts on integrating with draw.io?


sort by: page size:

This looks nice. Personally I prefer draw.io desktop version for large complex diagrams, and use mermaid for smaller diagrams such as sequence diagrams.

Very nice! I've just started playing with Kroki.io (a "universal" API over many diagramming libs including mermaid and excalidraw).

Mermaid lets you create diagrams using code. Really nice.

Definitely an advancement over draw.io however isnt this just mermaid diagrams?

No diagrams yet, but I have plans of integrating Mermaidjs. I will have a look at PlantUML.

Thanks for the input! I'm also looking at supporting Mermaid diagramming https://mermaid-js.github.io/ I'd love to hear if people have other good use cases for this model, e.g., of having a plain text file you edit in a text editor accompanied by a rendered web document view of the same file.

I had just learned about Mermaid and used it standalone once, when I realized it is also already built into Github Markdown [0], where you can include a diagram by just going ```mermaid <code>```, which is veeery handy. In mermaid.live can also get an SVG URL which works great to paste into many online drawing tools like Miro, Diagrams.net etc.

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


In case it helps as a tool recommendation, I’ve had some success having ChatGPT writing & rendering MermaidJS (diagrams as code)

A few times a team member has tried to get everyone on board with Mermaid.

In the end draw.io/diagrams.net wins out as embeds the diagram in the header of a PNG, so it can be rendered by everything and edited in many ways, including the web, the desktop app or the VS Code plug in.


draw.io/diagrams.net has a mermaid plugin

https://github.com/nopeslide/drawio_mermaid_plugin


In Mermaid, while I like it a lot, you lose control of layout positioning. Does the auto-layout position large diagrams (many shapes + connectors) appropriately?

The Excalidraw export format is JSON, so you might use that in source control just as well. Or include the format in PNG or SVG export (which draw.io supports also).


mermaid seems really cool. i first got turned on to it when jdbranham created a diagram plugin for grafana, based on mermaid.

if you're using grafana, it allows you to generate mermaid-powered diagrams powered from your tsdb.

check it out: https://grafana.net/plugins/jdbranham-diagram-panel


If you start getting into this kind of thing, you'll want to take a look at https://kroki.io which supports Mermaid along with lots of other diagramming formats.

I definitely have made decent use of Mermaid diagrams in GitHub. But Mermaid diagrams are hard to layout, and there is only one experimental layout that's good for automatically generated diagrams. It's nice, but it's not quite there. I have tended to bounce between Mermaid and Visio.

I'm generally not a fan of exporting and importing diagrams constantly. One thing that is nice is that Confluence can support plugins for diagrams, which is okay-ish.


I believe Mermaid supports a wider range of diagram types than Graphviz. Graphviz doesn't support sequence diagrams, for instance, unless I'm missing something.

Mermaid would not be my first choice of diagramming software (that would be plain old Graphviz with PlantUML for more full featured graphs), but I'm glad to see some diagramming support on GitHub natively. There's already quite a few tools that let you embed via hotlink or generated link your graph.

[1] https://graphviz.org/ [2] https://plantuml.com/


Thank you very much for your work! I learned about mermaid about a year ago, and have used it pretty extensively since, including as a visualization and control interface for a DAG execution framework.

Mermaid’s flow chart layout engine is quite nice, too. I’ve yet to encounter the kind of messes that graphviz comes up with regularly, even with complicated flow charts.


Use Mermaid in draw.io. It renders Mermaid into native draw.io shapes that you can rearrange.

What kind of drawings? If you're just looking for diagrams, https://github.com/mermaid-js/mermaid is good.
next

Legal | privacy