i felt compelled to not be an armchair patcher, and create this extremely sloppy and ugly proof of concept.
it is like a useless alternative for matrixctl with patchcords, using jsui. click an input and output node to make a patch (either order.) do this for a previously patched pair of nodes to delete the patch.
making things pretty is harder. that’s where i would turn to existing JS stuff instead of making my own wiggly beziers. jsui’s Sketch object uses the same opengl interface as web graphics kits, so it wouldn’t be too bad.
making things smart is also harder. nodes and edges should be objects, store their own coordinates, compute own collisions, &c. again it would probably be a good idea to re-use existing work on graph drawing libraries.
anyways i dunno, maybe useful as a starting point for someone: