Updated

htmx

JavaScript library that lets HTML elements make HTTP requests and swap the returned HTML into the page, using attributes instead of client-side code.

3 makers' products we track use htmx. For frontend framework it's 10th most chosen of 15 options: 3 of the 2,289 makers' products we know the frontend framework of (0%). Among the 452 launched in 2026, 0% chose it, against 0% of those launched in 2024 or earlier. 10 open-source projects also declare it in their code.

Open sourceSelf-hostableFree tier

Profile checked

Ask your AI about this, with this page as the source:ChatGPT ↗Claude ↗Perplexity ↗
Recent changesFollow htmx (RSS)
  • Oct 2026 Now covered: htmx, for frontend framework.

How makers use htmx

Makers' products we track use htmx for frontend framework (3).

What htmx is used for

Frontend Framework · HTML-first →Server-rendered apps where links, forms and buttons fetch HTML fragments from the backend and swap them into the page, with no client-side framework.Trade-off: Every interaction is a server round trip, so it suits poorly UIs with many interdependent client-side parts, offline use or constant updates; there are fewer component libraries and AI-generated examples than for React.
Next.js1,731Astro270React235Vue.js67Svelte43htmx3Makers' products on each, for frontend framework

htmx vs the alternatives makers chose

For frontend framework, 3 of the 2,289 makers' products we know the choice of picked htmx (0%), behind Next.js (76%).

OptionMakers' products2026 launchesOpen source
Next.js1,731 76%78%Yes
Astro270 12%13%Yes
React235 10%8%Yes
Vue.js67 3%2%Yes
Svelte43 2%1%Yes
Nuxt28 1%1%Yes
htmx3 0%0%Yes

For frontend framework: how many of the 2,289 makers' products we know the frontend framework of chose each option, and the share among the 452 launched in 2026, since a tool that came first has products from every year.

When to use htmx, and when not

Something else fits better if

  • Your app lives behind a login and doesn't need search traffic: React.
  • Public pages need server rendering and you want server code in the same React project: Next.js or React Router or TanStack Start.
  • You already know Vue, or Svelte, and need server rendering: Nuxt or SvelteKit.
  • You're building a marketing site, docs or a blog: Astro.
From each decision's guide, written from what makers' products chose and why.

htmx is a small JavaScript library for building interactive pages without a client-side framework. It starts from a narrow complaint about plain HTML: only links and forms can make requests, only clicks and submits trigger them, only GET and POST are available, and every response replaces the whole page.

More about htmx

How it works: you add attributes to ordinary elements. hx-get, hx-post, hx-put, hx-patch and hx-delete send a request, hx-trigger picks the event that fires it, hx-target picks where the response goes, and hx-swap decides how it is inserted. The server answers with HTML fragments, not JSON, so the backend can be any language or framework that renders HTML templates.

What you get: a dependency-free library you load from a script tag or install from npm as htmx.org; hx-boost to turn existing links and forms into AJAX requests that still work without JavaScript; history support through hx-push-url, so the back button restores earlier content; and core extensions for Server-Sent Events, WebSockets, DOM morphing and preloading. For small client-only behavior, the docs suggest pairing it with vanilla JS, Alpine.js or hyperscript.

The limits come from the model itself. The htmx essays say hypermedia fits text-and-image UIs, CRUD forms and screens that update in well-defined blocks, but not UIs with many interdependent parts that change without the server (a spreadsheet), apps that must work offline, or interfaces that update constantly, like games tracking mouse movement. Every interaction is a round trip, and escaping user content against XSS stays your job.

How htmx itself is built

1 tools, from its own code, website and Product Hunt page.

What Hacker News says about htmx

On Hacker News, 38% of comments about htmx recommend it and 6% criticize it: net praise +31%, 3rd best liked of 14 tools HN discusses for frontend framework.

By year

YearComments choosing it, per monthNet praise
202310+16%
202420+37%
202514+38%
2026 (8 mo)9.4+36%

