January 17th, 2025

Show HN: GUI for Editing Mermaid Class Diagrams

Mermaid Chart has launched an updated Visual Editor for class diagrams, enhancing user experience with intuitive drag-and-drop functionality, real-time editing, and customization options, making diagramming more accessible.

Read original articleLink Icon
Show HN: GUI for Editing Mermaid Class Diagrams

Mermaid Chart has introduced an updated Visual Editor that enhances the editing of class diagrams, making the process more intuitive and user-friendly. Class diagrams, a type of UML diagram, illustrate the structure of a system by showcasing classes, their attributes, methods, and relationships. The new Visual Editor allows users to interact directly with class diagrams, offering tools to change rendering direction, add new classes, and modify relationships without needing to write code manually. Users can create new classes by dragging from existing ones and establish relationships easily. The editor also features a dialog interface for editing class properties, allowing for real-time previews and automatic syntax management. Additional tools include options for changing themes, adding notes, and adjusting diagram configurations. These enhancements aim to streamline the diagramming process, making it accessible for users unfamiliar with Mermaid syntax. The update encourages users to experiment with layouts and utilize notes for clarity. Overall, the new features are designed to save time and improve the efficiency of creating and managing class diagrams.

- The updated Visual Editor simplifies the creation and editing of class diagrams.

- Users can add classes and relationships through intuitive drag-and-drop functionality.

- Real-time editing and automatic syntax management enhance user experience.

- The editor includes tools for customizing themes and adding explanatory notes.

- The update aims to make diagramming more accessible for all users.

Related

Mermaid Gantt diagrams are great for displaying distributed traces in Markdown (2023)

Mermaid Gantt diagrams are great for displaying distributed traces in Markdown (2023)

Mermaid Gantt diagrams offer a Markdown-friendly solution for visualizing distributed trace information. By repurposing traditional scheduling tools, users can create clear trace diagrams resembling OpenTelemetry traces, enhancing documentation and web compatibility.

Mermaid Gantt diagrams are great for displaying distributed traces in Markdown

Mermaid Gantt diagrams are great for displaying distributed traces in Markdown

Mermaid Gantt diagrams, shared by @mitsuhiko, offer a new way to visualize distributed trace information in Markdown. This method enhances understanding of system interactions and trace data in documentation.

Where should visual programming go?

Where should visual programming go?

Visual programming enhances software development by integrating graphics with traditional code syntax. Advocates suggest using diagrams alongside code to improve understanding and maintain cleaner code, aiming for a harmonious coexistence of text and visuals. Luna explores a dual representation system where diagrams complement textual coding, similar to game engine scene management.

Mermaid: Diagramming and Charting Tool

Mermaid: Diagramming and Charting Tool

Mermaid is a JavaScript tool for creating diagrams and charts, featuring a Live Editor for collaboration, winning the 2019 JavaScript Open Source Award, and supporting various application integrations.

Mermaid v11 Is Out: Advanced Layouts, New Diagram Types – Community-Driven

Mermaid v11 Is Out: Advanced Layouts, New Diagram Types – Community-Driven

Mermaid v11 has been released, featuring advanced layout options, new diagram types like packet diagrams, enhanced configuration settings, and significant community contributions to improve user experience in visual diagram creation.

Link Icon 20 comments
By @MarkMarine - 3 months
My front end to mermaid is usually claude. I can’t count how many times trying to convey a complicated idea (last week, a one time use token in a 3 party where my backend can’t talk to the client) has been made simple to explain with a quick diagram claude made.

I am a paid mermaid account holder but claude is still my first front end, because it’s the tool I’m in most of the time anyway. What I’m excited for in the GUI is I can take that quick diagram and add the styling, colors, and hopefully move some of the boxes around such that the arrows are better than the auto layout drops them.

From reading the blog post, the first thing I’d like which is changing the visual colors and styling of individual boxes in the diagram might be missed. I find that the most time consuming thing to do manually with the code, I would love to see rich tools there.

By @dominicdewalt - 3 months
Hi all, I'm Dominic and I'm on the product team at Mermaid. I enjoyed reading a lot of your feedback!

