{"repo":"lukilabs/beautiful-mermaid-swift","free":true,"listed":false,"github":"https://github.com/lukilabs/beautiful-mermaid-swift","clone":"git clone https://github.com/lukilabs/beautiful-mermaid-swift.git","description":"Native Mermaid diagram renderer for Swift","language":"Swift","stars":356,"topics":["diagrams","ios","macos","mermaid","mermaid-diagrams","spm","swift","swiftui"],"license":"MIT","category":"mobile-apps","readme_excerpt":"BeautifulMermaid Render Mermaid diagrams as beautiful native images, SVGs, and ASCII art A native Swift implementation of beautiful-mermaid, powered by the ELK layout engine. Overview BeautifulMermaid is a native Swift port of beautiful-mermaid. Parse and render Mermaid diagrams without WebViews or JavaScript. Uses elk-swift for graph layout — a minimal Swift port of the Eclipse Layout Kernel. Features - 6 diagram types — Flowcharts, State, Sequence, Class, ER, and XY Charts - Multiple output formats — Native images ( UIImage / NSImage ), SVG, and ASCII art - 17 built-in themes — Tokyo Night, Dracula, Nord, Gruvbox, and more - VS Code theme import — Load any Shiki/VS Code theme via ShikiTheme - Mono mode — Beautiful diagrams from just 2 colors - SwiftUI integration — Built-in MermaidDiagramView with a value-type MermaidDiagram model - CALayer rendering — MermaidLayer for lightweight, direct Core Graphics rendering - Async rendering — All render methods available as async variants - Pure Swift — No WebView, no JavaScript - Cross-platform — iOS 15+, macOS 12+, Mac Catalyst 15+, visionOS 1.0+ Installation Swift Package Manager Add BeautifulMermaid to your Package.swift : Then add it to your target dependencies: Quick Start SwiftUI Use the built-in MermaidDiagramView : UIKit / AppKit MermaidView is a native UIView (iOS) / NSView (macOS) subclass: Image Export Export diagrams as PNG or JPEG data: Async Rendering All render methods have async variants for background processing: The","default_branch":null,"files":null,"tree":[],"storefront":"/r/lukilabs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lukilabs/beautiful-mermaid-swift/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}