mxGraph-js is a fully client side JavaScript diagramming library. It is the underlying technology that powers the drawing functionality that you see in https://www.draw.io.
npm install cpaas-mxgraph-js