Get the latest tech news

Run Ruby on Rails in the browser using WebAssembly


Ruby on Rails' famous blog in 15 minutes now runs right in your browser thanks to WebAssembly.

It's a full-stack, server-controlled application: you have a database ( SQLite) to keep your data, a web server to handle HTTP requests ( Puma), and a Ruby program to keep your business logic, provide UI, and process user interactions. The previous command generates a minimal PWA application built with Vite that can be used locally to test the compiled Rails Wasm module or be deployed statically to distribute the app. Again, StackBlitz made this a thing for JavaScript projects: you create a minimal reproduction script, point at the link in a GitHub Issue, and spare maintainers the time on reproducing your scenario.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of browser

browser

Photo of WebAssembly

WebAssembly

Photo of Ruby on Rails

Ruby on Rails

Related news:

News photo

LibreOffice Marks 40th Year With Browser-Based Overhaul

News photo

Zeroperl: Sandboxing Perl with WebAssembly

News photo

OpenDAW – a new holistic exploration of music creation inside the browser