Alpine.js
Hacker ApprovedRanked 3 of 24 JavaScript libraries by recommenders
Recommended for adding light, reactive behavior to server-rendered HTML without writing much JavaScript. Critics say it gets verbose and hard to maintain as apps grow.
Recommended for adding light, reactive behavior to server-rendered HTML without writing much JavaScript. Critics say it gets verbose and hard to maintain as apps grow.
66 people gave an opinion
- recommend it
- 50
- criticize it
- 16
- approval share
- 76%
Recommended in 11 of 13 months
- November 2025: recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: not recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: recommended
- November 2026: not recommended (month in progress)
Owned for 1 year
Median of the 4 owners who said how long they have had it.
Each square is one year.
Why it carries the badge
- 50 people recommend itNeeds 10 or more, met.
- 3.1 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 11 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Light interactivity on server-rendered HTML
“it solves the problem of lightweight inline scripting, and it integrates relatively seamlessly with htmx”
Comment from 7 Jan 2026 in “Htmx: High Power Tools for HTML” “Really like using alpine with a classical JS server rendered stack too.”
Comment from 4 Jan 2026 in “Web development is fun again” “a light touch of interactivity where needed is a killer combination”
Comment from 28 Aug 2026 in “Htmx 4.0” - Comment from 24 Mar 2026 in “No-build, no-NPM, SSR-first JavaScript framework if you hate React, love HTML”
- Comment from 18 Dec 2025 in “Please just try HTMX”
- Comment from 28 Aug 2026 in “Htmx 4.0”
- Comment from 26 May 2026 in “Does Anybody Actually Like React?”
Pairs well with htmx
“Building a linear replacement with Claude and Codex working on Django + HTMx + Alpine.js and its going great.”
Comment from 7 Jan 2026 in “Htmx: High Power Tools for HTML” “HTMX works very well with Alpine.JS and similar libraries for more complex situations”
Comment from 19 Dec 2025 in “Please just try HTMX” “Being a big fan of the server-side rendering, HTMX, Tailwind CSS, and Alpine.js”
Comment from 10 Aug 2026 in “Ask HN: What are you working on? (August 2026)” - Comment from 2 Sep 2026 in “Htmx 4.0”
- Comment from 7 Jan 2026 in “Htmx: High Power Tools for HTML”
Easy and simple to use
“Simple class toggles, easy way to toggle aria attributes, show/hide for elements, and reactive/computed values”
Comment from 27 Jul 2026 in “Removing React.js from the codebase and adapting Htmx for UI interactivity” “I've gotten away with some very tricky state updates with just Alpine.js.”
Comment from 16 Nov 2025 in “I made a better DOM morphing algorithm” “It makes managing reactivity a bit easier than full vanilla JS”
Comment from 14 Dec 2025 in “Useful patterns for building HTML tools” - Comment from 18 Dec 2025 in “Please just try HTMX”
Handles reactivity and state
“Alpine shines when you need more composition or reactivity in the frontend. But it gets verbose quickly.”
Comment from 8 Jan 2026 in “Htmx: High Power Tools for HTML” “I've gotten away with some very tricky state updates with just Alpine.js.”
Comment from 16 Nov 2025 in “I made a better DOM morphing algorithm” “It makes managing reactivity a bit easier than full vanilla JS”
Comment from 14 Dec 2025 in “Useful patterns for building HTML tools”
What people warn about
Each mark is one comment
Verbose and hard to maintain
“I'll concede that Alpine.js is harder to understand and more verbose than Marko's syntax”
Comment from 8 Nov 2025 in “Marko – A declarative, HTML‑based language” “Every project I started with alpine.js eventually transitioned to something heavier because it was hard to maintain”
Comment from 9 Apr 2026 in “We moved Railway's front end off Next.js. Builds went from 10 minutes to under 2” “Alpine shines when you need more composition or reactivity in the frontend. But it gets verbose quickly.”
Comment from 8 Jan 2026 in “Htmx: High Power Tools for HTML” - Comment from 18 Dec 2025 in “Please just try HTMX”
Needs glue to combine with HTMX
“LLMs struggle with the "glue" required for complex UI items in HTMX/Alpine.”
Comment from 18 Dec 2025 in “Please just try HTMX” “Both combined are much larger than datastar, and not nearly as integrated.”
Comment from 16 Jul 2026 in “How I use HTMX with Go” “you use two separate uncoordinated JavaScript libraries”
Comment from 7 Jan 2026 in “Htmx: High Power Tools for HTML” Projects often outgrown and replaced
“Every project I started with alpine.js eventually transitioned to something heavier because it was hard to maintain”
Comment from 9 Apr 2026 in “We moved Railway's front end off Next.js. Builds went from 10 minutes to under 2” “I've seen it go bad, then worse with alpine-js, and then completely ripped”
Comment from 18 Dec 2025 in “Please just try HTMX”
Other JavaScript libraries people recommend
The four most recommended other JavaScript libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| jQuery | 111 | 48 | 70% | 12 | 16 yrs8 owners | Approved |
| Picknplace.js | 58 | 26 | 69% | 1 | — | — |
| Alpine.jsThis page | 50 | 16 | 76% | 11 | 1 yr4 owners | Approved |
| Effect (TypeScript library) | 38 | 16 | 70% | 10 | 2 yrs3 owners | Approved |
| Video.js | 24 | 6 | 80% | 1 | — | — |
What people said
40 of the 77 comments that mention it, newest first. Each links to the original comment.
“Libraries like HTMX and Alpine can take care of most the boilerplate for old style imperative patterns.”
“Alpine helps my LLM to deliver more maintainable JS code”
“Currently all of my greenfield work projects are using alpine and tauri”
“I've built a couple non-trivial, cross-platform apps with alpine.js and htmx”
“SQL query/code generation and frontend Alpine.js-based for a small website”
“a light touch of interactivity where needed is a killer combination”
“tiny bits of JS on top that I like to use Alpine.js for”
“Mine JS stack was: only use Alpine.js (and avoid JS as much as possible).”
“Being a big fan of the server-side rendering, HTMX, Tailwind CSS, and Alpine.js”
“You miss the point of tools like htmx/datastar/turbo/unpoly/alpine”
“Simple class toggles, easy way to toggle aria attributes, show/hide for elements, and reactive/computed values”
“Both combined are much larger than datastar, and not nearly as integrated.”
“I prefer HTML over JSX, and AlpineJS is good enough.”
“I get much better results when I give LLMs some light architectural constraints”
“Every project I started with alpine.js eventually transitioned to something heavier because it was hard to maintain”
“Both are far less likely to suffer from bugs than outlook.”
“Alpine/htmx are great, but they're more "sprinkle behavior on HTML" tools.”
“It reduces the JS I have to write and that fits my SSR approach.”
“I will keep using HTMX or Alpine.js whenever I can out of simplicity”
“Alpine is one thing for you to search, one place for all your notifications”
“hacked the Alpine package manager into it to actually be able to install multiple machines”
“Alpine shines when you need more composition or reactivity in the frontend. But it gets verbose quickly.”
“it solves the problem of lightweight inline scripting, and it integrates relatively seamlessly with htmx”
“I am writing a UI with Spring Boot + Thymleaf + HTMX and Alpine JS”
“Alpine is a good replacement for jQuery in my conceptual model.”
“you use two separate uncoordinated JavaScript libraries”
“I find Alpine more convenient in many places when I need to work with json”
“Building a linear replacement with Claude and Codex working on Django + HTMx + Alpine.js and its going great.”
“Really like using alpine with a classical JS server rendered stack too.”
“HTMX works very well with Alpine.JS and similar libraries for more complex situations”
“everything is so easy and intuitive to implement and manage”
“LLMs struggle with the "glue" required for complex UI items in HTMX/Alpine.”
“I worked on a large commercial AlpineJS app and grew to really, really hate it.”
“you're enhancing server-rendered HTML, not replacing it”
“I've seen it go bad, then worse with alpine-js, and then completely ripped”
“It makes managing reactivity a bit easier than full vanilla JS”
“Stay as vanilla as possible, maybe alpine.js or tailwind”
“I've gotten away with some very tricky state updates with just Alpine.js.”
“I'll concede that Alpine.js is harder to understand and more verbose than Marko's syntax”
“I've been able to go much farther for simple projects using alpine”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.