Elestia Open Source Ratings
7.1

htmx

A strong pick. 7th of 10 UI frameworks.

htmx is a small, dependency-free library. HTML attributes fetch HTML from the server and swap it into the page, so the server renders the interface instead of a client-side framework. It is a strong, well-kept choice for server-rendered apps in any backend language, but a poor fit for UIs with a lot of client-side state, where React, Vue or Svelte do the job better.

Best for: Teams with a server-rendered backend (Django, Rails, Go, Laravel and others) who want interactive pages without building a single-page app.

WebsiteGitHubnpm

Scores

Overall7.1

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

It is a strong pick for server-rendered apps that want interactivity without a JavaScript framework. It is small, safe, maintained, and htmx 4 is now stable. As a general UI framework it is narrower than React, Vue or Svelte, which do client-state-heavy apps clearly better. The range is wide because the score depends so much on the kind of app.

GPT-6.2 Sol: 7.6, likely 6.4 to 8.4

htmx is a strong pick when the server renders the interface and most interactions need fresh server data. React, Vue, and Svelte are stronger defaults for apps with substantial browser state, and Alpine.js is a closer fit for small interactions driven entirely in the browser. Active maintenance and real production use support the recommendation, while the young 4.x line and uneven adoption evidence keep the range wide.

Needed by many5.2

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.5

htmx serves server-rendered web apps in any backend language. That is a large group, but it is narrower than all browser UI work. It does not serve single-page apps, rich client state or mobile hybrid work, which much of the category's audience needs. Many of its users are not mainly JavaScript developers, which makes the share hard to pin down.

GPT-6.2 Sol: 5.3, likely 4.4 to 6.4

htmx works with any backend that can return HTML, so it serves a sizable group building server-rendered forms, dashboards, stores, and content sites. Its fit narrows when the browser owns the application state or the backend only serves JSON. Survey results vary sharply by audience, so the share of JavaScript and TypeScript developers who would benefit is hard to pin down.

Helps a lot7.3

How well does it do the job for those who need it?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

For server-driven interactivity it is about the best tool there is. It is small, it has no dependencies, and htmx 4 adds fetch streaming, morphing and multi-target partial responses. It does not manage client state at all, though, and users report hard debugging and history problems. A peer framework does a better job for rich client UIs. The score shifts a lot with the kind of app.

GPT-6.2 Sol: 8.1, likely 7.0 to 9.0

Stable 4.0.2 handles requests, navigation, and targeted or multi-region HTML updates with little client code. The JavaScript API has TypeScript declarations, and the docs offer event logging and version-specific material for coding agents. Production reports describe more work for complex browser state, and performance depends on the server and network. Direct comparisons and independent evidence on agent accuracy with 4.x are limited.

Holds up over time7.2

Will it still be a good choice in two years?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

The project is active. It shipped 11 GitHub releases in the last year, htmx 4.0.2 came out days ago, and 2.x is promised indefinite support, with 4 kept on the npm next tag so nobody is upgraded by accident. Against that, the core team is small and led by its creator, funded by sponsors, with 126 commits a year. The htmx 4 default changes also need care when upgrading.

GPT-6.2 Sol: 7.4, likely 6.2 to 8.4

The project recorded 126 commits and 11 GitHub releases in the past year, has a named core team, and receives sponsorship. A reported Chrome regression was fixed in 16 days, and the team has kept 2.x as npm’s default during the 4.x transition. Breaking changes in 4.x add maintenance work, and the breadth of publishing access and long-term funding is unclear.

Used widely5.7

How many use it, and is that growing?

Claude Opus 5.5: 5.5, likely 4.5 to 6.5

npm downloads are 1.73M per 4 weeks, up 4.6x from a year ago, which is a bit above the 4.1 median. Most sites load htmx from a CDN, so npm undercounts real use, and its 348 dependent repos also understate it because backends in other languages do not show up there. The repository has 49.6k stars and strong Hacker News attention, but the State of JS 2025 shows flat or falling interest.

  • npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 1.73M vs 379k, ratio about 4.6 against a 4.1 median
  • dependents: 348 repos, far below Alpine.js at 15k
  • github stars: 49.6k stars
  • 2025.stateofjs.com/en-US/libraries/front-end-frameworks: Usage rank swapped with Alpine.js; not among gainers

GPT-6.2 Sol: 5.8, likely 4.7 to 6.9

