Hacker News new | ask | show | jobs
by rolae 2323 days ago
Alpine.js really was created for javascript sprinkles, where even vue.js might be overkill. For example, if you have an app, but you need to have dropdowns and modals. Then something like alpine.js can be nice.

So it is actually not intended for things more complex than basic interactivity. And what you build with it, should be simple enough you don't need any type system.

For people interested, there is a good episode on FullStackRadio on the topic http://www.fullstackradio.com/132

2 comments

Thanks for clarifying on this. This was not the message I inferred by browsing through the README and the examples.

The wording in the README says that Alpine "offers you the reactive and declarative nature of big frameworks like Vue or React at a much lower cost" which seemed to indicate that it was targeting a similar audience as those libraries.

The intro also didn't really mention anything about it being suited primarily for applications without needing complex composition of logic or any indication of what the authors feel about how big is too big to be suitable for alpine.

What about Svelte as a light-weight framework -- it compiles itself out (there is no library included in the final app).
Svelte is great but requires a compilation step, which is probably the kind of complexity that potential users of Alpine.js are trying to avoid.