TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Can small teams maintain Electron apps?

9 点作者 diamondap将近 3 年前
We&#x27;re a small dev team maintaining a niche Electron app that has about three dozen direct dependencies and hundreds of indirect dependencies. Dependabot warns us weekly about vulnerable Node modules, while Electron has frequent major releases, sometimes with breaking changes that have a major impact.<p>We have to update dependencies in this codebase much more frequently than in our Ruby and Go codebases. The result is a huge time suck, especially when we run into breaking changes and poor documentation (which is often).<p>Do other small teams feel this pain? Do large teams have staff dedicated to keeping Node&#x2F;Electron dependencies up to date?

6 条评论

yrgulation将近 3 年前
Yes. I do it for a client. The app is used on a daily basis by a small number of users, but for a somewhat high volume of data and generates them quite a bit of revenue. To me it sounds like your issues are related to libraries. I aimed for the most stable and where that wasn&#x27;t an option i wrote alternatives - i actually understand js and i am comfortable replacing most libs with my own code. Obviously it depends on context but generally speaking electron devs, as js devs, have the habit of bringing in thousands of dependencies for every little thing and then wonder why things are slow, un maintainable and full of security issues. If all you need from a lib is a function then implement it yourself. Also dont cargo cult chrome updates - some may be totally irrelevant to your specific use case.
评论 #32474285 未加载
lightwin将近 3 年前
As other comments also mentioned, maintaining an Electron app is not much different than any other JavaScript application.<p>My team used to work on large electron &amp; non-electron apps. We used to have a tech-debt ticket every couple of sprints to review and update various packages in order to take care of any potential vulnerabilities.<p>Most of time updating packages is as simple as running &quot;npm audit fix&quot; command. But sometime we had to manually update major versions of some of the packages and while doing so, we had to take care of any potential breaking changes.<p>Having a good set of automated regression tests really helps with the process.
评论 #32474313 未加载
评论 #32473843 未加载
999900000999将近 3 年前
No one makes you do that, you can build it from scratch natively for each platform.<p>It&#x27;s been well known for a long time that anything with JavaScript will be quicker to create right now, but there are significant downsides later on.
评论 #32472184 未加载
atwood22将近 3 年前
Do you have an examples of things you&#x27;ve felt compelled to update? Electron does have a lot of reported vulnerabilities, but are you sure those vulnerabilities actually impact your product? Usually properly sandboxing and isolating main &#x2F; render contexts goes a long way in preventing those vulnerabilities from being exploited. One approach may be to attempt to triage the vulnerable dependencies rather than update them immediately?
评论 #32472942 未加载
tabtab将近 3 年前
What&#x27;s really needed is an open state-ful GUI markup standard so we don&#x27;t have to reinvent GUI OS&#x27;s using JavaScript + DOM. It&#x27;s bad industry-wide tool factoring. Focus on making the GUI browser (pluggin?) do just ONE thing and do it well: GUI&#x27;s. Don&#x27;t try to be a full virtual OS like Java applets and Flash tried; they bit off more than they could chew.
mikece将近 3 年前
It would be nice if Microsoft would enable a type of language server scheme, like they use for VS Code, to allow Electron apps to use <i>any</i> backside language rather than depending on Node. Would be handy to have a cross-platform app where the UI is HTML&#x2F;CSS&#x2F;JS but the core logic was in Go or Ruby or C# or (insert language here).
评论 #32472581 未加载
评论 #32486402 未加载
评论 #32472851 未加载
评论 #32474228 未加载