Many are taking an Electron based approach to using the same sources for web and desktop.
egui is an option if you wanted to do the opposite of that. Having a native 3d accelrated app on the desktop that also run in the web browser is possible.
You can try out a lot of the features at https://egui.rs
Latest version 0.18.0 was released a few hours ago.
Changelog is available at https://github.com/emilk/egui/blob/master/CHANGELOG.md
Mastodon server for gigantos.net