Don’t really know how to implement this, but something like the Hooks theory Editor would be awesome
http://www.hooktheory.com/editor