title: Node.js, renderer process and main process for Electron
body: <p>I'm trying to see if I understand how Electron's implementation of Node.js is done and how it interacts with the app. From my understanding, the startup web page has a javascript file that runs as a "renderer" process. Code in this script can also access any of the Node.js APIs. To create new browser windows, code in renderer script uses new BrowserWindow to create new windows and each window in turn has its own renderer script.</p>
  
  <p>Code in the renderer scripts run under Node.js and as such any code written in these scripts cannot communicate with script code in the browser's web page.</p>
  
  <p>Is all of this true or am I wrong on something?</p>