@wilbr @zkat draw IO is actually available on Github under apache 2 license.
We're self hosting one at work.
The only annoying thing is they hard-coded some urls that I had to modify in order for the application to run on another domain than draw.io.
https://github.com/jgraph/drawio