I wrote an SOQL Editor that integrate with Force.com using Node.js and use OAuth and REST API to pull data from the connected org.