When I was at CCC camp I made node.js bindings for the hackrf, so it's pretty easy to work with: https://github.com/mappum/node-hackrf, https://github.com/mappum/hackrf-stream