A technical walkthrough of running a full Ruby on Rails application entirely inside the browser using WebAssembly. The guide covers compiling Ruby 3.2+ to Wasm with the wasmify-rails gem, replacing Puma with a Service Worker, using SQLite compiled to Wasm for persistence, handling file storage via the Origin Private File System
Table of contents
Start with a Standard Rails AppCompile Ruby to WebAssemblyService Workers as Your Web ServerIn-Browser DatabasesFile Storage with OPFSLaunch as a PWAReal-World Use CasesPerformance ConsiderationsAdvanced PatternsConclusionShare this:RelatedSort: