Hacker ApprovedDepartments

Alpine.js

Hacker Approved

Ranked 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%
Each figure is one person. RecommendsCriticizes

Recommended in 11 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. 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”
  • 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)”
  • 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”
  • 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”
  • 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.

Alpine.js compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
jQuery1114870%1216 yrs8 ownersApproved
Picknplace.js582669%1——
Alpine.jsThis page501676%111 yr4 ownersApproved
Effect (TypeScript library)381670%102 yrs3 ownersApproved
Video.js24680%1——
See all 24 JavaScript libraries, ranked

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.”

RecommendsComment from 21 Oct 2026 in “The Future of CSS”

“Alpine helps my LLM to deliver more maintainable JS code”

RecommendsComment from 14 Oct 2026 in “Do Frameworks Matter Anymore?”

“Currently all of my greenfield work projects are using alpine and tauri”

RecommendsComment from 2 Sep 2026 in “Htmx 4.0”

“I've built a couple non-trivial, cross-platform apps with alpine.js and htmx”

RecommendsComment from 2 Sep 2026 in “Htmx 4.0”

“SQL query/code generation and frontend Alpine.js-based for a small website”

RecommendsComment from 29 Aug 2026 in “Htmx 4.0”

“a light touch of interactivity where needed is a killer combination”

RecommendsComment from 28 Aug 2026 in “Htmx 4.0”

“tiny bits of JS on top that I like to use Alpine.js for”

RecommendsComment from 28 Aug 2026 in “Htmx 4.0”

“Mine JS stack was: only use Alpine.js (and avoid JS as much as possible).”

RecommendsComment from 26 Aug 2026 in “Nobody Wants Artisanal Code Anymore”

“Being a big fan of the server-side rendering, HTMX, Tailwind CSS, and Alpine.js”

RecommendsComment from 10 Aug 2026 in “Ask HN: What are you working on? (August 2026)”

“You miss the point of tools like htmx/datastar/turbo/unpoly/alpine”

RecommendsComment from 1 Aug 2026 in “Let's Make the Worst Htmx”

“Simple class toggles, easy way to toggle aria attributes, show/hide for elements, and reactive/computed values”

RecommendsComment from 27 Jul 2026 in “Removing React.js from the codebase and adapting Htmx for UI interactivity”

“Both combined are much larger than datastar, and not nearly as integrated.”

CriticizesComment from 16 Jul 2026 in “How I use HTMX with Go”

“I prefer HTML over JSX, and AlpineJS is good enough.”

RecommendsComment from 26 May 2026 in “Does Anybody Actually Like React?”

“I get much better results when I give LLMs some light architectural constraints”

RecommendsComment from 9 May 2026 in “Using Claude Code: The Unreasonable Effectiveness of HTML”

“Every project I started with alpine.js eventually transitioned to something heavier because it was hard to maintain”

CriticizesComment from 9 Apr 2026 in “We moved Railway's front end off Next.js. Builds went from 10 minutes to under 2”

“Both are far less likely to suffer from bugs than outlook.”

RecommendsComment from 3 Apr 2026 in “Artemis computer running two instances of MS outlook; they can't figure out why”

“Alpine/htmx are great, but they're more "sprinkle behavior on HTML" tools.”

MixedComment from 24 Mar 2026 in “No-build, no-NPM, SSR-first JavaScript framework if you hate React, love HTML”

“It reduces the JS I have to write and that fits my SSR approach.”

RecommendsComment from 24 Mar 2026 in “No-build, no-NPM, SSR-first JavaScript framework if you hate React, love HTML”

“I will keep using HTMX or Alpine.js whenever I can out of simplicity”

RecommendsComment from 2 Mar 2026 in “Ask HN: Who wants to be hired? (March 2026)”

“Alpine is one thing for you to search, one place for all your notifications”

RecommendsComment from 28 Jan 2026 in “Alpine: The modern AI-native productivity suite”

“hacked the Alpine package manager into it to actually be able to install multiple machines”

RecommendsComment from 22 Jan 2026 in “Linux from Scratch”

“Alpine shines when you need more composition or reactivity in the frontend. But it gets verbose quickly.”

MixedComment from 8 Jan 2026 in “Htmx: High Power Tools for HTML”

“it solves the problem of lightweight inline scripting, and it integrates relatively seamlessly with htmx”

RecommendsComment from 7 Jan 2026 in “Htmx: High Power Tools for HTML”

“I am writing a UI with Spring Boot + Thymleaf + HTMX and Alpine JS”

MixedComment from 7 Jan 2026 in “Htmx: High Power Tools for HTML”

“Alpine is a good replacement for jQuery in my conceptual model.”

RecommendsComment from 7 Jan 2026 in “Htmx: High Power Tools for HTML”

“you use two separate uncoordinated JavaScript libraries”

CriticizesComment from 7 Jan 2026 in “Htmx: High Power Tools for HTML”

“I find Alpine more convenient in many places when I need to work with json”

RecommendsComment from 7 Jan 2026 in “Htmx: High Power Tools for HTML”

“Building a linear replacement with Claude and Codex working on Django + HTMx + Alpine.js and its going great.”

RecommendsComment from 7 Jan 2026 in “Htmx: High Power Tools for HTML”

“Really like using alpine with a classical JS server rendered stack too.”

RecommendsComment from 4 Jan 2026 in “Web development is fun again”

“HTMX works very well with Alpine.JS and similar libraries for more complex situations”

RecommendsComment from 19 Dec 2025 in “Please just try HTMX”

“everything is so easy and intuitive to implement and manage”

RecommendsComment from 18 Dec 2025 in “Please just try HTMX”

“LLMs struggle with the "glue" required for complex UI items in HTMX/Alpine.”

CriticizesComment from 18 Dec 2025 in “Please just try HTMX”

“I worked on a large commercial AlpineJS app and grew to really, really hate it.”

CriticizesComment from 18 Dec 2025 in “Please just try HTMX”

“you're enhancing server-rendered HTML, not replacing it”

RecommendsComment from 18 Dec 2025 in “Please just try HTMX”

“I've seen it go bad, then worse with alpine-js, and then completely ripped”

CriticizesComment from 18 Dec 2025 in “Please just try HTMX”

“It makes managing reactivity a bit easier than full vanilla JS”

RecommendsComment from 14 Dec 2025 in “Useful patterns for building HTML tools”

“Stay as vanilla as possible, maybe alpine.js or tailwind”

RecommendsComment from 29 Nov 2025 in “WinApps: Run Windows apps as if they were a part of the native Linux OS”

“I've gotten away with some very tricky state updates with just Alpine.js.”

RecommendsComment from 16 Nov 2025 in “I made a better DOM morphing algorithm”

“I'll concede that Alpine.js is harder to understand and more verbose than Marko's syntax”

MixedComment from 8 Nov 2025 in “Marko – A declarative, HTML‑based language”

“I've been able to go much farther for simple projects using alpine”

RecommendsComment from 7 Nov 2025 in “Dead Framework Theory”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.