And there isn't a trend towards more Electron apps. Increasingly developers are using Tauri which is Rust based and extremely lightweight.
Electron Framework alone on macOS is 356MB.
And this is reflected in memory usage as well.
https://github.com/tauri-apps/awesome-tauri