3 ms·
An alternative to Electron I like is Vercel Pkg https://github.com/vercel/pkg https://github.com/vercel/pkg . You write a server in Node.js, compile it to an e
by galaxyLogic 4y ago
An alternative to Electron I like is Vercel Pkg
https://github.com/vercel/pkg https://github.com/vercel/pkg .
You write a server in Node.js, compile it to an exe with Vercel Pkg and users run the exe on their local machine and use it with their browser.
Instead of running an app "in the cloud" they run it on the server on their machine. But the server could easily also be moved to the cloud as well.
Using a browser to connect to an app running on your local machine has the nice feature that you can open any number of browser-views on it, looking at the app and your data and tools from multiple viewpoints. Since it is local they are the only user and don't need to login or "keep a session" and can thus interact with the app in multiple ways in parallel.
I don't need to design in a feature that allows users to "open a new window". That is handled by the browser. Open a new tab to the same or different (bookmarked) url.
Plus there is a benefit to coding both the server and the client in the same language.
- __ryan__ 4y agoThis is neat, but it's only an alternative to Electron in the sense that it's an alternative to building a desktop app.
- galaxyLogic 4y agoIt could be a server running on the local machine serving only requests that come from 127.0.0.1. Then from a user's point of view it is not much different from a "desktop application". You start it up locally and connect to it with a browser running locally.