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.

Live Docs & Interactive Gallery: https://diagram.praison.ai
JavaScript / Browser users: install aidiagram-js from npm.

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 --frame minimal
aidiagram html workflow.mmd --out workflow.html --frame none --no-attribution
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.2.0

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.2.0
File Size Uploaded Provenance Actions
aidiagram-0.2.0.tar.gz 92.7 kB Without provenance Details for aidiagram-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 216.2 kB

Release files / aidiagram-0.2.0.tar.gz

Download URL aidiagram-0.2.0.tar.gz
Size 92.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5af06e7c1fe13a052abe2158364b30b54c0567612a18975156e640a1983d5e36
BLAKE2b-256 checksum
How to use checksums
ec9b2b6c949838fb0c7e93b5b90b532c0d39d62ec94de2b162fd1b144251c5ce
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.2.0-py3-none-any.whl

Download URL aidiagram-0.2.0-py3-none-any.whl
Size 123.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1c833d79bfc8cb7053d2e8adb17c89419f0a04c3228a69ac59dd1e4d1ade1ff
BLAKE2b-256 checksum
How to use checksums
8c75a18d6788ed2e27edd5c5ec73e8c5656dbf77be0af87aeea155cc4c97325b
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.2.0

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