NinjaTerm icon indicating copy to clipboard operation
NinjaTerm copied to clipboard

Consider switching back from PWA to using Tauri/Electron.

Open gbmhunter opened this issue 2 years ago • 1 comments

Advantages:

  • Can install global shortcut keys to jump to/open app.
  • More info on serial ports (incl. the COM/ttyUSB names)
  • Easier to read/write from disk
  • Shortcut keys like Alt-F can be caught, although I would have to pass them through from the main process.
  • User can decide to keep older version (or install older version)

Disadvantages:

  • I'd either have to set nodeIntegration to false (not recommended for security reasons) or create a whole API for communicating with the serial port and file system from the main process to the render processes (using IPC and the preload script).
  • Code base would be more complex, and slightly harder to perform e2e tests (although you can still use Playwright with Electron).
  • Would have to migrate existing code, expected to take approx. 16 hours.

gbmhunter avatar Nov 29 '23 03:11 gbmhunter

UPDATE: Might be better to use Tuari, which would use Rust for the backend. Utilizes the OSes webview making for lighter apps.

gbmhunter avatar May 12 '24 00:05 gbmhunter