Drawio drawings are just XML, its possible it can generate that directly
hopefully op will answer if that's what he is doing