mermaid-live-preview

Installation
SKILL.md

Mermaid Live Preview

Generate shareable preview URLs for Mermaid diagrams on mermaid.live.

How It Works

The Mermaid Live Editor encodes diagram state into the URL hash using:

  1. JSON wrapping the diagram code and config into a State object
  2. zlib compression (level 9, standard zlib with 78 DA header)
  3. URL-safe base64 encoding (no padding)
  4. #pako: prefix in the URL fragment

This skill provides scripts/encode.py to perform this encoding/decoding.

Workflows

Generate a Preview URL

When the user has Mermaid diagram code (either inline, in a file, or generated during the conversation):

Related skills

More from escapewu/skills

Installs
1
Repository
escapewu/skills
GitHub Stars
1
First Seen
Mar 18, 2026