API reference
Every page under this section is generated from the JSDoc in src/ at build
time, so it tracks the published signatures rather than a hand-maintained copy.
Each card below opens the entry point’s main export; the sidebar lists the rest
of that module.
sfn-diagramCore entry point: generateSvg, generateMermaid, generateHtml, generateDiagram, diffs, and execution overlays. Runs in Node, the browser, and edge runtimes.
sfn-diagram/cfnExtract ASL from CloudFormation, SAM, and CDK templates.
sfn-diagram/awsFetch execution history through the AWS SDK. Node only.
sfn-diagram/pngPNG export via a native rasterizer. Node only.
sfn-diagram/ciCI/PR comment building blocks: Markdown report builder, changed-file detection, execution-overlay fetcher, and the GitLab merge request integration. Node only.
sfn-diagram/elementThe custom element and defineSfnDiagram. Import sfn-diagram/element/auto for zero-config registration. Browser only.