chromecast-audio-stream icon indicating copy to clipboard operation
chromecast-audio-stream copied to clipboard

Why 239 Mb, 1347 folders, 9000 files, 6000 scripts (.js)?

Open chromegithub opened this issue 8 years ago • 5 comments

I was wondering how this program functions. Why is it unzipped 239Mb and does the folder contain 1347 subfolders and 9023 files of which 6000 are scripts (.js)?

chromegithub avatar Feb 25 '17 16:02 chromegithub

I tried to investigate but I have limited javascript program experience.

It seems that there are many dependencies included. Electron seems to be a VM to let javascript be a desktop programming language. Then there is a portion of chrome that seems to do the talking to the Chromecast Audios. And then I suspect there's a smattering of dependency-chaining so that all of the rest are included to check off dependency needs but are not utilized - quick and dirty way I'm guessing. How this all works together I cannot quite follow, though.

genekellyjr avatar Mar 04 '17 19:03 genekellyjr

Electron is basically a stripped down single Chromium tab. So it has to include basically all of the stuff to run a full Chromium browser instance. So in the end, it's a huge overkill for an app that a single context menu as it GUI. It would probably be better off using something like React Native rather than Electron.

TeutonJon78 avatar Apr 12 '17 02:04 TeutonJon78

I started doing a refactor in React Native and didn't want to write a webserver in C#.

matbee-eth avatar Apr 13 '17 22:04 matbee-eth

Not sure how complicated of a server it needs, but I googled quickly and found a few. I thought this was all done with JS libraries and such -- why would it need to be a C# server? There seems to also be a react native webserver.

TeutonJon78 avatar Apr 14 '17 00:04 TeutonJon78

You can also use nodejs for the server

githubuser441 avatar May 06 '17 16:05 githubuser441