title: Running untrusted javascript code on server in sandbox
body: <p>I can't seem to figure out how to set up a node sandbox, which can run untrusted code safely, and allows a user to <strong><em>interact with the program through api calls</em></strong> (sys in and out). I'm trying to set up a console in the browser for users to run their own code from the server.</p>
  
  <p>Are there any node packages that support this, or do I need to write my own node VM? Thanks.</p>
  
  <p>Edit: I want a user to be able to write <code>readline()</code> and have the program wait at the breakpoint for data to be transferred in. similarly <code>console.log()</code>'s output should redirect to the response of the input api call.</p>