cd /news/developer-tools/visimer-lets-you-edit-mermaid-diagra… · home topics developer-tools article
[ARTICLE · art-100307] src=promptcube3.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Visimer lets you edit Mermaid diagrams without touching the code

Visimer, a new open-source library, lets users edit Mermaid diagrams visually without touching the underlying code, preserving manual formatting and comments by mapping SVG elements to a Concrete Syntax Tree (CST). It provides bindings for Monaco Editor, CodeMirror, and a headless version, and is integrated into the OpenKnowledge markdown IDE.

read2 min views1 publishedAug 17, 2026
Visimer lets you edit Mermaid diagrams without touching the code
Image: Promptcube3 (auto-discovered)

This feels like a necessary addition to any AI workflow. LLMs are incredible at generating the initial structure of a flowchart or sequence diagram, but they often hallucinate the exact positioning or trip up on a specific label. Having a visual editor means you can use an LLM for the heavy lifting and then manually polish the artifact for professional sharing without having to manually parse the Mermaid code.

How it works under the hood #

The technical implementation is where this gets interesting. Most visual editors for code-based diagrams try to re-generate the entire text file every time a change is made. The problem with that approach is that it strips out all your manual formatting and comments.

To solve this, Visimer maps the rendered SVG elements directly back to a Concrete Syntax Tree (CST). This means when you rename a node on the screen, the library identifies the exact character range in the source code that needs to change and updates only that segment, preserving everything else in the file.

Integration and Deployment #

If you're building an app and want to add this functionality, it's designed as an embeddable component library. It isn't just a standalone tool; it provides specific bindings for popular code editors:

Monaco Editor: Full support for VS Code-like environments.CodeMirror: Ready for lightweight web-based editors.Headless Version: Available for those who want to build their own custom UI logic on top of the engine.

For those who just want a practical tutorial on how to use it without coding a library, the playground is the fastest way to see it in action. You can drag nodes, change shapes, and edit labels in real-time while seeing the Mermaid code update in a side panel.

If you're looking for a full-blown environment to use this in, it's already integrated into the OpenKnowledge markdown IDE. It essentially turns Mermaid diagrams into editable objects within a markdown document, which is a massive upgrade over the standard "write code, hope it looks right" experience.

https://visimer.com/playground

Next Codex weekly limits are disappearing way too fast for me →

these real-world AI monetization case studies, with plenty of directly applicable cases.

── more in #developer-tools 4 stories · sorted by recency
── more on @visimer 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/visimer-lets-you-edi…] indexed:0 read:2min 2026-08-17 ·