@obrhoff yes! Very possible!
Super high level overview: write a Rust library, annotate your exports with something like tsify and build with wasm-pack. See https://github.com/stadiamaps/ferrostar for some inspiration. I will write up a blog on this sometime soonish.