Formats okf graph already emits. mermaid and DOT are text for a preview.
okf graph
const wayfinderGraphOutputs = ['json', 'dot', 'mermaid'];