Description
Alpine AJAX is a plugin for Alpine.js that lets HTML elements request remote content from your server and update the page with the response. The site describes it as radio-controlled HTML elements. You put a form or link in your markup with attributes that say where the response should go, and the server sends back HTML rather than JSON, so the page updates without you writing custom JavaScript. The site says the plugin is under 3 kB, and that with Alpine.js the total is about 18 kB of JavaScript, and it has zero server-side dependencies, so it works with any server stack. It is progressive, so pages keep working when JavaScript is unavailable, and it is accessible because it enhances HTML rather than replacing it. AJAX requests are batched to avoid duplicates and save bandwidth. The site includes a demonstration with a live song search, a server requests panel, a reference, examples and comparisons with other approaches. It suits developers who want server-rendered websites with light interactivity and no JSON API.…
Highlights
- Update HTML from the server without JSON
- Under 3 kB, with Alpine.js about 18 kB
- Works with any server-side stack
- Progressively enhanced and accessible
- Batched requests to avoid duplicates
Ratings & Reviews
No ratings yet
Be the first to rate Alpine AJAX.
People also visit

hyva-alpine-component
Write CSP-compatible Alpine.js components for Hyvä themes in Magento 2
Alpine AJAX FAQ
What is Alpine AJAX?
A plugin for Alpine.js that lets HTML elements request content from your server and update the page.
Does it need JSON?
No. The server sends back HTML, so you do not need to write JSON APIs or client-side rendering.
How big is it?
The site says it is under 3 kB, and about 18 kB of JavaScript in total with Alpine.js.
Which server does it need?
None in particular. The site says there are zero server-side dependencies.
What are the best Alpine AJAX alternatives?
Popular alternatives to Alpine AJAX include React Modern Audio Player, LMS and Airsonic Refix. See all Alpine AJAX alternatives





