I was always a little annoyed that there are two main areas of javascript projects - Node and “browser” - and while most JS browsers can be easily launched inside Node using several libraries for the DOM, if necessary, porting Node material to the browser is usually belated thought.
All of this looks like most of the wasted energy from the developer communities, which can be mitigated by all JS developers who are just designed for the “least common denominator” (browser) and use different paddings to use features available only in Node or other JS environments , besides the usual old browser.
This would not only cut out the steepness of the ecosystem and make development in the browser more realistic, but also make it trivial to give the browser superpowers ... Look at the browserver example, which installs an HTTP server inside the browser, but since the browser cannot accept HTTP requests It uses web ports to talk to the proxy Node server, which can.
So, I want to ask, what are the real technical limitations of the javascript web browser environment versus Node? I thought Node was just a "javascript environment, plus an http server and local file system, minus the DOM and chrome." Are there any technical reasons why developers cannot move on to the approach described above while developing the JS browser environment (does this have an official name?) And uses padding for Node?
source share