Alpine.js
Your new, lightweight JavaScript framework
Your new, lightweight JavaScript framework. A rugged, minimal tool for composing behavior directly in your markup. Think of it like jQuery for the modern web.
28K
GitHub Stars
supported
TypeScript
easy
Learning Curve
4.6
DX Score
Tarification
Model
free
Offre Gratuite
MIT licensed, fully open source
Fonctionnalités
- ✓ 15 attributes, 6 properties, 2 methods
- ✓ Declarative in-markup behavior
- ✓ No build step required
- ✓ x-data for reactive state
- ✓ x-bind and x-on directives
- ✓ x-model two-way binding
- ✓ x-show and x-if conditionals
- ✓ Global stores
- ✓ Reusable components
Avantages
- + No build process needed
- + Very easy to learn
- + Perfect for enhancing HTML
- + Works with any backend
- + Great with Laravel/Rails
Inconvénients
- - Not for complex SPAs
- - Limited component architecture
- - No virtual DOM
- - Inline JS in HTML
Idéal Pour
indie hacker hobbyist startup
frontend lightweight no-build progressive-enhancement htmx-friendly