workgraph-visualization

Runtime-independent workgraph visualization

graph
mermaid
moonbit
visualization
moon add totto2727/workgraph-visualization@0.1.3
Download zip
Author
Version
0.1.3
License
MIT
Last updated
6 days ago
Downloads
2
README

#workgraph-visualization

workgraph-visualization renders the runtime-independent snapshots produced by workgraph-core as Mermaid diagrams.

#Package

import {
"totto2727/workgraph-visualization"
}

The module prefers the Wasm/WASI target and supports JavaScript, native, and Wasm/WASI targets. Wasm GC is excluded because moonbitlang/async does not support it.

#Example

moon run package/workgraph-visualization/src/examples/basic

#
to_mermaid

fn[S, P] to_mermaid(graph :
CompiledGraph
[S, P]) -> String

Renders a compiled graph as a deterministic Mermaid flowchart.

Node and router descriptions and declared route labels come from core metadata. Routers with multiple declared destinations or descriptions are rendered as decision diamonds. Runtime-only conditions, End, and Fail outcomes are not inferred.

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io