I've been looking at Tauri for the last couple of days. Migrating seems doable but it's a big project.
Firstly all electron-specific code needs to be removed and replaced with Tauri equivalents, where available. At this point we might lose spellchecking and maybe pdf export, though the latter should be possible to implement from scratch.
Then all js code needs to be converted to run inside webview. If my understanding is correct this means replacing native modules with tauri equivalents (possibly requires writing some things from scratch). Might require webpack or something like this.
It may not be needed if there's a way to run nodejs backend, not 100% clear on that.
Finally, there are build process changes but this should be relatively simple compared to everything else.
This all sounds interesting, if anyone wants to start I may be interested in helping out but on my own I don't feel I know js well enough to untangle Joplin's code.
5 Likes