finds.dev← search

// the find

thoughtbot/hotwire-example-template

★ 1,079 · Ruby · updated Jan 2025

A collection of branches that transmit HTML over the wire.

A multi-branch Rails repo from thoughtbot where each branch is a self-contained Hotwire example — typeahead search, live preview, dynamic forms, tooltip fetch, etc. The whole thing is a teaching tool, not a library you install. Aimed at Rails developers learning Turbo and Stimulus patterns.

The git-diff-as-narrative structure is clever: you read the feature implementation commit by commit, which is more honest about the actual steps than a finished code dump. Maintained by thoughtbot, so the patterns reflect production-grade Rails conventions rather than toy demos. Branch variety covers the real awkward cases (dynamic forms, lazy-loaded content) where Hotwire's docs go thin. Each branch has its own README explaining the why, not just the what.

The rebased-history-by-design warning is a genuine footgun — if you fork this and try to track upstream you will have a bad time, and they say so upfront. The main branch itself is a bare Rails scaffold with nothing in it, which makes the repo confusing to browse on GitHub without already knowing the branch-based structure. Last push was January 2025, so branches covering Turbo 8 / Strada are either missing or may lag the latest API changes. No tests on any of the example branches, which means you're copying patterns without knowing if they hold up under edge cases.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →