AI
Mermaid Diagram Editor
Brought to you by the folks at

How to edit a Mermaid Diagram using Eraser

Step-by-step guide on editing a Mermaid Diagram using Eraser

  1. Paste your Mermaid code into the prompt field. Your Mermaid syntax could come from any source including any generative LLMs like ChatGPT, Claude, Copilot, Cursor, or any repositories of Mermaid-based documentation.
  2. Click generate. Your Mermaid code should be converted into an Eraser diagram in a few seconds.
  3. Edit the diagram using AI prompts (requires signing in to Eraser). For example: “Group all data components into a ‘Data Layer’” or “Add an API Gateway in front of the backend services.”
  4. Tweak the layout using GUI controls (requires signing in to Eraser). Adjust spacing, reroute lines, or rename components for clarity.

Tips on editing a Mermaid Diagram using Eraser

  • Try multiple diagram types. Eraser offers multiple diagram types including architecture, sequence, flowchart, and entity relationship. Try different types to see which one your Mermaid code would best be represented as.
  • Try different editing methods (requires signing in to Eraser). Eraser offers three different ways to edit a diagram. You can edit using AI prompts, directly editing the Eraser syntax, and click-dragging elements using Eraser's visual editor.
  • Try collaborative editing (requires signing in to Eraser). Once signed in, you can simply share the link to a file or diagram with a collaborator to work together on a diagram in real-time.
  • After making edits, if you need Eraser code to be translated back to Mermaid code, you can use any generic LLM (e.g. ChatGPT, Claude, etc.) to convert it.

Trusted by leading architecture teams globally

FAQs

How do I get started?
Try one of our presets. Select an option under "Load a preset" and click "Generate Diagram". You can also browse our use case video library for more inspiration.
Can I edit my diagram?
Yes, the diagrams can be edited in Eraser, a docs and diagram tools built for engineering teams. Click on "Save and Edit Diagram". In Eraser, the diagrams can be edited using Eraser's diagram-as-code syntax.
Who made this and what is Eraser?
DiagramGPT was created by the team at Eraser, leveraging OpenAI's GPT-4. Eraser (eraser.io) is a whiteboard for engineering teams. You can edit your DiagramGPT generated diagrams using Eraser.
How can I share feedback?
We'd love to hear from you. Reach out to us at hello@tryeraser.com, on Twitter (@eraserlabs), or join our Slack community.
What types of diagrams can it draw?
4 types are currently available – flow charts, entity relationship diagrams, cloud architecture diagrams, and sequence diagrams.
Is there an API?
Yes, you can read our API documentation here. Due to LLM costs, the API is only available to Professional Plan teams.
Will my data be used for LLM training?
No. OpenAI nor Eraser will use your data to train AI models. Eraser may analyze your usage to improve and enhance our AI feature.
What's next?
It only gets better from here. We're working to improve accuracy and layout customization. If there's something you'd really like to see, drop us a note at hello@tryeraser.com.