Home
Softono
Pretty-mermaid-skills

Pretty-mermaid-skills

Open source MIT JavaScript
748
Stars
37
Forks
0
Issues
3
Watchers
4 months
Last Commit

About Pretty-mermaid-skills

<div align="center"> # Pretty-Mermaid Skills ![fLEWT5x.png](https://iili.io/fLEWT5x.png) Render Mermaid diagrams as beautiful SVGs or ASCII art Ultra-fast, fully themeable, zero DOM dependencies. Built for the AI era. [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Node.js Version](https://img.shields.io/badge/node-%3E%3D14-brightgreen)](https://nodejs.org/) [![GitHub stars](https://img.shields.io/github/stars/imxv/Pretty-mermaid-skills?style=social)](https://github.com/imxv/Pretty-mermaid-skills) **English** | [δΈ­ζ–‡](README_CN.md) </div> ## Introduction A Mermaid diagram rendering skill for AI, supporting both SVG and ASCII output formats to make your documentation more vivid. ## ✨ Features - πŸ“Š **Multi-format Support**: SVG and ASCII rendering export - 🎨 **Rich Themes**: 15 built-in themes for different scenarios - πŸ“ˆ **Full Diagram Support**: Flowchart, Sequence, State, Class, ER and more - ⚑ **High Performance**: Batch parallel rendering - πŸ“š **Ready to Use ...

Platforms

Web Self-hosted

Languages

JavaScript

Pretty-Mermaid Skills

fLEWT5x.png

Render Mermaid diagrams as beautiful SVGs or ASCII art

Ultra-fast, fully themeable, zero DOM dependencies. Built for the AI era.

License: MIT Node.js Version GitHub stars

English | δΈ­ζ–‡

Introduction

A Mermaid diagram rendering skill for AI, supporting both SVG and ASCII output formats to make your documentation more vivid.

✨ Features

  • πŸ“Š Multi-format Support: SVG and ASCII rendering export
  • 🎨 Rich Themes: 15 built-in themes for different scenarios
  • πŸ“ˆ Full Diagram Support: Flowchart, Sequence, State, Class, ER and more
  • ⚑ High Performance: Batch parallel rendering
  • πŸ“š Ready to Use: Complete templates and detailed documentation

Supported Themes

Light Themes Dark Themes Other
zinc-light zinc-dark nord
tokyo-night-light tokyo-night nord-light
cappuccin-latte tokyo-night-storm dracula
github-light cappuccin-mocha one-dark
solarized-light github-dark
solarized-dark

πŸ€– AI Assistant Integration

Seamlessly integrates with the following AI coding environments:

  • Claude Code
  • Cursor
  • Gemini CLI
  • Antigravity
  • OpenCode
  • Codex
  • qoder

πŸš€ Installation

One-click Install

npx skills add https://github.com/imxv/pretty-mermaid-skills --skill pretty-mermaid

Verify Installation

cd Pretty-mermaid
node scripts/themes.mjs

Note: Dependencies will be auto-installed on first run. Just ensure Node.js is available.

πŸ“– Quick Start

List Available Themes

node scripts/themes.mjs

Render Single Diagram

node scripts/render.mjs \
  --input diagram.mmd \
  --output output.svg \
  --theme tokyo-night

Batch Render

node scripts/batch.mjs \
  --input-dir ./diagrams \
  --output-dir ./output \
  --theme dracula

πŸ“‚ Examples

Check the 5 template files in assets/example_diagrams/:

  • flowchart.mmd - Flowchart
  • sequence.mmd - Sequence Diagram
  • state.mmd - State Diagram
  • class.mmd - Class Diagram
  • er.mmd - ER Diagram

πŸ“š Documentation

See SKILL.md for detailed usage guide.

βš™οΈ Requirements

  • Node.js 14+

πŸ“„ License

MIT License

Star History

Star History Chart

πŸ™ Acknowledgments

Based on beautiful-mermaid