This is an example repo of making a single page application in Ruby via WebAssembly.

Have a running Ruby and Node installation and then run:
bundle install
npm install
rake build
rake pack
bin/dev
rake build
will likely take a while: it has to compile Ruby itself into WebAssembly.
app
has the code for the SPA itself. lib
contains all of the supporting code.
- Safari doesn't seem to show Ruby errors.
- Some gems don't work (notably bigdecimal which ActiveSupport depends on).
- The WebAssembly binary is pretty large (40MB+)