Skip to main content

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/actor aliases, solid/dashed messages, self-calls, autonumber, and Note 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() returns None and 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aidiagram 0.1.1
File Size Uploaded Provenance Actions
aidiagram-0.1.1.tar.gz 49.4 kB Without provenance Details for aidiagram-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aidiagram 0.1.1
File Interpreter ABI Platform Actions
aidiagram-0.1.1-py3-none-any.whl Python 3 none any Details for aidiagram-0.1.1-py3-none-any.whl

Total release size: 113.7 kB

Release files / aidiagram-0.1.1.tar.gz

Download URL aidiagram-0.1.1.tar.gz
Size 49.4 kB
Tags Source
SHA-256 checksum
How to use checksums
139d77227b1bbcbbd79810db9c640d1f1058a4937562929f31c33ef4c432b84f
BLAKE2b-256 checksum
How to use checksums
3ea537c81cd39369ff5953d0f27d6e8592d2a8ee189be0c97c91ebe472b9bb37
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.1-py3-none-any.whl

Download URL aidiagram-0.1.1-py3-none-any.whl
Size 64.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa4a5890d5e779ca026b9ecfc47d85cf64c4befbc61327e6d5994837e3c29879
BLAKE2b-256 checksum
How to use checksums
3059856e442a643aa5be91739a648814508d2f20117d30418db8f131ef88a283
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.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page