I made a free Mermaid editor because I was tired of pasting diagrams into random sites
ChatGPT and Claude keep giving me Mermaid code. Ask for a login flow and you get flowchart TD and twenty lines of arrows. Nice. But it's just text until something draws it. So I'd copy it, search for some Mermaid site,
ChatGPT and Claude keep giving me Mermaid code. Ask for a login flow and you get flowchart TD and twenty lines of arrows. Nice. But it's just text until something draws it.
So I'd copy it, search for some Mermaid site, paste it into whatever came up first, fix the one typo the AI always makes, grab the picture, drop it into my doc and close the tab, and then do the exact same thing again ten minutes later when I asked for a change. Every single time.
I got tired of it. So I built my own, called merIDK.
You paste the code on the left. The diagram shows up on the right and changes as you type. If you break the syntax, it tells you which line. That's most of it.
The rest is stuff I wanted for myself:
- 30+ diagram types, and each one has an example you can start from. Flowcharts, sequence, Gantt, mind maps, ER, C4, Sankey, kanban and a lot more.
- Save it as SVG or PNG, or just copy the image and paste it into Slack.
- Short share links. Paste one into Slack, Discord, WhatsApp or X and it shows a picture of the diagram, not a blank card.
- An embed mode for docs.
- It works offline. You can install it like an app.
- Autocomplete that knows the node names you already used.
- An AI button, if you want it. Type "user signs up, gets an email, clicks the link" and it writes the diagram for you. It uses your own Anthropic key, and the key goes from your browser straight to Anthropic. It never hits my server.
There's no login. Your diagrams stay in your browser unless you make a share link.
One bug I liked fixing
Share links never change once they're made, and the preview picture that Slack or WhatsApp shows is saved right along with the diagram, so the two have to match exactly. Then I saw something odd. If I edited a diagram and hit Copy link really fast, the link got the old picture. The diagram hadn't finished drawing yet.
Now the button waits for the drawing to finish, then takes the picture. Small fix. But a link that shows the wrong diagram looks broken, and you can't change it later.
Try it
Paste whatever your AI chat gave you, or pick an example from the menu if you just want to poke around and see what it can do. Then tell me what breaks. I'd love to know which diagrams look bad and what you'd add.
(merIDK isn't part of the Mermaid project. I just use the language.)
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.