# Alpine.js: 7.0 out of 10

A strong pick. 8th of 10 in [UI frameworks](https://elestia.ai/opensource/ui-frameworks/index.md).

Alpine.js is a small, actively maintained library that adds reactive behaviour straight in the HTML of server-rendered pages. It is the strongest choice for adding interactivity to Laravel, Django or Rails pages, often alongside htmx or Livewire. It is not built for large client-side apps, where React, Vue or Svelte do the job better.

**Best for:** Teams with server-rendered pages that want modals, dropdowns and small reactive widgets without a build step or a full SPA framework.

## Scores

- **Overall: 7.0** (likely 5.9 to 8.0)
  - Claude Opus 5.5 (6.5): Alpine is the best pick for light interactivity on server-rendered pages: maintained, safe and simple. It is not a choice for full client-side apps, where the bigger frameworks win. Its npm growth is below the median, and much of its future rests on one maintainer. That puts it in the solid middle of this category, ahead of htmx for client-side state but behind React, Vue and Svelte for general UI work.
  - GPT-6.2 Sol (7.4): Alpine is a strong pick when the server renders the page and the browser needs a manageable amount of reactive state. Regular fixes and adoption by Livewire and Hyvä make it a credible choice for new work, even with below-baseline npm growth. Vue and Svelte have a stronger case as the amount of typed client-side state and reusable UI grows, so the recommendation depends on how much of the interface the browser will own.
- **Needed by many: 5.0** (likely 4.0 to 6.1)
  - Claude Opus 5.5 (5.0): Alpine serves developers who add interactivity to server-rendered HTML. That is a sizeable group, strong in Laravel, Django and Rails. It is a narrower take on the category than the full SPA frameworks that most web-app builders use.
  - GPT-6.2 Sol (5.0): Alpine fits a common slice of browser UI work, from forms and menus to filters on server-rendered pages. It works with any backend that produces HTML, and its markup-driven design is a narrower fit for applications with complex navigation or shared client state. The range reflects how often teams need to enhance existing HTML.
- **Helps a lot: 7.0** (likely 6.0 to 8.1)
  - Claude Opus 5.5 (6.5): For its job, light reactivity in markup, Alpine is about the best tool there is: simple API, good docs, useful official plugins and a CSP-safe build. It reuses Vue's reactivity engine, so the core is solid. Users report problems with state organisation, testing and TypeScript as apps grow, and it performs poorly on heavy rendering. A full framework does that work clearly better.
  - GPT-6.2 Sol (7.5): The directives and concise examples cover everyday bindings, lists, and visibility changes, giving coding agents clear patterns to follow. Inline expressions lack built-in type checking, so mistakes can surface in the browser, and Vue offers stronger tooling for larger interfaces. Users have reported state-sync edge cases, and the independent rendering benchmark tested an older Alpine build, leaving performance on large lists less certain in 3.17.5.
- **Holds up over time: 7.2** (likely 6.1 to 8.2)
  - Claude Opus 5.5 (7.0): The project is active: 146 commits and 20 releases in the last year, with only 8 open issues. Version 3 has been stable for years without painful breaking changes. Livewire, which ships Alpine, ties it to the commercial Laravel ecosystem. The bus factor is the risk, because Caleb Porzio drives most of the work.
  - GPT-6.2 Sol (7.3): Alpine shipped 20 releases and recorded 146 commits in the past year, with fixes from several contributors on the stable 3.x line. Sponsorship and Livewire integration give it continuing support. A reported 3.16 form regression remains open, and npm lists one collaborator, leaving release continuity dependent on a small group.
- **Used widely: 5.5** (likely 4.4 to 6.5)
  - Claude Opus 5.5 (5.5): npm counts 3.8M downloads every 4 weeks, up 2.77 times on a year ago. That is below the 4.1 median, so on npm it is losing ground. CDN loads and Livewire's bundled copy are not counted, so real use is larger. Its 15k dependent repos lead the other HTML-first tools (htmx 348) but sit far below the SPA frameworks.
  - GPT-6.2 Sol (5.4): Ecosyste.ms found 15,131 dependent repositories, close to Lit and below Svelte and Vue. Four-week npm downloads rose from 1.36 million to 3.77 million, so Alpine lost ground against the catalog baseline of 4.1× with growth of 2.77×. CDN use and Livewire bundling make direct adoption hard to count, while FirstSited detected Alpine on about 0.5% of the new sites it tracked in the latest month.
- **Vouched for: 6.5** (likely 5.4 to 7.5)
  - Claude Opus 5.5 (5.5): The Laravel and Livewire ecosystem (the TALL stack) runs on Alpine in production. It appears in State of JS. Independent write-ups and a company migration story from Vue 2 to Alpine report good results. Independent benchmarks are few, and the survey shows no standout satisfaction result.
  - GPT-6.2 Sol (7.4): Laravel Livewire bundles Alpine, and Hyvä independently uses it for Magento and Adobe Commerce storefronts. The State of Frontend survey recorded more users liking Alpine than disliking it, and independent field data found a 73% desktop Core Web Vitals pass rate among measured Alpine sites. The survey is older, and the site comparison reflects the whole stack, which limits how much of the result can be credited to Alpine.
- **Safe: 7.6** (likely 6.5 to 8.7)
  - Claude Opus 5.5 (8.0): There are no advisories ever, the package has one dependency and an MIT licence, and releases come from a CI bot. The Scorecard total of 5.6 reflects weak token permissions, unpinned dependencies and no SAST or fuzzing. Those are process gaps, not known flaws. The project also offers a CSP build for strict sites.
  - GPT-6.2 Sol (7.2): The MIT-licensed core has one runtime dependency, zero recorded OSV advisories, and a GitHub Actions workflow that publishes to npm with provenance. The Scorecard flags weak code review, token permissions, and dependency pinning, and npm lists one collaborator. Sites that disallow dynamic code evaluation need the separate CSP build, which supports a smaller set of inline expressions.

## Good

- Works from a single script tag with no build step, and attaches state through attributes like x-data and x-on.
- Small attack surface: one dependency (@vue/reactivity) and no known advisories.
- Frequent small releases with few breaking changes, plus official plugins (persist, intersect, mask, morph, focus) and a CSP build.
- Integrates tightly with Laravel Livewire and works well with htmx in server-driven apps.

## Bad

- Logic written inside HTML attributes gets hard to type-check, test and organise as state grows.
- The npm package ships no types of its own, and TypeScript cannot check expressions written inside attributes.
- It is not meant for rendering large lists or complex client-side apps, and its runtime speed is middling.
- Development depends heavily on one lead maintainer.

## The numbers

- Downloads, 4 weeks: 3.8M
- In a year: ×2.8
- GitHub stars: 32k
- Commits, 12 months: 146
- Last npm release: Oct 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/alpinejs/alpine
- npm: https://www.npmjs.com/package/alpinejs

Many sites load Alpine.js from a CDN, which npm does not count.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
