Building progressive web apps using Rust
Blog post from LogRocket
Progressive Web Apps (PWAs) offer a hybrid solution that combines the benefits of web and native applications by enabling offline functionality and local operation. The article explores the creation of a PWA with Rust for business logic, leveraging WebAssembly (Wasm) for performance and safety in key areas such as storage, networking, and security. It demonstrates the integration of Rust with JavaScript/TypeScript frontends, although Rust can also be used for the frontend using frameworks like Leptos. The tutorial uses SurrealDB for a storage layer and implements features like encryption with ECIES, networking through the Nostr protocol, and a simple graphical user interface. This approach underscores the potential of PWAs to function as versatile, installable applications independent of app stores, while also highlighting the evolving capabilities of the Rust ecosystem and Wasm for creating robust, near-native performance applications.