instant_record compiles Rails ActiveRecord models to WASM for instant, offline browser apps

danshipper · x · 2026-11-22

Kieran Klaassen released instantrecord, a Ruby gem that compiles ActiveRecord models to WebAssembly so they run on SQLite inside the browser tab, syncing with Postgres on the server and working offline — the Linear-style local-first architecture without leaving Ruby. Benchmarks: 10,601 conversations, first row in 820ms with one paint. iOS support is also shown. You add one line to a model and the same file runs in both places.

Original post →

More from coding & agent

coding & agent channel →