7 ms·
What are the remaining APIs that people need in Electron that are not available in the web browser? And what's the timeline to getting those in the browser to d
by lern_too_spel 8y ago
What are the remaining APIs that people need in Electron that are not available in the web browser? And what's the timeline to getting those in the browser to deprecate Electron?
In cases like Slack, I prefer using the webapp because I trust the Chrome team to update quickly if there is a vulnerability in the browser. I do not trust Slack to update its Electron app quickly if there is a vulnerability in Chrome.
- lossolo 8y ago> What are the remaining APIs that people need in Electron that are not available in the web browser? https://nodejs.org/api/index.html https://nodejs.org/api/index.html I don't think APIs like full access to filesystem will be available in browser because any malware could do anything it would like with your OS/files. So in a lot of cases you can't really replace Electron with just normal webapp in browser.
- eberkund 8y agoNo, but you can use an extension/native helper and talk to it from the web app using network calls.
- d4l3k 8y agoMight as well just use electron at that point since it's easier on the developer side.
- solarkraft 8y agoBut even worse for the user than a web browser already is. Can we, instead of combining the worst of native apps, web apps and containerizaton, maybe work towards removing SOME of the terrible aspects for users? If developer comfort is the highest priority you might as well skip making the interface look nice/useable. Electron really is an extension of Chrome and it'd be damn nice if it could be shipped as one.
- untog 8y agoUh, aren't users the most important factor here, not developers?
- always_good 8y agoSure, such that in my experience users prefer dedicated apps most of the time. For example, Postman (browser-based HTTP client) has some of the worst UX because it's a Chrome app and not stand-alone. Can't event alt-tab to it. I have to alt-tab to Chrome and then find the Postman window.
- TeMPOraL 8y agoUsers also prefer to be able to use more than one program at a time on their computer, so please, if you have to use Electron, keep an eye on performance characteristics of your application.
- seanjs 8y agoI'm not a heavy user of Postman so I can't say if the UX was improved by it, but Postman actually moved to Electron last year: http://blog.getpostman.com/2017/03/14/going-native/ http://blog.getpostman.com/2017/03/14/going-native/
- jhasse 8y agoOnly to a certain degree.
- lossolo 8y agoAs market shows it's not about what you can do but what is the easiest and fastest way to make a product. I've created Electron application also, not because it's the best solution on the market but because it was fast and easy way to get my app to the users. If I had time and resources I would probably just use Qt or created native app for each platform.
- xpaulbettsx 8y agoCan you name even a single app that _actually does this_
- Asooka 8y agoOr maybe some form of web archive format signed with a certificate? "Do you want to install Slack? It will have access to X, Y, Z"... We already download programs off the internet and let them run with local privileges all the time, it should be possible to safely and securely extend the capability to programs delivered as html+css+js. Also I don't see why Electron+node isn't installed system-wide like Java or .NET. Yes, I know it's because node is a server technology whose devs aren't interested in being Java, while the people shipping electron apps are just interested in the lowest friction to deploying native apps to customers, but it still seems like the kind of thing someone would have done already if only just to show off.
- greggman 8y agoMicrosoft had HTML apps as a standard feature of windows in the 90s iirc https://en.m.wikipedia.org/wiki/HTML_Application https://en.m.wikipedia.org/wiki/HTML_Application
- pjmlp 8y agoAnd they are first class citizen on UWP (aka WinRT), long before Electron was a thing. https://msdn.microsoft.com/en-us/magazine/jj891058.aspx https://msdn.microsoft.com/en-us/magazine/jj891058.aspx
- dvlsg 8y agoTo be fair, .NET has the capability to release applications with all the pieces required in a single exe. At least core does, anyways. That's a pretty big selling point for golang, as well, in my mind. Electron is the same thing in my mind, just on a much larger scale. Maybe it's too large to be sustainable in the long term, but there are definite benefits to having a single, self contained package.
- voltagex_ 8y agoThey're still not there with the Golang-style single exe for .NET Core. The default behaviour of the dotnet build tool seems to be to build a .dll file (!)
- hanniabu 8y agoCan't there be separate contained instances?
- vvanders 8y agoOne of the things Electron gives you with Node on the backend is the ability to break out into C FFI if you find you need a specific API on your target platform. I've done this for things like serial device control and the like. You still get the productivity of web apis on the frontend and flexibility on the backend with the caveat that you're going to be building a platform specific version of your native code for each release.
- adamcw 8y agoWhile discussing the Node C binding architecture, I think it's also worth noting The Neon Project* which is extending that lower level binding system into the Rust ecosystem. I'm not personally involved in the project, but I think it has a lot of potential. * https://www.neon-bindings.com/ https://www.neon-bindings.com/
- scrollaway 8y agoI would love to have the browser be a local "application server" on the desktop. Currently, people hate electron because shipping and running duplicate browsers is heavy-handed, insecure, and silly. There's definitely a different feeling between having a running Discord/Slack tab vs. using a native app for it, if you're using it a lot. A native notification bar icon, shortcuts in the menus/app launchers, the app not exiting if i need to restart the browser, the app not being affected by extensions I install (adblockers, etc). The app being separate from the browser is good. But it should still be the same engine running this. The same master process as well, possibly? Either way, Electron has been a huge boon for apps being available natively on Linux and that's just awesome. I don't want to lose that.
- josteink 8y ago> I would love to have the browser be a local "application server" on the desktop Back in the days we called that a WebView. And when MS made one with MSIE and used that in Windows, we sent the EU after them. How times change, eh?
- eddieroger 8y agoExcept Electron won't do it using their market share to take out Netscape.
- josteink 8y agoNo. That’s Chrome’s doing to Firefox. Big difference, sure.
- reitanqild 8y ago> And when MS made one with MSIE and used that in Windows, we sent the EU after them. > How times change, eh? That was a very short story. Mine is a bit longer and includes MS intentionally crippling HTML if their servers sniffed Opera headers. Edit: Google employees here, -please remind your bosses and colleagues what happened last someone abused their position to dominate the browser market.
- plurgid 8y ago> What are the remaining APIs that people need in Electron that are not available in the web browser? And what's the timeline to getting those in the browser to deprecate Electron? I get what you're saying but to me, even if I could do literally everything that node does inside the browser, that STILL would not deprecate electron for me. It's not lack of functionality in the browser that's a problem for me. It's mutability of the browser. With electron, I get to use ONE version of javascript, ONE implementation of the DOM, ONE implementation of CSS. Period. I do not give a single hoot about that ancient corporate version of IE you have to use at work. About how this looks in safari, versus edge versus, opera, versus whatever. It simply doesn't matter anymore. no more shims, and I can dump about half of the frameworks and stuff from my code because of it. If I get an app going that everyone likes and I actually want it on the web, THEN I can go and add all the cruft I'll need to make it work out there in the wild. this is a very good thing (at least for me).
- murukesh_s 8y agoYou got a great point. And don't forget that Electron is not a web shell, it can replace native apps. Look at VSCode! It's not just about Electron vs Browser but there are certain cases where you don't want to go into a cloud.
- andrewstuart 8y agoJust refuse to load for browsers other than Chrome. Some users wont like it but Electron is a price too high if single browser target is your goal.
- josefx 8y agoI think you meant to say "This website is optimized for IE 5.0 and 640x480 please upgrade your browser". Chrome still lacks something essential that IE had back in the day: API and bug for bug stability. Moving targets just aren't as atractive.
- mcbits 8y agoAnd now with Electron we have, "This application is optimized for libfreetype2.8-0. Please downgrade your system package until Electron catches up."
- coldtea 8y ago>What are the remaining APIs that people need in Electron that are not available in the web browser? And what's the timeline to getting those in the browser to deprecate Electron? The main attraction is the ability to NOT run in the browser, but be a standalone app. It's not just about the browser not providing some native APIs.
- crooked-v 8y ago> What are the remaining APIs that people need in Electron that are not available in the web browser? Broad-use network access, including local subnets. > And what's the timeline to getting those in the browser Do you want to give RANDOM_EVIL_WEBSITE access to your LAN?
- kyriakos 8y agoOne thing electron offers that is not mentioned is a predictable platform for your application. Users can use different browsers and even today this is still a problem. But distributing an electron app you know at any moment what apis you have available and how they behave.
- saurik 8y agoAs far as I have been able to tell the Chrome team considers native sockets something they don't ever need to even pretend to provide in the browser anymore (after removing Chrome Apps support) in no small part because of the existence of Electron, so the powers that be seem to be going in the opposite direction :(.