title: How can I use Google Chrome as a node.js server?
body: <p>I copy/pasted a node js hello world example into an html file </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  var http = require("http");
  
  http.createServer(function (request, response) {
  
     // Send the HTTP header 
     // HTTP Status: 200 : OK
     // Content Type: text/plain
     response.writeHead(200, {'Content-Type': 'text/plain'});
  
     // Send the response body as "Hello World"
     response.end('Hello World\n');
  }).listen(8081);
  
  // Console will print the message
  console.log('Server running at http://127.0.0.1:8081/');
  
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm using a Chrome app called OK 200! Server to make this page available at <a href="http://127.0.0.1:8887/" rel="nofollow noreferrer">http://127.0.0.1:8887/</a> 
  The ideal solution would work on a Google Chromebook. </p>
  
  <p>When I run this it gives error: </p>
  
  <blockquote>
    <p>Uncaught ReferenceError: require is not defined(…)</p>
  </blockquote>
  
  <p>So that implies several features unique to node won't be embedded in Chrome. Is there an extension, chrome app, or native client app that would make those features available and still leverage the v8 engine already embedded in Chrome? </p>