PraisonAI Diagram (aidiagram)
Turn supported Mermaid flowcharts and sequence diagrams into self-contained, interactive, offline-ready HTML walkthroughs — with zero external dependencies and no CDN requests.
Install
python -m pip install aidiagram
CLI quick start
aidiagram html workflow.mmd --out workflow.html
aidiagram html workflow.mmd --out workflow.html --theme light --accent indigo
aidiagram convert workflow.mmd --out workflow.json
aidiagram info
Open workflow.html directly in any browser — it works completely offline via file:// with keyboard navigation (← / → / Home / End), Play/Pause walkthrough, hover path highlighting, pan/zoom, fullscreen, source copy, and animated SVG + 2x PNG export.
Python API
from aidiagram import write_interactive_html, render_interactive_html, mermaid_to_diagram
write_interactive_html("workflow.mmd", "workflow.html", theme="dark", accent="amber")
Supported Mermaid subset
flowchart/graph(LR,TB,TD, <= 14 nodes): subgraphs (1 level), chained arrows, edge labels, solid/dashed/thick arrows, bidirectional (<-->,<==>,<-.->), and undirected (---) links.sequenceDiagram(<= 6 actors):participant/actoraliases, solid/dashed messages, self-calls,autonumber, andNote over / left of / right of.- Unsupported Mermaid diagrams (Gantt, ER, nested subgraphs,
alt/loop/rect,RL/BT,%% diagram: off,%% visual: off) never fail silently:mermaid_to_diagram()returnsNoneand the standalone HTML preserves the verbatim original Mermaid source with a Copy button.
License
Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE bundled in this distribution. Exported offline HTML pages embed the Apache-2.0 license and attribution notices directly inside the output file.
Metadata
Release files for aidiagram 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aidiagram-0.1.2.tar.gz | 51.3 kB | Without provenance | Details for aidiagram-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aidiagram-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for aidiagram-0.1.2-py3-none-any.whl |
Total release size: 117.5 kB
Release files / aidiagram-0.1.2.tar.gz
| Download URL | aidiagram-0.1.2.tar.gz |
|---|---|
| Size | 51.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ab7d746a270ff345e1391d94614c897d53c9d016a0ecbe67c5ee77578568909
|
|
BLAKE2b-256 checksum How to use checksums |
507a01fb3d2e329c344e5dc292147520d44640930a46a76e902315a7b69123a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / aidiagram-0.1.2-py3-none-any.whl
| Download URL | aidiagram-0.1.2-py3-none-any.whl |
|---|---|
| Size | 66.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dd46919710be6493a84ac412019585948a38bf8ff9cc672d3182c6652efd66a
|
|
BLAKE2b-256 checksum How to use checksums |
ce468fbb0be58fd350fb7dcbef9ca41579a2ca43957430f90bd54097a766ac0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Security for aidiagram 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.