Skip to content
PACKAGES

blueprintToMermaid()

Render a portable D629/D630 GraphBlueprint directly as deterministic Mermaid source.

Unlike {@link describeToMermaid}, this helper consumes only the versioned Blueprint evidence envelope. It never reads runtime values, status, or a live Graph.

import { blueprintToMermaid } from "@graphrefly/ts/graph";
function blueprintToMermaid(
blueprint: GraphBlueprintEvidence,
opts: GraphBlueprintToMermaidOptions = {},
): string
ParameterTypeDescription
blueprintGraphBlueprintEvidencePortable GraphBlueprint evidence.
optsGraphBlueprintToMermaidOptionsDiagram direction.

Deterministic Mermaid flowchart source preserving subgraph groups.

This page was generated from source JSDoc, but the structured API tags are incomplete:

  • Missing @example.

packages/ts/src/graph/render.ts