Native .drawio firstKeep editable mxGraphModel XML as the source of truth instead of treating exports as the working file.
Cross-platform exportsUse one helper for PNG, SVG, PDF, and JPG output with embedded XML where draw.io supports it.
Repository-ready lintingDetect edge crossings, border overlap, box penetration, and text overflow before diagrams get shared.