Electron
General Info
Electron is a framework for creating native applications with Javascript, HTML and CSS.
Preload Script
Electron's main process is a Node.js environment that has full operating system access. On top of Electron modules, you can also access Node.js built-ins, as well as any packages installed via npm. On the other hand, renderer processes run web pages and do not run Node.js by default for security reasons.
To bridge Electron's different process types together, we will need to use a special script called a preload.
Inter Process Communication
Here is the guide