# Alpine.js

50 Hacker News commenters recommended Alpine.js and 16 criticized it, November 2025 to November 2026. It was recommended in 11 of 13 months; owners who said how long report a median of 1 years (4 owners). It meets the Hacker Approved badge rule.

**Verdict:** 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.

## Why people recommend it

- Light interactivity on server-rendered HTML (7 comments): "it solves the problem of lightweight inline scripting, and it integrates relatively seamlessly with htmx" ([source](https://news.ycombinator.com/item?id=46527100)) "Really like using alpine with a classical JS server rendered stack too." ([source](https://news.ycombinator.com/item?id=46489691)) "a light touch of interactivity where needed is a killer combination" ([source](https://news.ycombinator.com/item?id=49482074))
- Pairs well with htmx (5 comments): "Building a linear replacement with Claude and Codex working on Django + HTMx + Alpine.js and its going great." ([source](https://news.ycombinator.com/item?id=46526049)) "HTMX works very well with Alpine.JS and similar libraries for more complex situations" ([source](https://news.ycombinator.com/item?id=46320811)) "Being a big fan of the server-side rendering, HTMX, Tailwind CSS, and Alpine.js" ([source](https://news.ycombinator.com/item?id=49241286))
- Easy and simple to use (4 comments): "Simple class toggles, easy way to toggle aria attributes, show/hide for elements, and reactive/computed values" ([source](https://news.ycombinator.com/item?id=49075555)) "I've gotten away with some very tricky state updates with just Alpine.js." ([source](https://news.ycombinator.com/item?id=45942042)) "It makes managing reactivity a bit easier than full vanilla JS" ([source](https://news.ycombinator.com/item?id=46264222))
- Handles reactivity and state (3 comments): "Alpine shines when you need more composition or reactivity in the frontend. But it gets verbose quickly." ([source](https://news.ycombinator.com/item?id=46536833)) "I've gotten away with some very tricky state updates with just Alpine.js." ([source](https://news.ycombinator.com/item?id=45942042)) "It makes managing reactivity a bit easier than full vanilla JS" ([source](https://news.ycombinator.com/item?id=46264222))

## What people warn about

- Verbose and hard to maintain (4 comments): "I'll concede that Alpine.js is harder to understand and more verbose than Marko's syntax" ([source](https://news.ycombinator.com/item?id=45859890)) "Every project I started with alpine.js eventually transitioned to something heavier because it was hard to maintain" ([source](https://news.ycombinator.com/item?id=47707965)) "Alpine shines when you need more composition or reactivity in the frontend. But it gets verbose quickly." ([source](https://news.ycombinator.com/item?id=46536833))
- Needs glue to combine with HTMX (3 comments): "LLMs struggle with the "glue" required for complex UI items in HTMX/Alpine." ([source](https://news.ycombinator.com/item?id=46315756)) "Both combined are much larger than datastar, and not nearly as integrated." ([source](https://news.ycombinator.com/item?id=48941065)) "you use two separate uncoordinated JavaScript libraries" ([source](https://news.ycombinator.com/item?id=46526511))
- Projects often outgrown and replaced (2 comments): "Every project I started with alpine.js eventually transitioned to something heavier because it was hard to maintain" ([source](https://news.ycombinator.com/item?id=47707965)) "I've seen it go bad, then worse with alpine-js, and then completely ripped" ([source](https://news.ycombinator.com/item?id=46313664))

## Alternatives hackers recommend

- [jQuery](https://hackerapproved.com/p/jquery.md): 111 recommend
- [Picknplace.js](https://hackerapproved.com/p/picknplace-js.md): 58 recommend
- [Effect (TypeScript library)](https://hackerapproved.com/p/effect.md): 38 recommend
- [Video.js](https://hackerapproved.com/p/video-js.md): 24 recommend
- [Hotwire Turbo](https://hackerapproved.com/p/turbo.md): 22 recommend

## Cite as

Hacker Approved, "Alpine.js", https://hackerapproved.com/p/alpine-js/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
