概要
Rust製のヘッドレス版Mermaid.js。
その他のプロジェクト計測したスター増加
- 24時間
- +5
- 7日間
- +17
- 15日間
- +30
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルMerman
Mermaid diagrams, rendered in Rust.
Parse, lay out, and render Mermaid diagrams for documentation, editor previews, reports, and applications. Merman runs headlessly: its native rendering path needs no browser or JavaScript runtime. Use it as a Rust library, a CLI, or through browser and native bindings.
Merman targets Mermaid 12.4.1 syntax, behavior, and SVG structure. Rendering uses Mermaid's themes by default; custom Merman themes are optional.
Try the Playground · Quick start · Ecosystem · Documentation
Rendered by Merman with Mermaid's default theme on a white canvas. Source · SVG-text configuration
Used by Zed. Zed uses Merman as its Rust Mermaid backend. Read the merged integration.
Quick start
The Rust example uses the current source checkout. Find releases and prebuilt downloads in the host installation guide.
Rust
With Rust 1.95 or later, add a dependency on your Merman checkout in Cargo.toml.
[dependencies]
merman = { path = "../merman/crates/merman" }
Use this in a function that returns Result.
use merman::Renderer;
let svg = Renderer::new().render_svg("flowchart LR\nSource --> Merman --> SVG")?;
print!("{}", svg.svg());
Choose formats and pipelines in the Rust embedding guide and CLI guide.
CLI
Install from Cargo and render a first diagram:
cargo install merman-cli --version 0.11.0 --locked
printf 'flowchart LR\n Source --> Merman --> SVG\n' | merman-cli render - --output diagram.svg
For an existing file, run merman-cli render diagram.mmd --output diagram.svg.
The CLI guide also covers prebuilt installation, PNG/JPEG/PDF export, Markdown batches,
linting, and ASCII/Unicode output for supported families.
Time-dependent diagrams use a deterministic clock by default. Replay a captured host instant
with --fixed-unix-millis and its --fixed-local-offset-minutes; see the
CLI runtime policy for bounds and date-only controls.
Ecosystem
Choose the host where your application runs. Each guide owns its installation steps and available operations; the host guide records release availability across channels.
| Use Merman in | Start here |
|---|---|
| Rust applications | merman API · Embedding guide |
| Shell scripts and CI | CLI, Container, GitHub Actions setup, Nix flake |
| JavaScript applications | Native Node.js (experimental) · Node-WASM · Browsers and Workers |
| Native and mobile applications | C/C++ and WASI SDK · Python · Swift · Android · Flutter/Dart |
| Editors and language tools | LSP · VS Code · Tree-sitter grammar |
| Documentation systems | Rustdoc · Typst |
Beyond SVG, Merman offers typed diagram models, diagnostics, editor APIs, Shoal layout, Outlined SVG, DrawList v1, PNG/JPEG/PDF export, and terminal output. Start with the capability guide for feature selection or the package surface guide for the complete product map.
Optional themes
Theme v2 (on main; published 0.11.0 uses Theme v1) offers 21 native presets and 31 appearances
across all 34 SVG diagram families, including Studio, Paper Cut, and Pop Art. Use
merman-cli theme list to inspect presets and appearances, or export an editable JSON document
with merman-cli theme export studio -o studio.theme.json. Theme guide
merman-cli render diagram.mmd --theme studio --appearance dark -o diagram.svg
Open Theme library in the Playground to preview presets and customize colors, typography, and form. The 0.10.0 theme gallery preserves the earlier renders and design credits.
Rendering quality and performance
Merman follows pinned Mermaid source, with checks for parsing, layout, configuration, themes, and SVG structure. Browse the alignment dashboard for diagram-family coverage and comparison evidence, from Flowchart and Sequence to Class, ER, State, Gantt, Mindmap, and charts.
Text measurement, host fonts, HTML labels, and hand-drawn paths can differ from browser output. The SVG output guide explains the output pipelines and viewer requirements. Read the renderer benchmark results for measured workloads and the benchmark guide for methodology.
Documentation and contributing
The documentation index routes to maintained guides for integration, architecture, and development. See resource policy for cancellation and bounded host workloads, rendering security for safe embedding, and the contributor and CI guide for local checks. Use the changelog and release and upgrade index when moving between releases.
License and attribution
Merman's own code is available under the Apache License 2.0 or MIT License. Distributed components retain their own licenses and notices, including EPL-2.0 ELK in default Rust rendering features. See THIRD_PARTY_NOTICES.md for the feature-dependent requirements.
Merman is independent of, and not affiliated with, endorsed by, or sponsored by the Mermaid project or its maintainers.
関連プロジェクトを探す
読み込み中…