petite-vue: a 5kb sprinklable alternative

Dave Rupert has written up petite-vue, a new cut of Vue built specifically with progressive enhancement in mind. At 5kb, it works as a lightweight alternative to Alpine (or jQuery): you add a <script> tag, set a v-scope, and you're running, with no extra bundling steps or build processes required.

Rupert frames the tool against the industry's changing feelings about how interactivity should be organized. Many developers remain fond of jQuery but disliked how fragile it could be, since interactive features and HTML ended up entirely separated. "Separation of concerns" felt right at the time, he argues, but was ultimately too dogmatic. JSX seemed wrong at first and now feels rather right, and much JavaScript templating has followed suit.

The problem with heavy frameworks is that they tend to be involved. That opened room for framework-free approaches like Alpine.js, which let developers sprinkle interactive technology directly into HTML. Vue has always been sprinklable to a degree, Rupert notes, but far more so with petite-vue.