Skip to content

Mermaid Flow Player

Step through your Mermaid diagrams.

Wrap a diagram in one tag and it plays. Every step gets a URL you can send someone.

<script src="https://cdn.jsdelivr.net/npm/mermaid-flow-player@latest/mermaid-flow-player.element.js"></script>
<mermaid-flow-player controls>
flowchart LR
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
</mermaid-flow-player>

That is the whole thing. It also works on the diagrams you already have — Docusaurus, VitePress, Astro, Starlight, Jekyll, Hugo, Eleventy, and anything built on markdown-it, marked, Prism or Shiki.

Paste your own diagram

Save this as diagram.html

Open it in a browser. No build step, no server, no install.

Three things people do with it

Explain a system to someone new

A new engineer reads an architecture diagram as a wall of boxes. Play it and they follow one request through the whole thing, in the order it actually happens.

Narration comes from %% narrate lines in the diagram source.

Walk an audience through a flow

You are on stage, or on a recorded call, and you need the room looking at the same arrow you are. Step forward when you are ready, not when the animation decides.

Arrow keys and space work. So does linking to step 4.

Upgrade a docs site you already have

Your diagrams are already written. Add the script tag and leave the markup alone. Auto mode finds hand-written .mermaid blocks and the fences your markdown pipeline renders, in both of the spellings that exist in the wild.

Works with Docusaurus, VitePress, Astro, Starlight, Jekyll, Hugo, Eleventy, and anything built on markdown-it, marked, Prism or Shiki.

See everything it does

Install itAPI reference