GoogleChromeLabs / carlo

Web rendering surface for Node applications
Apache License 2.0
9.32k stars 309 forks source link

Use Carlos as a communication channel b/w Chrome and Electron #158

Open thelazyrk opened 5 years ago

thelazyrk commented 5 years ago

I'm looking for a clean way to communicate between a page that is opened in chrome with an electron app that is running locally. I understand that I could do any of the two approached

  1. Open the webpages pretty much in Chromium through Electron and have preload scripts pass IpcRenderer and I really like the approach but the differences and user preferences to use Chrome and support from any off the shelf products like CRMs is non-existent in chromium.
  2. There can be a chrome extension that can communicate to the electron process using native messaging, this hasn't been very easy and the process seems to be extremely difficult and almost impossible to maintain.

So I think if we're able to use Carlos as a bridge for communication between Chrome and Electron would really benefit a lot of people and I'm also hoping that would really help making applications PWA . If the communication is as frictionless as ipcRenderer then that would create a whole new host of applications that can benefit from offline usage and provide great user experience.