What is Nostr?
AB
npub1k95…s3z7
2023-08-20 23:54:01
in reply to nevent1q…gxnx

AB on Nostr: The next major change we wanted in v2 was to also build native apps that can be used ...

The next major change we wanted in v2 was to also build native apps that can be used as an alternative to the web based PWA. I had used Electron before, but had always found the performance to be a bit lacking, so I had a look around for alternatives. I came across Tauri: https://tauri.app/ which is built with Rust. Rather than shipping a full Chromium v8 + your app like Electron does, it utilises the native Webview instead, making it lightweight and performant and can be added to any frontend framework.
The DevEx of Tauri is probably the best of any tool I have used. It just worked as it said it should. We now wrap a few functions that drive notifications and storage so that they can handle slightly the different calls needed based on whether we are in a native or browser env and we are good to go.
Tauri supports native desktop apps out of the box currently and they have native mobile apps supported in alpha at the moment. Once mobile support is out of alpha, we plan on integrating that as well. So eventually Clams will be a full cross platform app with one codebase.
Author Public Key
npub1k95p0e36xx62mwjltdlsrrjunnqx464wlf969f9u3stvrq5dah4qgds3z7