“The best alternative to other JS frameworks: light and powerful, and the backend to Livewire (also used in this project).”
Frontend FrameworkMaker says so · source ↗
Alpine.js
Minimal JavaScript framework for adding reactive behavior, like toggles, dropdowns and form bindings, directly in HTML attributes.
15 open-source projects declare Alpine.js in their code; 1 maker's product we track uses it.
Profile checked
- Oct 2026 Now covered: Alpine.js, for frontend framework.
How makers use Alpine.js
Makers' products we track use Alpine.js for frontend framework (1).
What Alpine.js is used for
Alpine.js vs the alternatives makers chose
For frontend framework, 1 of the 2,289 makers' products we know the choice of picked Alpine.js (0%), behind Next.js (76%).
| Option | Makers' products | 2026 launches | Open source | |
|---|---|---|---|---|
| 1,731 76% | 78% | Yes | ||
| 270 12% | 13% | Yes | ||
| 235 10% | 8% | Yes | ||
| 67 3% | 2% | Yes | ||
| 43 2% | 1% | Yes | ||
| 28 1% | 1% | Yes | ||
| 1 0% | 0% | Yes |
For frontend framework: how many of the 2,289 makers' products we know the frontend framework of chose each option, and the share among the 452 launched in 2026, since a tool that came first has products from every year.
When to use Alpine.js, and when not
Something else fits better if
- Your app lives behind a login and doesn't need search traffic: React.
- Public pages need server rendering and you want server code in the same React project: Next.js or React Router or TanStack Start.
- You already know Vue, or Svelte, and need server rendering: Nuxt or SvelteKit.
- You're building a marketing site, docs or a blog: Astro.
Alpine.js is a small JavaScript framework for the interactive bits of a page that is otherwise rendered on the server: menus, modals, tabs, form fields that react to each other. It describes itself as a tool for composing behavior directly in your markup, in the spirit of jQuery for the modern web.
More about Alpine.js
How it works: an x-data attribute declares a reactive state object for an element and its children. Other directives read and change that state: x-on (or @) listens for events, x-show hides and shows elements, x-text and x-bind write values into the page, x-model binds form inputs, and x-for repeats elements. When the state changes, the bound parts of the page update.
What you get: a library you add with one deferred script tag, or install from npm as alpinejs and start with Alpine.start(). Magic properties such as $refs, $watch and $store cover element references, watchers and global state shared across components, and official plugins add input masks, intersection and resize observers, focus trapping, collapse, anchoring, morphing, sorting and localStorage persistence.
The limits: Alpine adds behavior to HTML that already exists; its directives, magics and plugins don't include routing or a data-fetching layer, so page structure comes from your server or another tool. Expressions live inside HTML attributes, and evaluating them needs unsafe-eval under a Content Security Policy; the separate CSP build avoids that but forbids arrow functions, template literals, globals like window and several other JavaScript features in those expressions.
How Alpine.js itself is built
2 tools, from its own code, website and Product Hunt page.
Alpine.js pros and cons
Themes that recur in makers' words and Hacker News comments, each linked to what it summarises, with how Product Hunt tags its reviews.
What Hacker News says about Alpine.js
On Hacker News, 44% of comments about Alpine.js recommend it and 2% criticize it: net praise +42%, the best liked of 14 tools HN discusses for frontend framework.
By year
| Year | Comments choosing it, per month | Net praise |
|---|---|---|
| 2023 | 1.0 | +67% |
| 2024 | 0.6 | +44% |
| 2025 | 0.8 | +29% |
| 2026 (8 mo) | 0.5 | 0% |
In their words
- “Stay as vanilla as possible, maybe alpine.js or tailwind” HN, Nov 2025
- “just to sprinkle on top of an SSR it does really well.” HN, Mar 2026
Hacker News comments January 2023 to August 2026 that name Alpine.js in a sentence like "I use" or "we moved to", Claude read a sample of 44 and the counts scale it to all of them; net praise is comments recommending it minus comments criticizing it, as a share of all comments about it. How it's counted, and how HN compares with makers.
Who uses it
1 makers' products, each linked to the source that shows it, and 15 open-source projects that declare it in their code. The best known on Product Hunt: Infinite Convo (209 followers).
None of these in makers' own words.
Open source: a project that declares Alpine.js as a dependency in its public code — verifiable, but not necessarily a live product.
Alternatives to Alpine.js
All alternatives by situation →Further reading
Questions makers ask about Alpine.js
What is Alpine.js used for?
Minimal JavaScript framework for adding reactive behavior, like toggles, dropdowns and form bindings, directly in HTML attributes. Makers' products we track use it for frontend framework (1).
What are the alternatives to Alpine.js?
For frontend framework, the other options makers' products we track chose most are Next.js (1,731), Astro (270), React (235), Vue.js (67), Svelte (43), Nuxt (28). Open source or self-hostable among them: Next.js, Astro, React, Vue.js, Svelte, Nuxt. Each alternative, with the situation it fits, is on the Alpine.js alternatives page.
Do I need a build step?
No. Include it with a defer script tag from a CDN, or install the alpinejs npm package, import it and call Alpine.start() once per page. source ↗
How do separate components share state?
Through Alpine.store(), which registers reactive global state that markup reads and changes via the $store magic property. source ↗
Does it work with a strict Content Security Policy?
Use the separate @alpinejs/csp build. It avoids unsafe-eval but restricts expressions in attributes, ruling out arrow functions, template literals, the spread operator and access to globals like window or console. source ↗
Can it remember state across page loads?
Yes, with the official Persist plugin, which saves the value to localStorage by default whenever it changes. source ↗
Does it work alongside htmx?
Yes. The htmx docs name Alpine.js as one of the recommended ways to add client-side scripting to an htmx app. source ↗
Is Alpine.js free?
Yes — it is free, open-source software.
Is Alpine.js open source or self-hostable?
Open source, and you can self-host it. source ↗
Can AI coding agents work with Alpine.js?
No llms.txt, official MCP server or CLI found yet.
Who uses Alpine.js?
1 makers' products we track, each with a source, and 15 open-source projects declare it in their code. The best known of them on Product Hunt: Infinite Convo (209 followers). source ↗