Four-week npm downloads rose from 379,035 to 1.73 million, or 4.57 times, modestly above the catalog baseline of 4.1 times. Indexed dependents trail every peer, including Alpine.js, but CDN and copied-file installs escape npm package tracking, and one public-web crawl detected htmx on roughly 60,000 sites. Django survey usage rose from 24% to 34%, while direct adoption across the wider category remains harder to estimate.

  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 4.57 times year over year against a 4.1 times catalog baseline.
  • dependents repos and packages, peers dependentRepos, project note: 348 indexed repositories and 28 packages, with CDN and copied-file use undercounted.
  • github stars, hackerNews top, bluesky posts, peers blueskyPosts: 49,649 stars and lively release discussion, with 16 Bluesky links.
  • aguko.com/tech/htmx: Public-web detection found 59,777 sites.
  • lp.jetbrains.com/django-developer-survey-2026: Reported Django usage rose ten percentage points.
Vouched for6.5

Who stands behind it being good?

Claude Opus 5.5: 6.0, likely 4.5 to 7.0

Independent coverage is current and wide: InfoQ, Hacker News threads above 800 points, and frameworks built on it such as Hyperflask and django-htmx. Production reports come mostly from small teams and blogs, not from big named companies. State of JS sentiment is mixed, and some teams report moving back to React.

GPT-6.2 Sol: 6.9, likely 5.8 to 8.0

FastHTML builds on htmx, and a Contexte engineer reported continued production use after migrating from React. In Stack Overflow’s 2026 survey, 55.9% of htmx users wanted to keep using it. The strongest production evidence concerns server-rendered apps, and the 4.x line has a short production track record.

Safe7.9

How safe is it to depend on?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

It has zero dependencies, no known advisories, and the very permissive 0BSD licence. The OpenSSF Scorecard is only 5.2, with weak token permissions, unsigned releases, no SAST and partial code review. Because htmx swaps server HTML into the page, the app must escape its output to avoid XSS.

  • npm dependencies: 0 dependencies
  • advisories total: No OSV advisories
  • scorecard: 5.2; Token-Permissions 0, Signed-Releases 0, SAST 0
  • npm license: 0BSD

GPT-6.2 Sol: 7.8, likely 6.6 to 8.8

The core has zero runtime dependencies, a permissive 0BSD license, and no advisories in the collected OSV record. Version 4 defaults to same-origin requests, and applications still need to escape untrusted HTML before inserting it into the page. The 5.2 OpenSSF Scorecard flags workflow token permissions, dependency pinning, and release signing, and the number of npm publishers could not be verified.

  • npm dependencies and license, advisories total and last24Months: Zero runtime dependencies, 0BSD, and zero indexed advisories.
  • scorecard score and checks: 5.2 overall, with zero scores for token permissions and signed releases.
  • github.com/bigskysoftware/htmx/blob/v4.0.2/LICENSE: Permissive license text for the scored release.
  • four.htmx.org/docs/#security: Documents the same-origin default, HTML escaping, and stricter CSP options.

Good

  • It has zero dependencies, ships as about 14 KB in one script, and needs no build step.
  • It works with any backend language and template engine, so most of the code stays on the server.
  • htmx 4 moved to fetch(), added built-in morphing swaps and hx-partial, and shipped an upgrade-check tool, while 2.x stays supported.
  • The API is small and stable, and users report that AI coding assistants write correct htmx code.

Bad

  • It is weak for UIs with rich client state, such as drag-and-drop or offline use. Teams like Gumroad picked Next.js for this reason.
  • htmx 4 changes defaults: inheritance becomes opt-in and events are renamed. This can break code silently, for example a CSRF header that stops being sent.
  • Debugging swap and history problems can be hard, and error messages give little context.
  • A small core team led by its creator does the work, and commit volume is low next to the big framework teams.

The numbers

npm downloads, 4 weeks
1.7M ×4.6 in a year
GitHub stars
50k
Commits, 12 months
126
npm version
2.0.11 Sept 2026
Versions, 12 months
6
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
5.2 out of 10, Nov 2026
Licence
0BSD

Most sites load htmx from a CDN or a copied file, which npm does not count.

Read on 21 November 2026 from GitHub (bigskysoftware/htmx), npm (htmx.org), OSV and the OpenSSF Scorecard.

UI frameworks

  1. 9.0React
  2. 8.3Svelte
  3. 8.3Vue
  4. 7.8Angular
  5. 7.4Solid
  6. 7.3Preact
  7. 7.1htmx
  8. 7.0Alpine.js
  9. 6.9Lit
  10. 5.4Ember.js
Compare all 10 on six scores