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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

624 点作者 LinguaBrowse大约 4 年前

24 条评论

karteum大约 4 年前
This looks nice !<p>However... &quot;Low CPU and memory footprint (...) memory usage is under 20 MB for a Hello World program&quot; : I am the only one who still thinks this is huge ? (-&gt; <a href="https:&#x2F;&#x2F;tonsky.me&#x2F;blog&#x2F;disenchantment" rel="nofollow">https:&#x2F;&#x2F;tonsky.me&#x2F;blog&#x2F;disenchantment</a> )
评论 #26362086 未加载
评论 #26362110 未加载
评论 #26362746 未加载
评论 #26362673 未加载
评论 #26365740 未加载
评论 #26362733 未加载
评论 #26364755 未加载
评论 #26374555 未加载
评论 #26362069 未加载
评论 #26363285 未加载
评论 #26362155 未加载
评论 #26367270 未加载
评论 #26362207 未加载
评论 #26366838 未加载
评论 #26363369 未加载
danenania大约 4 年前
Looks really good! At first glance, this seems like probably the best Electron alternative I&#x27;ve seen posted on HN.<p>Apart from the consistent GUI layer, I think an underrated reason that many teams stick with Electron is the mature tooling for cross-platform builds and upgrades. It&#x27;s pretty painful to DIY.<p>It looks like NodeGUI doesn&#x27;t currently support cross-compilation--is that something that&#x27;s on the roadmap? How about upgrade&#x2F;auto-upgrade tooling? Code signing?
评论 #26362641 未加载
评论 #26365049 未加载
jart大约 4 年前
I&#x27;m seeing a lot of Qt vs. Chromium in this thread. Here&#x27;s your mindblown.gif of the day: Chromium is based off Webkit which is based off KDE which is based off Qt. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;KHTML" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;KHTML</a>
评论 #26363554 未加载
评论 #26362914 未加载
ssss11大约 4 年前
Just thought it was worth mentioning that nodegui is a node &amp; qt runtime. There are framework components for not just Svelte, but React and Vue as well... just search on github if you prefer a different framework.
LinguaBrowse大约 4 年前
Maintainer here – Happy to answer any questions!
评论 #26365205 未加载
评论 #26364591 未加载
评论 #26361959 未加载
评论 #26366191 未加载
评论 #26361846 未加载
评论 #26373531 未加载
评论 #26373524 未加载
评论 #26362570 未加载
评论 #26367864 未加载
评论 #26361823 未加载
评论 #26361785 未加载
Gys大约 4 年前
&gt; core set of platform agnostic native widgets<p>This is confusing for me. I think such a framework is either &#x27;platform agnostic&#x27; OR &#x27;native&#x27;. Maybe the API is platform agnostic and the rendering is done natively?
评论 #26361868 未加载
评论 #26361894 未加载
porphyra大约 4 年前
Looks very slick, but I am extremely stressed out by the inconsistent font sizes and button spacing across platforms in the example calculator app.
评论 #26365512 未加载
sonthonax大约 4 年前
I&#x27;m always a bit surprised there was the space for Electron to exist in the first place. Since most operating systems have widget toolkits that have browsers effectively embedded into them.<p>What I would have liked to have seen instead of Electron would have been a shim API that abstracted OSX&#x2F;iOS&#x2F;WinForms&#x2F;QT webviews, and for those webviews to have a working API that would allow DOM manipulation, and allowed native sub-views to be inserted as block elements.
评论 #26366720 未加载
评论 #26366694 未加载
评论 #26366945 未加载
c-smile大约 4 年前
Same demo in VanilaJS and Sciter.JS : <a href="https:&#x2F;&#x2F;github.com&#x2F;c-smile&#x2F;sciter-js-sdk" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;c-smile&#x2F;sciter-js-sdk</a> (see screenshots there).<p>Binary is ~5MB, and that is HTML&#x2F;CSS + QuickJS + NodeJS runtime.<p>Versus 50MB+ of NodeGUI that is Node.JS + QT.<p>And SvelteJS works in Sciter.JS out of the box too.
评论 #26365775 未加载
endisneigh大约 4 年前
Is there a way to have some small application that talks to the machine via a set of HTTP apis?<p>I envision something where you can just use your regular web app, have the user install the &quot;Desktop Connector&quot; which would be listening at say, port 8000 - then your web app can talk to the desktop via those APIs, instead of installing an Electron or related.<p>I must be missing&#x2F;forgetting something crucial since that seems like the most straightforward solution imaginable.
评论 #26363123 未加载
评论 #26362602 未加载
评论 #26362189 未加载
评论 #26362595 未加载
评论 #26362174 未加载
评论 #26367250 未加载
评论 #26364217 未加载
jackconsidine大约 4 年前
Very cool, I&#x27;ve been following React-NodeGUI for about a year now and I love Svelte.<p>I especially love the idea of Svelte (compiling to imperative JavaScript code), but since it&#x27;s technically a &quot;superset&quot; of JavaScript, IDE support has been an issue for me. Also I&#x27;ve cut my teeth trying to find a solid UI component library. These two things have restricted my use of the framework to smaller projects.<p>Anyone have any suggestions?
评论 #26362427 未加载
评论 #26362916 未加载
评论 #26362190 未加载
评论 #26390195 未加载
gigel82大约 4 年前
I&#x27;ve been following react-nodegui since it was announced and I really like it. In terms of memory usage it&#x27;s the cat&#x27;s meow; now there&#x27;s a question of adoption and component &#x2F; UI libraries for the ecosystem.<p>Perhaps a way to bootstrap that would be to align closer to react-native; at that point, we could use (js) components and libraries from react-native land.<p>The QT licensing question is also somewhat iffy; you need to put front and center what that implies for users of your library (do they need to open source their use of react-nodegui by extension of QT&#x27;s licensing requirements for example).
评论 #26363739 未加载
davej大约 4 年前
It would be nice to have the ability to weave in WebViews with the native UI. I see this lib but it&#x27;s still marked as WIP: <a href="https:&#x2F;&#x2F;github.com&#x2F;nodegui&#x2F;nodegui-plugin-webview" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nodegui&#x2F;nodegui-plugin-webview</a>
crazypython大约 4 年前
Styling with CSS is interesting.
butz大约 4 年前
Would it be possible to use Deno for JS runtime? That should add some sandboxing limitations for apps.
评论 #26362645 未加载
singularity2001大约 4 年前
Is there any electron like framework which uses the native webview libraries (webkit etc) instead of shipping their whole browser for each application?
评论 #26366372 未加载
评论 #26366383 未加载
ognarb大约 4 年前
Something similar: <a href="https:&#x2F;&#x2F;www.kdab.com&#x2F;declarative-widgets&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.kdab.com&#x2F;declarative-widgets&#x2F;</a>
radiKal07大约 4 年前
I think Flutter Desktop is also a good alternative to Electron
majkinetor大约 4 年前
Will wait for MAUI.
baybal2大约 4 年前
How is it &quot;light&quot; weight?<p>&gt; Low CPU and memory footprint. Current CPU stays at 0% on idle and memory usage is under 20mb for a hello world program.<p>20MB!
评论 #26366681 未加载
chovybizzass大约 4 年前
how about deno?
f430大约 4 年前
How do you deal with zero day vulnerabilities? To me the biggest concern using browser-as-a-desktop solution is that there will be quite a lag between when Chrome patches zero days vs when it gets released.<p>ex) nw.js, electron.
评论 #26364302 未加载
评论 #26363345 未加载
rado大约 4 年前
Calculator demo doesn&#x27;t run, makes some cmake errors.
评论 #26363002 未加载
tpmx大约 4 年前
So is it Chromium-based or not? &quot;which makes it CPU- and memory-efficient when compared to other Chromium-based solutions like Electron&quot;
评论 #26362053 未加载
评论 #26362076 未加载
评论 #26362068 未加载
评论 #26362055 未加载