Agent skill that turns natural language, code, Terraform/K8s, SQL, OpenAPI, AsyncAPI, Protobuf and GraphQL sources into editable, tested draw.io architecture diagrams: incremental sync, multi-view projection, drift diff, CI architecture tests, whiteboard derasterize, interactive HTML/PPTX/Mermaid exports.
Python agent-skillsarchitecturearchitecture-diagramasyncapibpmnc4-modelclaude-codediagramdiagrams-as-codedrawioflowchartgithub-actionsgraphqlimage-to-diagramkubernetesmcp-serverprotobufsysmlterraformuml
docs(hero): lead READMEs with a demo GIF, promote raster2drawio hook
Agents365-ai82416c69c093
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6a7fd38..7154ce6 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,19 @@ on [Keep a Changelog](https://keepachangelog.com/), and the project followssemantic-ish versioning (the `metadata.version` field in`skills/drawio-skill/SKILL.md`).+## [Unreleased]++### Added++- **Hero demo GIF** (`assets/hero-demo.gif`): Terraform source becomes an+ architecture diagram with official icons, then the v2 change renders as an+ updated diagram. Reproducible via `examples/hero-demo/build_hero_gif.py`+ (needs drawio CLI + ffmpeg + Pillow); README and README_CN heroes now lead+ with it.+- **README / README_CN**: the whiteboard photo / screenshot to editable+ diagram capability (`raster2drawio.py`) is promoted to the first+ Highlights bullet.+## [3.2.2] - 2026-09-11### Fixeddiff --git a/README.md b/README.mdindex 6751b4e..335b552 100644--- a/README.md+++ b/README.md@@ -15,11 +15,16 @@A skill that turns natural language and real system sources into maintainable `.drawio` architecture models. Beyond generation and export, it incrementally synchronizes without discarding manual layout, projects multiple views from one model, enforces architecture contracts, queries dependencies, simulates failure propagation, and publishes dependency-free interactive walkthroughs. Works with **Claude Code, Cursor, Copilot, OpenClaw, Codex, Autohand Code, Hermes**, and any agent compatible with the [Agent Skills](https://agentskills.io) format.<p align="center">- <img src="assets/microservices-example.png" width="900" alt="Microservices Architecture — generated from a single natural-language prompt">+ <img src="assets/hero-demo.gif" width="900" alt="Hero demo: Terraform source becomes an architecture diagram with official icons; the v2 change renders as an updated diagram">+</p>++<p align="center">+ <img src="assets/microservices-example.png" width="900" alt="Microservices Architecture: generated from a single natural-language prompt"></p>## ✨ Highlights+- **Whiteboard photo / screenshot → editable diagram** — snap a legacy PNG or a physical whiteboard, let vision extract the graph, and `raster2drawio.py` rebuilds it as a real, editable `.drawio` honouring the original layout- **Architecture digital twin / Diagram IR** — separate meaning, provenance, and geometry; project executive, system, deployment, data-flow, and security views from one model- **Incremental sync without losing manual layout** — `diagramctl sync` updates changed nodes/relations while preserving tuned coordinates, styles, and annotations; removals stay reviewable by default- **Diagram-as-Test** — YAML/JSON rules for direct Internet-to-database access, cycles, orphans, ownership, production observability, external timeouts, trust-boundary protocols, and color contrastdiff --git a/README_CN.md b/README_CN.mdindex fbd479b..78bf463 100644--- a/README_CN.md+++ b/README_CN.md@@ -15,11 +15,16 @@一个把自然语言和真实系统源转换成可持续维护的 `.drawio` 架构模型的技能。除了生成与导出,它还能保留人工布局地增量同步、从同一模型投影多种视图、执行架构规则、查询依赖、模拟故障传播,并发布无外部依赖的互动讲解页。支持 **Claude Code、Cursor、Copilot、OpenClaw、Codex、Autohand Code、Hermes** 等任何兼容 [Agent Skills](https://agentskills.io) 规范的 agent。<p align="center">- <img src="assets/microservices-example.png" width="900" alt="微服务架构图 —— 来自一条自然语言提示词">+ <img src="assets/hero-demo.gif" width="900" alt="演示:Terraform 源码生成带官方图标的架构图;v2 变更渲染为更新后的图">+</p>++<p align="center">+ <img src="assets/microservices-example.png" width="900" alt="微服务架构图:来自一条自然语言提示词"></p>## ✨ 核心亮点+- **白板照片 / 截图 → 可编辑图表** — 拍下旧 PNG 或实体白板,由视觉模型提取图结构,`raster2drawio.py` 按原布局重建为真正可编辑的 `.drawio`- **架构数字孪生 / Diagram IR** —— 图的语义、来源与几何分离;同一模型可生成高管、系统、部署、数据流、安全五种可下钻视图- **增量同步且不丢人工布局** —— `diagramctl sync` 只更新变化的节点和关系,保留手调坐标、样式与注释;删除项默认进入可审查状态- **Diagram-as-Test** —— 用 YAML/JSON 规则检查直连数据库、循环依赖、孤立节点、owner、生产可观测性、外部超时、信任边界协议与颜色对比度diff --git a/assets/hero-demo.gif b/assets/hero-demo.gifnew file mode 100644index 0000000..2731267Binary files /dev/null and b/assets/hero-demo.gif differdiff --git a/examples/hero-demo/build_hero_gif.py b/examples/hero-demo/build_hero_gif.pynew file mode 100644index 0000000..27fc1a3--- /dev/null+++ b/examples/hero-demo/build_hero_gif.py@@ -0,0 +1,117 @@+#!/usr/bin/env python3+"""Regenerate assets/hero-demo.gif: main.tf -> v1 diagram -> main-v2.tf -> v2 diagram.++Run from the repo root: python3 examples/hero-demo/build_hero_gif.py+Needs: drawio CLI, ffmpeg, Pillow. Outputs are written next to this script and+the final GIF lands in assets/hero-demo.gif.+"""+import subprocess+import sys+import tempfile+from pathlib import Path++from PIL import Image, ImageDraw, ImageFont++ROOT = Path(__file__).resolve().parents[2]+HERE = ROOT / "examples" / "hero-demo"+SCRIPTS = ROOT / "skills" / "drawio-skill" / "scripts"+OUT = ROOT / "assets" / "hero-demo.gif"+W, H = 1280, 720+BG, PANEL = "#0d1117", "#161b22"+FG, COMMENT, KEYWORD, STRING = "#c9d1d9", "#8b949e", "#ff7b72", "#a5d6ff"+HOLD_S = 2.4++FONT = "/System/Library/Fonts/Menlo.ttc"+font = ImageFont.truetype(FONT, 18, index=0)+font_bold = ImageFont.truetype(FONT, 18, index=1)+++def run(cmd, cwd=ROOT):+ subprocess.run([str(c) for c in cmd], check=True, cwd=cwd,+ stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)+++def build_diagrams(tmp):+ for name, tf in (("v1", "main.tf"), ("v2", "main-v2.tf")):+ graph = tmp / f"{name}.json"+ run([sys.executable, SCRIPTS / "tfimports.py", HERE / tf,+ "--direction", "LR", "-o", graph])+ run([sys.executable, SCRIPTS / "autolayout.py", graph,+ "-o", HERE / f"{name}.drawio"])+ run(["drawio", "-x", "-f", "png", "--width", "1200",+ "-o", tmp / f"{name}.png", HERE / f"{name}.drawio"])+++def code_frame(path, highlight_from=None):+ img = Image.new("RGB", (W, H), BG)+ d = ImageDraw.Draw(img)+ panel = (40, 40, W - 40, H - 40)+ d.rounded_rectangle(panel, radius=18, fill=PANEL)+ lines = path.read_text().splitlines()+ start = next((i for i, ln in enumerate(lines)+ if highlight_from and highlight_from in ln), len(lines))+ per_col, line_h, col_w = 18, 23, 600+ for i, line in enumerate(lines):+ col, row = divmod(i, per_col)+ x = panel[0] + 24 + col * col_w+ y = panel[1] + 24 + row * line_h+ hi_right = min(x + col_w - 30, panel[2] - 10)+ if i >= start:+ d.rectangle((x - 8, y - 2, hi_right, y + line_h), fill="#1d3325")+ d.rectangle((x - 8, y - 2, x - 3, y + line_h), fill="#3fb950")+ words = line.split("#", 1)+ code = words[0].rstrip()+ if code.strip().startswith("resource"):+ d.text((x, y), code, font=font_bold, fill=KEYWORD)+ else:+ d.text((x, y), code, font=font, fill=FG)+ # re-color string spans crudely: anything inside double quotes+ for seg in code.split('"')[1::2]:+ pos = code.find(f'"{seg}"')+ if pos >= 0:+ x0 = x + d.textlength(code[:pos], font=font)+ d.text((x0, y), f'"{seg}"', font=font, fill=STRING)+ if len(words) == 2:+ xc = x + d.textlength(code, font=font)+ d.text((xc, y), "#" + words[1], font=font, fill=COMMENT)+ return img+++def diagram_frame(png):+ img = Image.new("RGB", (W, H), "white")+ pic = Image.open(png).convert("RGB")+ scale = min((W - 80) / pic.width, (H - 80) / pic.height)+ pic = pic.resize((int(pic.width * scale), int(pic.height * scale)))+ img.paste(pic, ((W - pic.width) // 2, (H - pic.height) // 2))+ return img+++def main():+ with tempfile.TemporaryDirectory(dir=HERE) as td:+ tmp = Path(td)+ build_diagrams(tmp)+ frames = [+ code_frame(HERE / "main.tf"),+ diagram_frame(tmp / "v1.png"),+ code_frame(HERE / "main-v2.tf",+ highlight_from="# v2 adds"),+ diagram_frame(tmp / "v2.png"),+ ]+ listfile = tmp / "frames.txt"+ with listfile.open("w") as f:+ for i, fr in enumerate(frames):+ p = tmp / f"frame{i}.png"+ fr.save(p)+ f.write(f"file '{p.name}'\nduration {HOLD_S}\n")+ f.write("file 'frame3.png'\n")+ palette = tmp / "palette.png"+ run(["ffmpeg", "-y", "-f", "concat", "-i", listfile.name,+ "-vf", "palettegen", "-update", "1", palette.name], cwd=tmp)+ run(["ffmpeg", "-y", "-f", "concat", "-i", listfile.name,+ "-i", palette.name,+ "-lavfi", "fps=10 [x]; [x][1:v] paletteuse", OUT], cwd=tmp)+ print(f"wrote {OUT}")+++if __name__ == "__main__":+ main()diff --git a/examples/hero-demo/diff.drawio b/examples/hero-demo/diff.drawionew file mode 100644index 0000000..bbcab0f--- /dev/null+++ b/examples/hero-demo/diff.drawio@@ -0,0 +1,76 @@+<mxfile>+ <diagram id="autolayout" name="Page-1">+ <mxGraphModel dx="800" dy="600" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">+ <root>+ <mxCell id="0"/>+ <mxCell id="1" parent="0"/>+ <mxCell id="aws_db_instance.orders" value="orders" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="0" y="30" width="160" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_db_subnet_group.main" value="main" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="200" y="0" width="160" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_instance.web" value="web" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#999999;" vertex="1" parent="1">+ <mxGeometry x="200" y="120" width="160" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_lambda_event_source_mapping.orders" value="orders" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">+ <mxGeometry x="0" y="230" width="160" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_lambda_function.fulfil" value="fulfil" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">+ <mxGeometry x="200" y="270" width="160" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_security_group.app" value="app" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="390" y="110" width="160" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_sqs_queue.order_events" value="order_events" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">+ <mxGeometry x="200" y="190" width="160" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_subnet.app" value="app
aws_subnet" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="390" y="180" width="160" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_subnet.data" value="data
aws_subnet" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="390" y="10" width="160" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_vpc.main" value="main" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="590" y="110" width="160" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="e0" value="" style="endArrow=classic;html=1;strokeColor=#999999;" edge="1" parent="1" source="aws_db_instance.orders" target="aws_db_subnet_group.main">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="160" y="40"/><mxPoint x="180" y="40"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e1" value="" style="endArrow=classic;html=1;strokeColor=#999999;" edge="1" parent="1" source="aws_db_instance.orders" target="aws_security_group.app">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="80" y="100"/><mxPoint x="80" y="110"/><mxPoint x="80" y="110"/><mxPoint x="80" y="110"/><mxPoint x="380" y="110"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e2" value="" style="endArrow=classic;html=1;strokeColor=#999999;" edge="1" parent="1" source="aws_db_subnet_group.main" target="aws_subnet.data">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="360" y="30"/><mxPoint x="380" y="30"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e3" value="" style="endArrow=classic;html=1;strokeColor=#999999;" edge="1" parent="1" source="aws_instance.web" target="aws_security_group.app">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="360" y="130"/><mxPoint x="380" y="130"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e4" value="" style="endArrow=classic;html=1;strokeColor=#999999;" edge="1" parent="1" source="aws_instance.web" target="aws_subnet.app">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="280" y="180"/><mxPoint x="280" y="190"/><mxPoint x="280" y="190"/><mxPoint x="280" y="190"/><mxPoint x="380" y="190"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e5" value="" style="endArrow=classic;html=1;strokeColor=#82b366;strokeWidth=2;" edge="1" parent="1" source="aws_lambda_event_source_mapping.orders" target="aws_lambda_function.fulfil">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="160" y="280"/><mxPoint x="180" y="280"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e6" value="" style="endArrow=classic;html=1;strokeColor=#82b366;strokeWidth=2;" edge="1" parent="1" source="aws_lambda_event_source_mapping.orders" target="aws_sqs_queue.order_events">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="160" y="240"/><mxPoint x="180" y="240"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e7" value="" style="endArrow=classic;html=1;strokeColor=#82b366;strokeWidth=2;" edge="1" parent="1" source="aws_lambda_function.fulfil" target="aws_security_group.app">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="370" y="310"/><mxPoint x="370" y="310"/><mxPoint x="370" y="310"/><mxPoint x="370" y="310"/><mxPoint x="370" y="150"/><mxPoint x="370" y="150"/><mxPoint x="370" y="150"/><mxPoint x="380" y="150"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e8" value="" style="endArrow=classic;html=1;strokeColor=#82b366;strokeWidth=2;" edge="1" parent="1" source="aws_lambda_function.fulfil" target="aws_subnet.app">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="410" y="290"/><mxPoint x="470" y="290"/><mxPoint x="470" y="290"/><mxPoint x="470" y="290"/><mxPoint x="470" y="260"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e9" value="" style="endArrow=classic;html=1;strokeColor=#999999;" edge="1" parent="1" source="aws_security_group.app" target="aws_vpc.main">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="550" y="140"/><mxPoint x="580" y="140"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e10" value="" style="endArrow=classic;html=1;strokeColor=#999999;" edge="1" parent="1" source="aws_subnet.app" target="aws_vpc.main">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="610" y="210"/><mxPoint x="670" y="210"/><mxPoint x="670" y="210"/><mxPoint x="670" y="210"/><mxPoint x="670" y="180"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e11" value="" style="endArrow=classic;html=1;strokeColor=#999999;" edge="1" parent="1" source="aws_subnet.data" target="aws_vpc.main">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="610" y="40"/><mxPoint x="670" y="40"/><mxPoint x="670" y="40"/><mxPoint x="670" y="40"/><mxPoint x="670" y="100"/></Array></mxGeometry>+ </mxCell>+ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/examples/hero-demo/main-v2.tf b/examples/hero-demo/main-v2.tfnew file mode 100644index 0000000..ab202eb--- /dev/null+++ b/examples/hero-demo/main-v2.tf@@ -0,0 +1,35 @@+# demo shop: v1 of the stack+resource "aws_vpc" "main" {+ cidr_block = "10.0.0.0/16"+}+resource "aws_subnet" "app" {+ vpc_id = aws_vpc.main.id+ cidr_block = "10.0.1.0/24"+}+resource "aws_subnet" "data" {+ vpc_id = aws_vpc.main.id+ cidr_block = "10.0.2.0/24"+}+resource "aws_security_group" "app" {+ vpc_id = aws_vpc.main.id+}+resource "aws_instance" "web" {+ subnet_id = aws_subnet.app.id+ vpc_security_group_ids = [aws_security_group.app.id]+ instance_type = "t3.micro"+}+resource "aws_db_instance" "orders" {+ engine = "postgres"+ instance_class = "db.t3.micro"+ vpc_security_group_ids = [aws_security_group.app.id]+}+# v2 adds async order events+resource "aws_sqs_queue" "order_events" {}+resource "aws_lambda_function" "fulfil" {+ runtime = "python3.12"+ handler = "app.handler"+}+resource "aws_lambda_event_source_mapping" "orders" {+ event_source_arn = aws_sqs_queue.order_events.arn+ function_name = aws_lambda_function.fulfil.arn+}diff --git a/examples/hero-demo/main.tf b/examples/hero-demo/main.tfnew file mode 100644index 0000000..e2678c4--- /dev/null+++ b/examples/hero-demo/main.tf@@ -0,0 +1,25 @@+# demo shop: v1 of the stack+resource "aws_vpc" "main" {+ cidr_block = "10.0.0.0/16"+}+resource "aws_subnet" "app" {+ vpc_id = aws_vpc.main.id+ cidr_block = "10.0.1.0/24"+}+resource "aws_subnet" "data" {+ vpc_id = aws_vpc.main.id+ cidr_block = "10.0.2.0/24"+}+resource "aws_security_group" "app" {+ vpc_id = aws_vpc.main.id+}+resource "aws_instance" "web" {+ subnet_id = aws_subnet.app.id+ vpc_security_group_ids = [aws_security_group.app.id]+ instance_type = "t3.micro"+}+resource "aws_db_instance" "orders" {+ engine = "postgres"+ instance_class = "db.t3.micro"+ vpc_security_group_ids = [aws_security_group.app.id]+}diff --git a/examples/hero-demo/v1.drawio b/examples/hero-demo/v1.drawionew file mode 100644index 0000000..5655b01--- /dev/null+++ b/examples/hero-demo/v1.drawio@@ -0,0 +1,46 @@+<mxfile>+ <diagram id="autolayout" name="Page-1">+ <mxGraphModel dx="800" dy="600" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">+ <root>+ <mxCell id="0"/>+ <mxCell id="1" parent="0"/>+ <mxCell id="aws_vpc.main" value="main" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#8C4FFF;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.vpc;" vertex="1" parent="1">+ <mxGeometry x="300" y="100" width="78" height="78" as="geometry"/>+ </mxCell>+ <mxCell id="aws_subnet.app" value="app
aws_subnet" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="130" y="10" width="120" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_subnet.data" value="data
aws_subnet" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="130" y="210" width="120" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_security_group.app" value="app" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;strokeColor=#232F3E;fillColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.checklist_security;" vertex="1" parent="1">+ <mxGeometry x="160" y="110" width="60" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_instance.web" value="web" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#ED7100;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.ec2;" vertex="1" parent="1">+ <mxGeometry x="0" y="0" width="78" height="78" as="geometry"/>+ </mxCell>+ <mxCell id="aws_db_instance.orders" value="orders" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#C925D1;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.rds;" vertex="1" parent="1">+ <mxGeometry x="0" y="120" width="78" height="78" as="geometry"/>+ </mxCell>+ <mxCell id="e0" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_db_instance.orders" target="aws_security_group.app">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="80" y="150"/><mxPoint x="150" y="150"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e1" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_security_group.app" target="aws_vpc.main">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="220" y="140"/><mxPoint x="290" y="140"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e2" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_instance.web" target="aws_security_group.app">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="120" y="70"/><mxPoint x="190" y="70"/><mxPoint x="190" y="70"/><mxPoint x="190" y="70"/><mxPoint x="190" y="100"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e3" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_instance.web" target="aws_subnet.app">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="80" y="40"/><mxPoint x="120" y="40"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e4" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_subnet.app" target="aws_vpc.main">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="240" y="90"/><mxPoint x="240" y="110"/><mxPoint x="240" y="110"/><mxPoint x="240" y="110"/><mxPoint x="290" y="110"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e5" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_subnet.data" target="aws_vpc.main">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="230" y="200"/><mxPoint x="230" y="180"/><mxPoint x="230" y="180"/><mxPoint x="230" y="180"/><mxPoint x="290" y="180"/></Array></mxGeometry>+ </mxCell>+ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/examples/hero-demo/v2.drawio b/examples/hero-demo/v2.drawionew file mode 100644index 0000000..3a8731a--- /dev/null+++ b/examples/hero-demo/v2.drawio@@ -0,0 +1,61 @@+<mxfile>+ <diagram id="autolayout" name="Page-1">+ <mxGraphModel dx="800" dy="600" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">+ <root>+ <mxCell id="0"/>+ <mxCell id="1" parent="0"/>+ <mxCell id="aws_vpc.main" value="main" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#8C4FFF;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.vpc;" vertex="1" parent="1">+ <mxGeometry x="300" y="340" width="78" height="78" as="geometry"/>+ </mxCell>+ <mxCell id="aws_subnet.app" value="app
aws_subnet" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="130" y="250" width="120" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_subnet.data" value="data
aws_subnet" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="130" y="450" width="120" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_security_group.app" value="app" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;strokeColor=#232F3E;fillColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.checklist_security;" vertex="1" parent="1">+ <mxGeometry x="160" y="350" width="60" height="60" as="geometry"/>+ </mxCell>+ <mxCell id="aws_instance.web" value="web" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#ED7100;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.ec2;" vertex="1" parent="1">+ <mxGeometry x="0" y="240" width="78" height="78" as="geometry"/>+ </mxCell>+ <mxCell id="aws_db_instance.orders" value="orders" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#C925D1;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.rds;" vertex="1" parent="1">+ <mxGeometry x="0" y="360" width="78" height="78" as="geometry"/>+ </mxCell>+ <mxCell id="aws_sqs_queue.order_events" value="order_events" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#E7157B;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.sqs;" vertex="1" parent="1">+ <mxGeometry x="150" y="0" width="78" height="78" as="geometry"/>+ </mxCell>+ <mxCell id="aws_lambda_function.fulfil" value="fulfil" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#ED7100;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.lambda;" vertex="1" parent="1">+ <mxGeometry x="150" y="120" width="78" height="78" as="geometry"/>+ </mxCell>+ <mxCell id="aws_lambda_event_source_mapping.orders" value="orders" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#ED7100;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.lambda;" vertex="1" parent="1">+ <mxGeometry x="0" y="120" width="78" height="78" as="geometry"/>+ </mxCell>+ <mxCell id="e0" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_db_instance.orders" target="aws_security_group.app">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="80" y="380"/><mxPoint x="150" y="380"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e1" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_security_group.app" target="aws_vpc.main">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="220" y="380"/><mxPoint x="290" y="380"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e2" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_instance.web" target="aws_security_group.app">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="120" y="310"/><mxPoint x="190" y="310"/><mxPoint x="190" y="310"/><mxPoint x="190" y="310"/><mxPoint x="190" y="340"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e3" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_instance.web" target="aws_subnet.app">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="80" y="280"/><mxPoint x="120" y="280"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e4" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_subnet.app" target="aws_vpc.main">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="240" y="330"/><mxPoint x="240" y="350"/><mxPoint x="240" y="350"/><mxPoint x="240" y="350"/><mxPoint x="290" y="350"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e5" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_lambda_event_source_mapping.orders" target="aws_lambda_function.fulfil">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="80" y="160"/><mxPoint x="140" y="160"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e6" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_lambda_event_source_mapping.orders" target="aws_sqs_queue.order_events">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="40" y="80"/><mxPoint x="40" y="40"/><mxPoint x="40" y="40"/><mxPoint x="40" y="40"/><mxPoint x="140" y="40"/></Array></mxGeometry>+ </mxCell>+ <mxCell id="e7" value="" style="html=1;rounded=0;" edge="1" parent="1" source="aws_subnet.data" target="aws_vpc.main">+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="230" y="430"/><mxPoint x="230" y="410"/><mxPoint x="230" y="410"/><mxPoint x="230" y="410"/><mxPoint x="290" y="410"/></Array></mxGeometry>+ </mxCell>+ </root>+ </mxGraphModel>+ </diagram>+</mxfile>