desktop/mobile app

options

electron

  • 无痛切换:对于 web dev 来说
  • front endchromium 提供的 webview
  • back end:NodeJS
  • NPM package
  • size explosion:随随便便 package 都到了giga bytes
  • initclone template project

tauri

  • 可比原生应用的 bundle size
  • front endOS 提供的 webview
  • back endrust
  • rust plugins
  • init:
npx create tauri-app

Neutralino.js

与 tauri 类似,但后端不强制使用 rust

Electrobun

very early stages. only on arm mac.

Cons

(未证实)凡是 chromium based,从休眠中启动的 server 端都会失联。
The only issue I had was when the OS sleeps. The front-end is disconnected from Neutralino's server, forcing you to handle this by reloading the app when the computer wakes up. It apparently happened on Electron and Tauri too. Some blamed it on Chromium.
我觉得以上应该不是普遍现象,比如我在使用 vscode 就没遇到过。

Date:
Words:
254
Time to read:
1 min