This project does not implement an API to control sonos devices. Rather it implements the SMAPI to provide custom music services to Sonos devices.
This W.I.P.
SMAPI implementation in node.js. This should help in creating your own music service for Sonos.
JavaScript