htmx VS hotwire-rails

Compare htmx vs hotwire-rails and see what are their differences.

Our great sponsors
  • Scout APM - A developer's best friend. Try free for 14-days
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • SaaSHub - Software Alternatives and Reviews
htmx hotwire-rails
120 80
4,668 903
6.7% 8.6%
9.4 4.3
3 days ago 22 days ago
JavaScript Ruby
BSD 2-clause "Simplified" License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

htmx

Posts with mentions or reviews of htmx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-16.
  • The JavaScript ecosystem is a hot mess and so is software development in general
    news.ycombinator.com | 2021-10-16
    I work on a dependency-free, build-less library called htmx:

    https://htmx.org

    It's more an extension of HTML than a JS library. It might be a good way to gently introduce more dynamic behavior without blowing out the complexity of your site.

  • Should I ditch using Django
    reddit.com/r/startups | 2021-10-16
    As an additional advice, I would check the Django subreddit and ask what are they doing for their front-end needs (e.g. check this one) -> you don't have to use JS for front-end (e.g. check htmx, unicorn, etc).
  • The Decline of Django
    news.ycombinator.com | 2021-10-15
    I think the case for server-side HTML rendering has never been stronger, and of all Django projects I work on, the ones I enjoy most are those that never got on the SPA bandwagon. From both a developer and user point of view I find them much faster and less painful. There are many cases where you really, really don't need the massive amount of extra complexity involved in designing APIs, adding JS frameworks etc.

    When you need a bit of extra UI goodness, [htmx](https://htmx.org/) is a fantastic solution, and you can still use SPA-type approaches for things that need them.

    You can also benefit from massively faster (and more reliable) functional testing when you are mostly standard HTML - see [django-functest](https://github.com/django-functest/django-functest/) for an example of this.

  • Has anyone written a small framework to support HTMX?
    reddit.com/r/golang | 2021-10-14
    See: https://htmx.org/
  • How Laravel Livewire works (a deep dive)
    news.ycombinator.com | 2021-10-12
    I recently started using htmx (https://htmx.org/) in combination with Django and have become a firm believer of sending HTML 'over the wire' instead of JSON structures that then get used client side.
  • I built a modern website in 2021
    news.ycombinator.com | 2021-10-10
    Curious - why aren’t simpler frameworks like htmx (https://htmx.org/) more common or
  • Ask HN: Why aren’t frameworks like htmx more popular?
    news.ycombinator.com | 2021-10-10
    shifting to htmx [1] or related “simpler” libraries?

    [1] https://htmx.org/

  • The Shocking Immaturity of JavaScript
    news.ycombinator.com | 2021-10-10
    Complexity and instability in the JS ecosystem is a hot button for me, so it's hard not to be drawn into vehement agreement.

    I've been doing a little work recently with htmx[0] and it's a breath of fresh air. But then, I'm at the point in my career where "cool new tech" is much less interesting for its own sake than it used to be when I was younger. I'm drawn for more to elegant, understandable, productive simplicity these days.

    I think that hints at the reason we have these endless debates - not just about JS but about $(your-favourite-tech). Software development is a socio-technical endeavour. We put all the focus on the technical part, and by comparison, rarely consider the social aspect.

    DHH is one of the few I've heard actually refer to this, on the corecursive podcast [1]. In discussing static typing vs dynamic, his point is the latter suits his brain. But that he understands and accepts static typing suits others, and that's fine.

    So I get that, for some, the JS ecosystem is dynamic and interesting; stimulating; exhilarating even. For others, it's an unstable quicksand that gets in the way of doing something useful.

    [0]: https://htmx.org/

    [1]: https://corecursive.com/045-david-heinemeier-hansson-softwar...

  • Action without refreshing the page?
    reddit.com/r/flask | 2021-10-04
  • Do you recommend learning Angular or React for the front end?
    reddit.com/r/java | 2021-10-02
    I have personally found a combination of htmx and Alpine.js to be very effective for my projects. Here's a demo project for using Spring Boot, Thymeleaf and htmx together. Here's a video on using Spring Boot w/htmx. That said, there is currently no job market for this kind of thing, although (crossed-fingers) that will change over the next few years.

hotwire-rails

Posts with mentions or reviews of hotwire-rails. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-19.
  • Go for web frontend
    reddit.com/r/golang | 2021-10-19
    Currently I'm exploring turbo + stimulusjs (https://hotwired.dev) which I find very easy to use and it can bring modern touch to the old school server side rendering. Which is something I prefer.
  • Infinite Scroll with HOTWire Part 1: Configuration
    dev.to | 2021-10-17
    HOTWire is a new set of tools extracted from Hey by Basecamp. It uses Asynchronous HTML and HTTP (also known as AHAH) to render partial updates to the DOM without a full browser reload. You build your servers with any language of your choice and let Turbo handle the partial updates for you. Which makes your application to have a speed of an SPA while having the benefits of server-rendered partials.
    dev.to | 2021-10-17
    hotwire-rails repo
  • Ask HN: Is there a CDN that pre-renders the app on the server?
    news.ycombinator.com | 2021-10-11
    I think basecamp is working on this kind of technology, but I think it is somewhat common for some performance focused shops to pre-render their initial HTML and cache it in their load balancer.

    Basecamp I think is taking it a step further.. read more here: https://hotwired.dev/

  • Ask HN: Why aren’t frameworks like htmx more popular?
    news.ycombinator.com | 2021-10-10
    Rails, one of the most popular web frameworks, comes with https://hotwired.dev .

    I count this as very popular.

    While the tendency to over engineer web apps is strong, many teams opt for faster development.

  • Hotwire in Laravel app?
    reddit.com/r/laravel | 2021-10-07
    Have any of you guys used the Hotwire stack (https://hotwired.dev) in your laravel apps? How was your experience?
  • Reactive Clojure: You don't need a web framework, you need a web language
    news.ycombinator.com | 2021-09-23
    I think Phoenix LiveView (posted recently on HN: https://fly.io/blog/how-we-got-to-liveview/) and Rails Hotwire (https://hotwired.dev/) are the main alternatives that have momentum right now.

    The general idea being to abstract away the difference between client and server code, so that you can write code that handles both, in a single file.

    > There has got to be a better way

    What's offensive about the OP to you? Is it just that you don't like functional programming / Clojure (fair, that's ultimately a matter of taste / aesthetics at some level)? Or is there something about the technical implementation you think is suboptimal?

  • 忘了 webpacker,舊版 Rails app 升級 jsbundling-rails + Hotwire
    dev.to | 2021-09-22
  • Practical Front End Architecture
    news.ycombinator.com | 2021-09-21
  • Why do Webdevs keep trying to kill REST?
    dev.to | 2021-09-20
    Hotwire sends literal HTML Over The wire

What are some alternatives?

When comparing htmx and hotwire-rails you can also consider the following projects:

Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.

react-snap - 👻 Zero-configuration framework-agnostic static prerendering for SPAs

Turbolinks - Turbolinks makes navigating your web application faster

SvelteKit - The fastest way to build Svelte apps

stimulus_reflex - Build reactive applications with the Rails tooling you already know and love.

django-unicorn - The magical reactive component framework for Django ✨

inertia-laravel - The Laravel adapter for Inertia.js.

turbo - The speed of a single-page web application without having to write any JavaScript

turbo-rails - Use Turbo in your Ruby on Rails app

Stimulus - A modest JavaScript framework for the HTML you already have

phoenix_live_view - Rich, real-time user experiences with server-rendered HTML