Workflow
Recommended Order
- Edit the native
.drawiofile. - Keep the
.drawiofile in the repository as the editable source. - Export only the artifact formats the user needs.
- Run SVG lint when the diagram has meaningful routing or text density.
- Visually inspect the result before you ship it.
Export Commands
PNG
bash
node scripts/export-drawio.mjs architecture.drawio --format png --openSVG
bash
node scripts/export-drawio.mjs architecture.drawio --format svgPDF
bash
node scripts/export-drawio.mjs architecture.drawio --output architecture.drawio.pdfWhen To Run Lint
Run lint after SVG export when:
- arrows route around multiple boxes
- non-rect shapes such as
document,hexagon,parallelogram, ortrapezoidsit close to arrows or frames - labels are long or mixed-language
- boxes are packed tightly
- you need repeatable QA in CI
Lint Command
bash
node scripts/check-drawio-svg-overlaps.mjs architecture.drawio.svgWhat The Linter Reports
edge-edgeedge-rect-borderedge-shape-borderedge-rectrect-shape-bordertext-overflow(width)text-overflow(height)
AWS Icon Search
bash
uv run python scripts/find_aws_icon.py eventbridgeUse the helper when diagram work depends on current AWS icon naming and you need a quick repository-local lookup.
