I don't really know what's possible with this, but I thought it would be of interest to people here.
https://www.npmjs.com/package/homebridge-api
Homebridge API is based on GraphQL spec, currently it supports:
Getting accessories & services & characteristics
Querying characteristic's value
Subscribing to characteristic's value change in realtime
(Incoming) Setting characteristic's value