Updated

Technology · Code & frameworks

Alpine.js

alpinejs.dev
Open source

What is Alpine.js?

Alpine.js is a minimal JavaScript framework for adding behavior directly in your HTML. You can add it with a script tag and start using it.[1]

Alpine.js is a rugged, minimal framework for composing JavaScript behavior in your markup. It offers a declarative way to add interactivity to web pages with a syntax inspired by Vue.js and Angular. Alpine.js is designed to be a lightweight alternative to larger frameworks, perfect for adding dynamic behavior to mostly static sites or enhancing server-rendered applications. Its small size and lack of build steps make it easy to drop into any project, while its expressive syntax allows for quick implementation of common UI patterns. Alpine.js is particularly useful for developers who want to add interactivity without the overhead of a full-fledged JavaScript framework.

Alpine.js belongs toJavaScript frameworkscategory.

Approach

Behavior written in your HTML markup[1]

Setup

One script tag, no build step needed[1]

API size

15 attributes, 6 properties and 2 methods[1]

License

MIT license, free to use[2]

33websites

use it — 1.3% of the 2,539 websites we scanned in the last 12 months

#10of 43

tools in its category seen in our scans (we recognize 90)

12public pages

on UptimeCard — open any of them to see how that site is doing

In short: a free, small framework for adding interactivity to server-rendered pages without a build step. It is a toolkit, not a full application framework.[1][2]

2.5% of all websites we track run Alpine.js

What is Alpine.js used for?

In short, from the websites we scan

What it does
Alpine.js is one of the JavaScript frameworks websites use. In our scans it is #10 of the 43 we see.
Where on a site
On the public websites we looked at, it most often powers marketing and landing pages (4 sites). An estimate from automatic descriptions of 11 sites.
Used together with
It is often installed next to Google Tag Manager, Cloudflare, PHP.

Should you use Alpine.js?

The 10-second version, from the vendor’s own pages and what we see in our scans

Alpine.js fits if…

  • You have server-rendered pages and want light interactivity[1]
  • You want to start with a script tag, not a build pipeline[1]
A major version can change syntax, so read the upgrade guide before you upgrade[3]

Support and help for Alpine.js

How the vendor says you can reach it, and the public help community

Stack Overflow

1,122 questions[6][7]

66% have an upvoted answer. [alpine.js] questions

Alpine.js versions

The newest release, the series that still gets fixes, and what changed

Latest release

3.17.5[4][5]

Released 20 Oct 2026

What Alpine.js sites add on top

How many of the 33 Alpine.js sites we scanned also run each tool, grouped by what the tool does

Tag manager

Google Tag Manager
79%26 sites

Analytics

Google Analytics
61%20 sites
Facebook Pixel
27%9 sites
Cloudflare Browser Insights
21%7 sites

Cookie consent

OneTrust
27%9 sites

Speed and caching

Varnish
15%5 sites

Marketing

HubSpot
12%4 sites

Search visibility

SEOmatic
12%4 sites

Online store

Cart Functionality
9%3 sites

The full bar means every Alpine.js site. A site can run several tools for one job, so the shares of tools in one group can add up to more than 100%.

How Alpine.js sites protect themselves

Share of the 33 sites we scanned that run each protection

HSTS73% · 24 sites

HTTP Strict Transport Security (HSTS) informs browsers that the site should only be accessed using HTTPS

Cloudflare Bot Management27% · 9 sites

Cloudflare bot management solution identifies and mitigates automated traffic to protect websites from bad bots

reCAPTCHA12% · 4 sites

reCAPTCHA is a free service from Google that helps protect websites from spam and abuse

Protections add up, they do not replace each other: a site can run all of them.

What sites use Alpine.js for

An estimate from UptimeCard's technology map of 11 public sites

Runs the whole site7 sites

acquia.com · altmetric.com · codabox.com

Runs the marketing site4 sites

cherryservers.com · devolutions.net · ftapi.com

Rough guide, not a measurement: each description is written automatically from the site’s technology stack and the site has not confirmed it. A site is counted once, in the first group its description fits (shop, help and docs, blog, marketing site; otherwise the whole site). Descriptions that only guess (“likely”, “may”) are left out.

