ai-agent

mermaid-server

Go implementation of a HTTP server to allow remote generation of mermaid-js diagrams without any pre-requisites installed locally.
438 stars62 forksGoUpdated 12/20/2024100% free · open source
What it does

Runs a tiny HTTP service that turns Mermaid markup into PNG/SVG images without installing Mermaid locally.

When to use it
  • •You need to generate diagrams on the fly from a web app or CI pipeline and don’t want to bundle Node.js/mermaid-cli in each environment.
  • •Your team uses Go for deployment and prefers a single binary to serve diagram images.
  • •You want a central diagram‑rendering endpoint to avoid rate‑limits or latency of third‑party SaaS services.
Ready-to-paste prompt
curl -X POST -H "Content-Type: application/json" -d '{"code":"sequenceDiagram\n    participant Alice\n    participant Bob\n    Alice->>Bob: Hello Bob, how are you?\n    Bob-->>Alice: I am good!"}' http://localhost:8080/png > hello.png
Heads up: The server spawns `mmdc` (mermaid‑cli) under the hood, so Node.js and the mermaid‑cli package must be installed globally (`npm i -g @mermaid-js/mermaid-cli`) before the first run, otherwise the binary exits with “cannot find mmdc”.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/mermaid-server && curl -fsSL https://workflowstacks.com/api/skills/mermaid-server/claude-skill -o ~/.claude/skills/mermaid-server/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

Quick Actions
Details
Creator
TomWright
Language
Go
Category
ai-agent
Published
4/6/2020

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/mermaid-server.svg)](https://workflowstacks.com/skills/mermaid-server?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.