chromecast-audio-stream
chromecast-audio-stream copied to clipboard
Why 239 Mb, 1347 folders, 9000 files, 6000 scripts (.js)?
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)?
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.
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.
I started doing a refactor in React Native and didn't want to write a webserver in C#.
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.
You can also use nodejs for the server