dsh-uml-drawio

UML sequence diagrams as editable .drawio files from a JSON spec: Python places participants, fragments and labels, the draw.io desktop CLI renders a PNG at 1x-4x, and Pillow verifies the output size. Generation is deterministic and refuses to overwrite a file edited by hand. Needs Python with Pillow 12.x and the draw.io desktop app; the default paths are Windows ones (Python under C:\Program Files\Python314, draw.io under D:\drawio) and can be changed in the settings card.

Overview

UML sequence diagrams as editable .drawio files from a JSON spec: Python places participants, fragments and labels, the draw.io desktop CLI renders a PNG at 1x-4x, and Pillow verifies the output size. Generation is deterministic and refuses to overwrite a file edited by hand. Needs Python with Pillow 12.x and the draw.io desktop app; the default paths are Windows ones (Python under C:\Program Files\Python314, draw.io under D:\drawio) and can be changed in the settings card.

Installation

Install from GitHub

dsh plugin --profile web add github:hanwang-ai/dsh-uml-drawio

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.