This plugin integrates the diagrams.net (formerly draw.io) app into DokuWiki. The app (currently version 15.7.3) is included in the plugin in the /lib folder so you can run it self hosted. diagrams.net is licensed under the Apache v2 license.
Instructions and documentation can be found on https://www.dokuwiki.org/plugin:diagramsnet