At a glance

UptimeCard's own scans and tests of 2,539 websites · refreshed weekly

How Alpine.js sites scoreout of 100 · hover or tap a score for details

51PerformanceLowaverage site: 5192AccessibilityGoodaverage site: 9194Best practicesGoodaverage site: 9692SEOGoodaverage site: 92

Page load time

Loads about 29% slower than the average site

Alpine.js sites
4.5 s
All sites
3.5 s

Most Alpine.js sites load in 3.2–4.8 s. Home page weight: 2.8 MB vs 3.4 MB for all sites. 12 public sites measured.

Who uses it?

Technology and Software is the biggest group

Technology and Software67%
Business Services17%
News and Media8%
Other8%

Share of 12 classified public sites. “× average” compares with all 961 public sites.

How Alpine.js sites are built

Closest partners. The number says how many times more often the tool runs on Alpine.js sites than on an average website. Hover a partner for its share of sites.

Tailwind CSS4×Unpkg4×Cloudflare Browser Insights2×Varnish2×

Similar tools in its category

JavaScript frameworks: 90 tools known, 43 seen in our scans

How websites combine Alpine.js with other tools

Relationships found on the websites that use it, from the same map status pages show.

Complements another tool 14Overlaps with another 4Integrates with another 2

Websites using Alpine.js

33 websites use Alpine.js: 1.3% of the 2,539 websites we scanned in the last 12 months. A selection is shown below.

Scores are out of 100: P Performance · A Accessibility · B Best practices · S SEO. Green 80+, yellow 65–79, orange 50–64, red below 50. The dot shows whether our last scan found the site failing (red) or not (green); Red, amber or blue: an active incident on the site's status page (outage, degraded, maintenance) or a failing scan; amber also means a certificate ending within 30 days. Hover the dot for details.

Who is behind Alpine.js

From its own pages and public records, with sources

Alpine.js

since 2019[2]

Its story

  1. 2019

    Alpine's first release, 0.1.0, was published on GitHub on November 28, 2019. It started as a small tool for composing behavior in markup.[8][1]

  2. 2019

    Version 1.0.0 followed on December 18, 2019, renaming the project from Project-X to Alpine.js. The project now had its public name.[8]

  3. 2020

    Version 2.0.0, on February 19, 2020, removed the x-created and x-mounted attributes in favor of x-init. It was a breaking change that gave setup code one place to live.[8]

  4. 2021

    Version 3 was released in June 2021 with an upgrade guide listing its changes. Version 3.1.0 on June 20 added the x-html directive back from version 2.[3]

  5. 2025

    Version 3.15.0, released in September 2025, improved the CSP build and added Alpine.morphBetween(). Sites with a strict content security policy could use Alpine more easily.[3]

Questions about Alpine.js

What is Alpine.js?
Alpine.js is a minimal JavaScript framework for adding behavior directly in your HTML. You can add it with a script tag and start using it.
What is Alpine.js used for?
Alpine.js is one of the JavaScript frameworks websites use. In our scans it is #10 of the 43 we see. On the public websites we looked at, it most often powers marketing and landing pages (4 sites). An estimate from automatic descriptions of 11 sites. It is often installed next to Google Tag Manager, Cloudflare, PHP.
Is Alpine.js free?
Yes. It is released under the MIT license.[2]
How do I add Alpine.js to a page?
Add a script tag, then declare components with attributes in your markup.[1]
What is the latest Alpine.js version?
Version 3.17.5 is the latest release on npm and GitHub.[4][5]
How many websites use Alpine.js?
We found Alpine.js on 33 of the 2,539 websites we scanned in the last 12 months (1.3%). 12 of them have a public status page.
What are the alternatives to Alpine.js?
Other JavaScript frameworks we recognize include React, Next.js, Vue.js, GSAP.

Is your website built with Alpine.js?

Create a free status page that shows your visitors your site is up. It also gives your site its own public page where new people can discover it.

Example status page card