Here are a couple of node.js modules I wrote a while back for mysensors you all may find useful:
https://www.npmjs.com/package/sensors <- Parse and Stringify the protocol
https://www.npmjs.com/package/cowboymouth <- streams support for the protocol