βοΈπ§ Offline toolkit for Hotwire Native, Hotwire, Turbo, PWA's in Rails
JavaScript
27
143 commits
updated Sep 16, 2026
When your Hotwire wires go cold.
Offline caching for Rails, extracted from a production app. Add a gem, mount it, drop a tag in your layout β pages start working without a network. A service worker precaches what you nominate, keeps pages as people browse, and falls back to a view Turbo will actually render.
Works the same in a plain web app, an installed PWA, or Hotwire Native.
Need help going offline? Coldwire is built by Noreaster Group. If you want a hand adding offline to your Hotwire or Hotwire Native app, talk to us.
bin/rails coldwire:install. The rest has working defaults./offline./offline: turn offline support off, force offline, sync, downloads, inspect what's cached.online: or offline: Tailwind variant.
The offline settings page (Inspect cache is the URL list), and the fallback when a page isn't cached.
# Gemfile
gem "coldwire-rails"
bin/rails coldwire:install
That mounts the engine at /offline, writes config/initializers/coldwire.rb, registers
the Stimulus controller, and adds the tag to your layout. Visit /offline to see what's
cached.
For signed-in apps that do not use current_user or Current.user, set cache_identity.
To have pages ready before anyone visits them, turn on auto_sync. Both are in the
configuration reference.
MIT. See LICENSE.
JavaScript
54.6%
Ruby
27.4%
HTML
11.0%
CSS
6.9%
βοΈπ§ Offline toolkit for Hotwire Native, Hotwire, Turbo, PWA's in Rails
JavaScript
27
143 commits
updated Sep 16, 2026
When your Hotwire wires go cold.
Offline caching for Rails, extracted from a production app. Add a gem, mount it, drop a tag in your layout β pages start working without a network. A service worker precaches what you nominate, keeps pages as people browse, and falls back to a view Turbo will actually render.
Works the same in a plain web app, an installed PWA, or Hotwire Native.
Need help going offline? Coldwire is built by Noreaster Group. If you want a hand adding offline to your Hotwire or Hotwire Native app, talk to us.
bin/rails coldwire:install. The rest has working defaults./offline./offline: turn offline support off, force offline, sync, downloads, inspect what's cached.online: or offline: Tailwind variant.
The offline settings page (Inspect cache is the URL list), and the fallback when a page isn't cached.
# Gemfile
gem "coldwire-rails"
bin/rails coldwire:install
That mounts the engine at /offline, writes config/initializers/coldwire.rb, registers
the Stimulus controller, and adds the tag to your layout. Visit /offline to see what's
cached.
For signed-in apps that do not use current_user or Current.user, set cache_identity.
To have pages ready before anyone visits them, turn on auto_sync. Both are in the
configuration reference.
MIT. See LICENSE.
JavaScript
54.6%
Ruby
27.4%
HTML
11.0%
CSS
6.9%