htmx VS phoenix_live_view

Compare htmx vs phoenix_live_view and see what are their differences.


</> htmx - high power tools for HTML (by bigskysoftware)


Rich, real-time user experiences with server-rendered HTML (by phoenixframework)
Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Klotho - AWS Cloud-aware infrastructure-from-code toolbox [NEW]
  • Sonar - Write Clean JavaScript Code. Always.
  • InfluxDB - Access the most powerful time series database as a service
htmx phoenix_live_view
486 26
12,671 5,245
8.4% 1.2%
7.6 7.5
1 day ago 1 day ago
JavaScript Elixir
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.


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 2023-06-08.


Posts with mentions or reviews of phoenix_live_view. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-10.
  • Ask HN: What companies are embracing “HTML over the wire”?
    9 projects | | 10 Feb 2023
    "HTML over the wire" generally refers to tech like [0] Liveview, [1] Hotwire, [2] LiveView, [3] Blazor, etc. They aren't about about ditching JS and more about not writing your HTML in JS (and yes, SSR).


  • Alpine.js
    17 projects | | 13 Jan 2023
  • Phoenix 1.7 is View-less
    10 projects | | 30 Dec 2022
    Some of the 1.7 stuff has an alert banner that pops up when the connection is broken. I think that could really help.

    However I haven't put that in our app as I have seen other issues of flakey connection reconnect issues, and I would hate to make any of those more visible with a flashing notice.


  • What did I miss?
    4 projects | /r/elixir | 9 Nov 2022
    HEEx template language was created, an extension to EEx
  • How to get started with LiveView?
    4 projects | /r/elixir | 13 Oct 2022
    Also to your point, the latest LiveView release moved some helper utilities around and you need to add "import Phoenix.Component" in places. I could be wrong but I think the latest live code gen still isn't setting up correct imports. More info here:
  • Ask HN: What's is your go to toolset for simple front end development?
    46 projects | | 7 Jul 2022
    If you need any kind of interactivity on the frontend, but are more comfortable with the backend, I would suggest looking at Phoenix LiveView [0] or a similar server-rendered HTML technology for your language of your choice [1].

    In short, these solutions take JavaScript out of the mix entirely and basically let you deal with a single logical "app", rather than a separate frontend & backend.


  • Should I stop trying to learn HTML/JavaScript?
    2 projects | /r/learnprogramming | 15 Apr 2022
    It uses JS though, as it is required to open a WS connection and change content without refreshing the page, but that looks like it is abstracted from the user.
  • Mark Nottingham: Server-Sent Events, WebSockets, and HTTP
    11 projects | | 19 Feb 2022
    > I'm not up to date with the less popular web frameworks. Which frameworks do that?

    One of them is which is a component of Phoenix / Elixir.

    It will render your initial page over HTTP but then when you transition pages or perform actions using various functions it provides you it will send a diff of what's changed over WebSockets. These actions could be limited to only the 1 user using the site, such as clicking different links in a nav bar to transition between page A and B.

    The alternative to this is doing what other frameworks like Rails has done with Hotwire Turbo where they make these types of transitions of actions over HTTP. Turbolinks started to do this back in 2015 or whenever it came out and now more recently with Hotwire Turbo there's ways to only update a tiny area of the page (again over HTTP) but it also optionally supports using WebSockets for when you want to broadcast things to all connected clients, such as updating a counter somewhere or maybe showing a new reply on a blog post, etc..

    Laravel has Live Wire and there's also HTMX which is back-end agnostic which all use HTTP for a bulk of their behaviors to send server rendered HTML over the wire.

  • Which technologies can I use to build online chat?
    5 projects | /r/reactjs | 7 Feb 2022
    I think Phoenix even has a templating framework for the front-end, called LiveViewer ( And i believe it uses the built-in websockets to communicate changes on front-end to the server.
  • Phoenix LiveView, but event-sourced
    6 projects | | 16 Jan 2022
    The context: I'm building a cryptocurrency exchange application. I don't have the business chops to run an actual exchange, so this is just for fun. The application is built in Elixir, using the Commanded framework for CQRS/ES goodness, and Phoenix LiveView because it's the hot new thing that I wanted to learn.

What are some alternatives?

When comparing htmx and phoenix_live_view 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

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

Vue.js - This is the repo for Vue 2. For Vue 3, go to

hotwire-rails - Use Hotwire in your Ruby on Rails app

Svelte - Cybernetically enhanced web apps

Turbolinks - Turbolinks makes navigating your web application faster

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

unpoly - Unobtrusive Javascript Framework for server-side applications

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

svelte-query - Performant and powerful remote data synchronization for Svelte