Hi,

is there a decent documentation of the JavaScript exposed in the Wikidata interface, so one can re-use it in user scripts?

To give a specific example: I want to add a reference to a statement. I can do that in JavaScript via the API, but I can't update the changed statement easily. I could try to re-implement the existing routines, but that would be duplication of effort, and likely break with the next interface update.