The aidiagram PyPI package bundles the versioned browser engine inside the wheel (importlib.resources) so exported HTML pages work completely offline with zero network calls.
aidiagram
importlib.resources
*(Optional YAML formatting for aidiagram convert: python -m pip install "aidiagram[yaml]".)*
aidiagram convert
python -m pip install "aidiagram[yaml]"
| Flag | Default | Options |
|---|---|---|
| --out | <spec>.html | Output HTML path |
--out
<spec>.html
| --theme | dark | light, dark, auto |
--theme
dark
light
auto
| --accent | amber | amber, indigo, teal, rose |
--accent
amber
indigo
teal
rose
Every exported HTML file embeds:
<praisonai-diagram>
file://
NOTICE
If the Mermaid input uses unsupported syntax or an opt-out comment (%% diagram: off), aidiagram convert exits cleanly with a clear error rather than writing a partial diagram.
%% diagram: off
Returns JSON with the package version, bundled browser runtime version, SHA-256 digest, and Apache-2.0 license metadata.
Apache-2.0