This project provides simple JavaScript and Node.js open source examples for controlling physical devices connected to the most popular single board computer Raspberry Pi. Have a look at the articles in Instructables.com and the YouTube videos for details.