A diagram your build can produce.
Render in a native process and keep the SVG alongside your other build artifacts. No headless browser needs to start, and the result can travel with the page or document that uses it.
Use it from the command lineTurn diagram text into standalone SVG for your documentation, application or build. Ferrigura runs without a browser process and embeds the fonts it uses, while keeping labels as selectable text. Start with the Rust library or the command-line tool.
Render in a native process and keep the SVG alongside your other build artifacts. No headless browser needs to start, and the result can travel with the page or document that uses it.
Use it from the command lineText is measured with bundled fonts, then the glyphs it needs are embedded in the SVG. Labels stay selectable and searchable, with line breaks tied to the same typography the viewer receives.
Understand the output contractChoose a flowchart, sequence or state diagram. Each preview is SVG generated by Ferrigura’s native CLI from the source beside it.
flowchart TD
draft[Draft] --> review{Review}
review -->|Approved| publish[Publish]
review -->|Changes| draft
The examples use the renderer’s light scheme and embedded font subsets. The website switches between build-time outputs; it runs no diagram renderer in your browser.
Ferrigura ports Mermaid 12.2.0. Its type reference documents the supported syntax, layout and limits for each diagram.
Ferrigura produces SVG. Labels use SVG text rather than HTML, and the renderer has no browser callbacks or tooltips. Math labels, hand-drawn strokes, classic themes and some font coverage are outside the supported scope.
The Node.js addon can be built from the repository; its prepared @ferrigura/core package is not available from npm. Ferromark’s optional adapter renders Mermaid fences in custom builds, alongside its Markdown renderer.
Pass diagram text and configuration to the library. Reuse a renderer when you have several blocks to process.
cargo add ferriguraUse the native CLI with files or standard input. Render several inputs into an output directory with one command.
cargo install --locked ferrigura-cli