The specification of the mangrove.js API is available in the mangrove.js API reference documentation. The code is available at GitHub.