🆚 Htmx vs. Preact
- 📈 Htmx is twice as popular as Preact.
- 🌎 Htmx is more popular in the United States, Germany, and the United Kingdom.
- 🌎 Preact is more popular in Australia, Brazil, and Israel.
Type
About
Htmx is an open-source JavaScript library that extends
HTML by adding custom attributes to trigger AJAX requests,
CSS transitions,
WebSockets, and Server-Sent Events directly in HTML markup.
It enables any HTML element to issue HTTP requests using any HTTP method and any event, injects server-returned HTML into targeted DOM elements without full page reloads, and supports lazy loading, infinite scroll, and inline editing.
Preact is a fast 3kB alternative to React with the same modern API.
It offers a virtual DOM, support for hooks and components, hydration for server-rendered content, and compatibility with many React-style tools through adapters.
Headquarters
Pricing
Categories
Popularity
Determined by the number of sites using each technology.
Market share
Popularity by country
Determined by the number of sites detected from each country.
Awards
- ⬆️ 80th most popular in Norway in the JavaScript Libraries category.
- ⬆️ 100th most popular in Germany in the JavaScript Libraries category.
- ⬆️ 100th most popular in Switzerland in the JavaScript Libraries category.
- ⬆️ 100th most popular in Belgium in the JavaScript Libraries category.
- ⬆️ 114th most popular in Sweden in the JavaScript Libraries category.
- ⬆️ 151st most popular in Australia in the JavaScript Libraries category.
- ⬆️ 157th most popular in Brazil in the JavaScript Libraries category.
- ⬆️ 165th most popular in the United States in the JavaScript Libraries category.
- ⬆️ 178th most popular in the United Kingdom in the JavaScript Libraries category.
- ⬆️ 180th most popular in the Netherlands in the JavaScript Libraries category.
Popularity by domain category
Determined by the number of sites in each category.
Top sites
Top-ranked sites that use these technologies.
Compare alternatives
Technologies with similar characteristics.
See also
🗃️ About This Data
- We evaluate the popularity of technologies based on the number of websites where we detect their usage.
- Technologies without a detectable web footprint, and those we do not track, are not reflected in the calculated market share.
- This report is based on the analysis of 3,814,833 websites.
- Statistics were last calculated on .
- For more details, see our methodology and disclaimer.



