Call Hue from your own code with one of these interfaces.
Run queries, manage files, import data and administer connectors over HTTP. Read the REST API.
Run code in the Hue shell on the server, for example to manage users and documents. Read the Python API.
The JavaScript API from the NPM package is not documented yet.