Skip to content

Alpine.js? #95

@nelsonic

Description

@nelsonic

Alpine.js is the "A" in PETAL Stack: #87
It's a way to add interaction enhancements like transitions on the client-side
https://alpinejs.dev/start-here
image

The biggest advantages are:

  1. Tiny API: 18 Directives
    x-data
    x-init
    x-show
    x-bind
    x-on
    x-text
    x-html
    x-model
    x-modelable
    x-for
    x-transition
    x-effect
    x-ignore
    x-ref
    x-cloak
    x-teleport
    x-if
    x-id
  2. Declarative in-line code so all enhancements are in the HTML (.heex) Template so we don't have to look in multiple places to understand the code.

There is also a component library: https://alpinejs.dev/components
image
image

It't $129:
image
This seems perfectly reasonable if its mobile-first and fully responsive. 📱

Crucially there are already quite a few people using in the Phoenix LiveView space.
e.g: https://petal.build/
image
https://petal.build/#pricing
image
quite a lot more expensive than the Alpine.js Components above ...
but again, offers a lot more for the money. 💭

Not going to spend anymore time on this right now.
My only "concern" is the testing ... but will need to read into this more later.

Metadata

Metadata

Assignees

Labels

discussShare your constructive thoughts on how to make progress with this issueenhancementNew feature or enhancement of existing functionalityhelp wantedIf you can help make progress with this issue, please comment!priority-2Second highest priority, should be worked on as soon as the Priority-1 issues are finishedquestionA question needs to be answered before progress can be made on this issuetechnicalA technical issue that requires understanding of the code, infrastructure or dependencies

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions