Literally nobody asked for this, but here is sample code for a web app with server-side html rendering in Rust with Yew, client-side dom rendering in TypeScript with Preact, and fetch to let the two communicate.

The included minimal demo is a net server that generates random numbers based on a novel method where the generator has more bits of entropy depending on how much traffic the server is currently receiving

codeberg.org/mcc/rocket-hello

"Internet Random Number Server"
(Limit: 16)

4
0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mcc/statuses/115130351605327575 on your instance and quote it. (Note that quoting is not supported in Mastodon.)