Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Coordinates htmx server swaps with local browser UI state using Alpine.js, _hyperscript, and custom events.
80% 100%+20 ptsof test cases passed
Passed 25 of 25 test cases with the skill, and 20 of 25 without it.
3 of 3 safety checks passed
Not used yet
Use this skill when htmx handles server trips but the page still needs local browser behavior. Keep the ownership line explicit so server-rendered HTML and client-side state do not fight each other.
_hyperscript is best for short event-driven behaviors attached to markup.Keep persistent Alpine state outside htmx targets that will be replaced. If htmx swaps the element that owns x-data, that state resets.
_hyperscript syntax as part of the template layer.Avoid _hyperscript for complex state machines, security-sensitive logic, large data transforms, or behavior that needs substantial tests.
Use events as the bridge between server results and local browser state:
_hyperscript, or plain JavaScript listens for the event.Prefer domain event names over implementation names:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.