April 2nd, 2025

Show HN: Mermaid Chart VS Code Plugin: Mermaid.js Diagrams in Visual Studio Code

The Mermaid Chart VS Code Plugin enables developers to create and edit diagrams in Visual Studio Code, offering features like real-time rendering, Markdown integration, offline editing, and AI-generated diagrams.

Read original articleLink Icon
FrustrationExcitementCuriosity
Show HN: Mermaid Chart VS Code Plugin: Mermaid.js Diagrams in Visual Studio Code

The Mermaid Chart VS Code Plugin is a tool designed for developers to create and edit Mermaid.js diagrams directly within Visual Studio Code. It allows users to visualize software architecture, document API flows, and manage various types of diagrams without needing an account for basic functionalities. Key features include automatic recognition of .mmd files, syntax highlighting, real-time rendering with pan and zoom capabilities, and integration with Markdown for embedding diagrams. For collaborative work, users can log in to access advanced features such as cloud integration, which allows for sharing diagrams with non-developers through a browser-based editor. The plugin also supports offline editing and Git-based version control, enabling developers to manage diagrams in version-controlled repositories. Additionally, it offers AI capabilities to generate diagrams from source code, enhancing productivity. The plugin is suitable for various real-world applications, including DevOps visualization, API flow documentation, and improving internal documentation. Users can quickly get started by installing the plugin from the VS Code Marketplace and utilizing the real-time preview feature.

- The Mermaid Chart VS Code Plugin allows for seamless diagram creation and editing within Visual Studio Code.

- Basic features do not require an account, while advanced functionalities like cloud sync need user login.

- The plugin supports various diagram types and integrates with Markdown for easy documentation.

- It offers offline editing and Git version control for managing diagrams.

- AI capabilities enable automatic diagram generation from source code, enhancing developer efficiency.

AI: What people are saying
The comments on the Mermaid Chart VS Code Plugin reveal a mix of opinions and suggestions for improvement.
  • Many users appreciate Mermaid's integration with Markdown but express concerns about the standalone .mmd file format, which they find less useful.
  • Some users compare Mermaid unfavorably to other diagramming tools like PlantUML, citing better functionality and features in the latter.
  • There are requests for a visual interface and better support for real-time diagram viewing within Markdown previews.
  • Users highlight the potential of using Mermaid with AI tools like GPT for generating diagrams, indicating a positive experience with this integration.
  • Concerns about usability and readability of diagrams created with Mermaid are also mentioned, with some users preferring text explanations over diagrams.
Link Icon 11 comments
By @mackenly - 1 day
I really like Mermaid, but I'm not seeing the value in this as is.

- Mermaid within .md is widely supported. The file format of .mmd, while supported in most integrations, is a standalone file rather than living within my documentation/markdown. I use Mermaid charts and graphs as visual aids to add to the documentation or notes rather than having them stand alone. If I wanted a standalone file, I'd use any other diagram tool with its proprietary file format. I like Meriamid because of how easy it is to integrate into markdown. The value isn't in having a Mermaid file; the value is in adding diagrams and charts to markdown.

- Within .md files there's a Mermaid logo added beside the Mermaid, but it doesn't seem to be clickable or have a context menu. Maybe this is a bug. It also weirdly highlights all of the Mermaid code. Why doesn't it syntax highlight within markdown? This extension works great for highlighting: https://marketplace.visualstudio.com/items/?itemName=bpruitt...

- It doesn't add support for viewing mermaid within markdown preview. I currently use this extension for it. This is a key feature that is missing. https://marketplace.visualstudio.com/items/?itemName=bierner...

Overall, excited to see what this becomes. Hope this is useful feedback! It can only get better from here.

By @amanzi - 1 day
Perhaps PlantUML isn't as new and interesting as Mermaid, but each time I try a side-by-side comparison, the results are always better in PlantUML than Mermaid. I'll admit that the Mermaid syntax is a lot easier to understand, but the PlantUML syntax is a lot more powerful. I especially like the new Activity diagrams in PlantUML with the conditionals and looping syntax.
By @ashryan - 1 day
Mermaid is fantastic as a portable I/O format for LLM context. I spent some time discussing entity relationships with an LLM recently, and had it produce a Mermaid diagram to wrap up the conversation.

Once you have the diagram code, you can use that as an artifact for new LLM chats related to databases, APIs, etc.

I'm not sure what the history of mermaidchart.com specifically is, but I'm guessing it's new since the ER diagram docs are marked as "coming soon":

https://docs.mermaidchart.com/mermaid/er/syntax

I'm curious how this plugin compares to Markdown Preview Mermaid Support: https://marketplace.cursorapi.com/items?itemName=bierner.mar...

By @esafak - 1 day
By @5Qn8mNbc2FNCiVV - 1 day
Never seen a bigger waste of time than when my colleague (who was given more authority for some reason) tried establishing Mermaid as our go-to diagramming tool for the company.

Had no real benefits, was way more cumbersome for almost everyone and honestly even me as a developer I'd rather have a few paragraphs instead of a diagram.

Somehow it's just never "readable"

By @oigursh - about 11 hours
Is there a visual interface for Mermaid?

I can blast out auto-reflowing flowcharts in Flying Logic on a keyboard but it's moved to a subscription model that doesn't make sense for my irregular use.

Seeing the connections in real time really helps with my thought process.

By @darepublic - 1 day
I have been using mermaid with gpt... describing the diagram I want and getting the syntax, then copy pasting it into the repl. I also wanted to investigate using marp for quickly coding up power point slides. But I regularly ran into issues with customising styles and documentation around html so I gave up on that
By @mt123456 - about 7 hours
Does it work with display(Markdown(...)) in jupyter notebooks within VSCode?
By @herpdyderp - about 21 hours
Installed it, ran "@mermaid-chart make a diagram of the code flow in this file" in CoPilot, worked like a charm. Cool!
By @thefourthchime - 1 day
Is this new? I remember playing with a mermaid plugin like a year ago.
By @vimax - 1 day
Does this let you export rendered diagrams at html or pdf? The Markdown Preview Enhanced plug-in is the only plugin I found to do this easily lady time I was looking .