Alpine.js
A strong pick. 8th of 10 UI frameworks.
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
Overall7.0
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- npm downloads ratio: 2.77 against a 4.1 median
- github releasesLastYear: 20 releases in the last year
- dev.to/sahilkhurana/alpinejs-in-2026-the-7-kb-script-tag-that-replaced-jquery-and-when-to-actually-use-it-1129: 2026 guidance on when to use it
- thelinuxcode.com/alpinejs-in-2026-a-pragmatic-maintainable-way-to-add-interactivity-without-the-weight: Fits dashboards; avoid it for complex state
GPT-6.2 Sol: 7.4, likely 6.3 to 8.5
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.
- github.com/alpinejs/alpine/releases/tag/v3.17.5: Current stable patch fixes a rendering issue during DOM updates.
- livewire.laravel.com/docs/4.x/alpine: Active integration for server-rendered Laravel applications.
- docs.hyva.io/index.html: Independent downstream use in commerce storefronts.
- reddit.com/r/django/comments/1szxiyw/django_devs_whats_your_actual_goto_frontend_stack: Users describe where Alpine fits and where they reach for Vue.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: Relative install growth trails the baseline and faster-growing peers such as Svelte.
Needed by many5.0
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- forum.djangoproject.com/t/react-vs-htmx-alpine-js/22345/2: Positioned for client-side widgets in server-rendered apps
- thelinuxcode.com/alpinejs-in-2026-a-pragmatic-maintainable-way-to-add-interactivity-without-the-weight: Fits admin dashboards; avoid it for complex client state
GPT-6.2 Sol: 5.0, likely 3.9 to 6.2
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.
- alpinejs.dev/essentials/installation: Script tag and module installation work with existing pages.
- reddit.com/r/django/comments/1szxiyw/django_devs_whats_your_actual_goto_frontend_stack: Django users describe Alpine for everyday interactions and Vue for more complex widgets.
- 2025.stateofjs.com/en-US/libraries/front-end-frameworks: Survey places Alpine in a smaller segment than the leading UI frameworks.
Helps a lot7.0
How well does it do the job for those who need it?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- npm hasTypes: No bundled TypeScript types
- github.com/alpinejs/alpine/releases: Recent features such as deferInit, CSP parser fixes and a Vue 3.5 reactivity upgrade
- dev.to/p4lm/alpine-js-benefits-and-limitations-hho: Users list limits with inline logic and scaling
- redlib.hyperreal.coffee/r/alpinejs/comments/1i91tsy/did_you_encounter_any_limits_by_using_alpinejs_in: Users discuss scaling limits; few concrete failures reported
GPT-6.2 Sol: 7.5, likely 6.4 to 8.6
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.
- alpinejs.dev/essentials/templating: Direct examples cover reactive text, visibility, attributes, and loops.
- npm hasTypes: The core package ships without TypeScript declarations.
- npmjs.com/package/%40types/alpinejs?activeTab=versions: DefinitelyTyped provides declarations for the 3.17 line.
- vuejs.org/guide/typescript/overview.html: Vue supports static checking inside templates.
- github.com/alpinejs/alpine/issues/4928: Users report lost form state after DOM updates in 3.17.4.
- krausest.github.io/js-framework-benchmark/2026/chrome154.html: The keyed rendering comparison used Alpine 3.14.7.
Holds up over time7.2
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- github commitsLastYear / releasesLastYear: 146 commits and 20 releases in the last year
- github openIssues: 8 open issues against 633 closed
- github.com/alpinejs/alpine/releases: Steady releases from several contributors; Porzio leads
- Livewire 3 bundles Alpine: Tied to the Laravel ecosystem
GPT-6.2 Sol: 7.3, likely 6.1 to 8.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.
- github commitsLastYear, releasesLastYear, latestRelease: 146 commits, 20 releases, and an October stable patch.
- github.com/alpinejs/alpine/releases: Recent 3.x releases include fixes from several contributors.
- github.com/sponsors/livewire: Paid sponsorship explicitly supports Alpine and Livewire.
- github.com/alpinejs/alpine/issues/4885: An open report traces a production form regression to 3.16.
- npmjs.com/package/alpinejs?activeTab=dependents: The npm package lists one collaborator.
Used widely5.5
How many use it, and is that growing?
Claude Opus 5.5: 5.5, likely 4.5 to 6.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.
- npm downloadsLast4Weeks: 3.77M, up from 1.36M a year ago (ratio 2.77, below the 4.1 median)
- dependents: 15,131 repos and 189 packages
- github stars: 32k stars
- 2025.stateofjs.com/en-US/libraries/front-end-frameworks: Alpine and htmx swapped places in the 2025 usage ranking
GPT-6.2 Sol: 5.4, likely 4.2 to 6.5
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.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Installs rose 2.77× against the 4.1× baseline.
- dependents, peers: 15,131 repositories and 189 packages in a partial index.
- github stars, bluesky posts, peers: About 32,000 stars and three Bluesky links in the tracked window.
- livewire.laravel.com/docs/4.x/alpine: Livewire bundles Alpine without a separate npm install.
- firstsited.com/tech/alpine-js: Detected Alpine on about 0.5% of tracked new sites through November 19.
Vouched for6.5
Who stands behind it being good?
Claude Opus 5.5: 5.5, likely 4.5 to 6.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.
- stories.fylehq.com/p/how-we-replaced-vue-2-with-alpinejs: Company replaced Vue 2 with Alpine; faster site, easier upkeep
- 2025.stateofjs.com/en-US/libraries/front-end-frameworks: Listed among the surveyed frameworks
- bennadel.com/4787: Independent write-up on using Alpine with htmx
- Livewire / Laravel: Ships Alpine as its client layer
GPT-6.2 Sol: 7.4, likely 6.3 to 8.5
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.
- livewire.laravel.com/docs/4.x/alpine: Livewire 4 ships with Alpine and integrates its component state.
- docs.hyva.io/index.html: Hyvä builds its commerce frontend on Alpine.
- tsh.io/state-of-frontend: In 2024, 7% of respondents used and liked Alpine and 1.9% used and disliked it.
- corewebvitals.io/state-of-cwv/explorer/metrics.stack.framework/desktop: 73% of 1,376 measured Alpine sites passed all three desktop vitals, versus 68% overall.
Safe7.6
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- advisories total: 0 advisories
- npm dependencies: 1 dependency
- scorecard score: 5.6; Token-Permissions 0, Pinned-Dependencies 2, Code-Review 4
GPT-6.2 Sol: 7.2, likely 6.0 to 8.3
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.
- npm license, dependencies, advisories total: MIT, one runtime dependency, and zero recorded OSV advisories.
- scorecard score, checks: 5.6 overall, with token permissions 0, dependency pinning 2, and code review 4.
- github.com/alpinejs/alpine/blob/v3.17.5/.github/workflows/release.yml: The tagged workflow publishes to npm with provenance.
- npmjs.com/package/alpinejs?activeTab=dependents: One named npm collaborator.
- alpinejs.dev/advanced/csp: The default evaluator needs dynamic code evaluation, and a separate CSP build is available.
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
- npm downloads, 4 weeks
- 3.8M ×2.8 in a year
- GitHub stars
- 32k
- Commits, 12 months
- 146
- npm version
- 3.17.5 Oct 2026
- Versions, 12 months
- 20
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 5.6 out of 10, Nov 2026
- Licence
- MIT
Many sites load Alpine.js from a CDN, which npm does not count.
Read on 21 November 2026 from GitHub (alpinejs/alpine), npm (alpinejs), OSV and the OpenSSF Scorecard.