Hadouken features a JavaScript API which exposes most of the functions you’d need for writing plugins.
For developers
Basic plugin skeleton