In their words

  • “it works great and is very underrated. HTMX + WA” HN, Aug 2026
  • “If you’re using htmx, I highly recommend an HTML generation technique in your backend” HN, Jul 2026
  • “It wasn’t that easy to wrangle once it got more complicated.” HN, Jul 2026

Hacker News comments January 2023 to August 2026 that name htmx in a sentence like "I use" or "we moved to", Claude read a sample of 100 and the counts scale it to all of them; net praise is comments recommending it minus comments criticizing it, as a share of all comments about it. How it's counted, and how HN compares with makers.

Who uses it

3 makers' products, each linked to the source that shows it, and 10 open-source projects that declare it in their code. The best known on Product Hunt: WebTrafficWatch (253 followers), fastht.ml (83 followers), GoFast (61 followers).

The maker says so 3Declared in code 10How evidence is collected →
GoFast
GoFastUltimate Go Foundation for Speed, Scale, and Modern Web.

“GoFast's completely rebuilt Admin Panel leverages the simplicity and power of HTMX (paired with gRPC for efficient communication) to provide a lightning-fast, interactive experience for managing your application. It makes working with GoFast incredibly efficient and intuitive for developers.”

Frontend FrameworkMaker says so · source ↗
WebTrafficWatch
WebTrafficWatchWeekly insights from Google Analytics 4 & Search Console

“It shouldn't be this easy to build with htmx, but it is. Always astonished by how interactive everything gets when you springle some htmx on top.”

Frontend FrameworkMaker says so · source ↗
fastht.ml
fastht.mlModern web applications in pure Python

“HTMX removes four critical constraints of HTML. It allows any event on any DOM element to call any HTTP method on any path and place the response anywhere in the DOM.”

Frontend FrameworkMaker says so · source ↗

Open source: a project that declares htmx as a dependency in its public code — verifiable, but not necessarily a live product.

Further reading

Questions makers ask about htmx

Is htmx good for production?

3 makers' products we track run on it.

What is htmx used for?

JavaScript library that lets HTML elements make HTTP requests and swap the returned HTML into the page, using attributes instead of client-side code. Makers' products we track use it for frontend framework (3).

What are the alternatives to htmx?

For frontend framework, the other options makers' products we track chose most are Next.js (1,731), Astro (270), React (235), Vue.js (67), Svelte (43), Nuxt (28). Open source or self-hostable among them: Next.js, Astro, React, Vue.js, Svelte, Nuxt. Each alternative, with the situation it fits, is on the htmx alternatives page.

Which backend do I need?

Any backend that can return HTML. With htmx the server typically responds with HTML fragments rather than JSON, which htmx swaps into the page. source ↗

When is htmx a bad fit?

When many parts of the UI depend on each other in ways the server can't know at render time (a spreadsheet), when the app must work offline, or when the UI updates very frequently, like a game tracking mouse movement. source ↗

Do I need a build step?

No. You can load it from a CDN script tag or copy the minified file into your project; it is also on npm as htmx.org if you use a bundler. source ↗

Can I still write client-side JavaScript with it?

Yes. The docs recommend vanilla JS, Alpine.js, jQuery or hyperscript for client-side behavior, hooked into htmx's event system rather than replacing the hypermedia approach. source ↗

Does it support real-time updates?

Yes, through core extensions maintained by the htmx team, sse for Server-Sent Events and ws for WebSockets. source ↗

How do I handle CSRF tokens?

Checking CSRF tokens is the backend's job, but htmx can send the token with every request via the hx-headers attribute, usually set on the <html> or <body> tag. source ↗

Is htmx free?

Yes — it is free, open-source software.

Is htmx open source or self-hostable?

Open source, and you can self-host it. source ↗

Can AI coding agents work with htmx?

No llms.txt, official MCP server or CLI found yet.

Who uses htmx?

3 makers' products we track, each with a source, and 10 open-source projects declare it in their code. The best known of them on Product Hunt: WebTrafficWatch (253 followers), fastht.ml (83 followers), GoFast (61 followers). source ↗