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.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.1.0
File Size Uploaded Provenance Actions
aidiagram-0.1.0.tar.gz 48.6 kB Without provenance Details for aidiagram-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 112.1 kB

Release files / aidiagram-0.1.0.tar.gz

Download URL aidiagram-0.1.0.tar.gz
Size 48.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f9d8fc60c0cb5b04de1f84632abcf9d37b5e465213c7c3a8dfe33d319cba6f35
BLAKE2b-256 checksum
How to use checksums
9fda9bf3ee53ab9f4d5ef3ab4d280ac3b9b4fee6617b744dae542617ce3d4ef6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release files / aidiagram-0.1.0-py3-none-any.whl

Download URL aidiagram-0.1.0-py3-none-any.whl
Size 63.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
693679d0486e33e350153f51f8e2fc6da495ff9a147cc5ae69f4274e508c9ba9
BLAKE2b-256 checksum
How to use checksums
c71c67521042b2025e132f9d649cfd311f443bc48731dc911b6123c9fae906be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Security for aidiagram 0.1.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