Skip to content

generateExecutionHtmlAsync

function generateExecutionHtmlAsync(params): Promise<ExecutionHtmlOutput>;

Defined in: src/html.ts:634

Generate a fully offline interactive HTML execution overlay from an ASL definition and execution history.

Identical to generateExecutionHtml, except AWS service icons are fetched once and inlined as base64 data URIs, so the document has no external references even with showIcons: true. A thin wrapper over generateHtmlAsync({ history }).

GenerateExecutionHtmlParams

Any additional DiagramOptions

Promise<ExecutionHtmlOutput>

Promise resolving to ExecutionHtmlOutput with the HTML document and a per-status summary

import { generateExecutionHtmlAsync } from 'sfn-diagram';
const { html } = await generateExecutionHtmlAsync({
aslDefinition: asl,
history: events,
showIcons: true,
});