It seems there's several good ideas and thoughts on the direction of the platform that we'd love to learn more about. If you have problems with the current product, improvement requests, or would like to chat then let's connect! Please email me at dominic@mermaidchart.com or book time on my calendar: (https://calendly.com/dominic-01w/mermaid-shapers-product-int...)

Thanks for taking a look at our latest release!

By @philfreo - 3 months
I spent some time playing around with this recently and loved it at first. I also realized ChatGPT is pretty good at generating Mermaid diagrams (didn't try your own AI features).

However after getting into it some I ran into some significant frustrations. After creating a medium-complexity diagram, I was excited to see the Whiteboard feature to drag things around / improve the layout manually. But it really started breaking, it just wouldn't let me organize/drag things where I wanted, and I couldn't get things to not overlap. I also wished more diagram types supported Whiteboard (I noticed some didn't).

Also I some confusion between the capabilities of mermaidchart.com and mermaid.live. Are these competitors? Variations of similar apps. I was confused. Also "Playground" vs "Live Editor" is confusing.

Overall glad this exists and hope it continues to improve.

By @Xmd5a - 3 months
I only use diagramming tools with automatic layout algos to generate visualizations programmatically to debug things. For documentation purpose, I largely prefer to draw them by hand using OmniGraffle, because making graphs look nice using tools like graphviz is very complex and you find yourself abusing features to hack your vision into reality

What's dearly needed in my opinion is a graph layout algo based on a machine learning model (so that it can take into account readability and aesthetics). Unfortunately what I found so far is mostly concerned with displaying large graphs, which is kind of another domain altogether.

I hope Mermaid is collecting every single edition point that happens on their UI, that would make for a nice dataset I guess.

By @webprofusion - 3 months
You lost me at Create your account. I would just want to play with the editor and store in the local browser storage until I decide I like it.
By @maho - 3 months
Nice! I love how mermaid keeps getting better!

For sequence-diagrams, nothing beats https://sequencediagram.org/ (I am not connected with them in any way, just a happy user)

By @elashri - 3 months
I understand that it is different philosophy but I really would like to see the day when I can use Mermaid inside latex. Or at least get some robust mermaid to tikz converter. That would make my life much easy when preparing slides. I understand that exporting to PNG/JPG can work but usually you lose a lot of customization and you only know can make be bigger or smaller to fit the page.

I was exploring this yesterday and actually came acorss the new GUI that is being introduced in this submission. I ended up exporting to PNG and suffer with fitting it inside beamer page layout.

By @sergius - 3 months
With Draw.io embedding Mermaid diagrams and plug-ins available for VSCode and other IDEs, why is this so special?
By @Celeo - 3 months
Heads up: the "Theme Customization in Toolbar" image isn't rendered.

Thanks for sharing!

By @crvdgc - 3 months
The project itself is cool, but I'm doubtful on the philosophical side.

Mermaid aspires to be the Markdown of diagrams, so being editable and consumable via plaintext is paramount. If I have to use a visual editor, why not fetch for more powerful tools and be liberated from the limiting format?

This is akin to a WYSIWYG Markdown editor (which to be fair has a niche market). I would ask why not just use Google Doc or MS Word at that point?

By @nejsjsjsbsb - 3 months
I used this recently as someone shared a link to a diagram at work and I edited it for my own comprehension. It's nice. I'd prefer to have this in VSCode tho!
By @rbanffy - 3 months
On a related subject, is there a tool to read code and generate Mermaid class diagrams, and, maybe, vice-versa?
By @ConfusedDog - 3 months
That's pretty cool. Wish PlantUML community would have something like it.
By @mlhpdx - 3 months
Do Mermaid class diagrams support generics (parameterized types)?
By @tomovo - 3 months
Is there a demo available without creating an account?
By @sBqQu3U0wH - 3 months
Finally. I am not fond of code-to-diagram tools and wanted to try Mermaid, as it seems like one of the better diagramming tools around. Will definitely give it a try now.
By @sirjaz - 3 months
This is great and all, but this would better be served as a desktop app with lower overhead.