htmx-js-api

Installation
SKILL.md

htmx JS API

Use this skill when declarative attributes are not enough. Prefer attributes first; reach for the JavaScript API to integrate with third-party widgets, dynamically injected markup, instrumentation, or programmatic request flows.

Decision Rule

Use htmx attributes when the behavior is visible in the HTML and tied to one element. Use the JS API when:

  • markup is inserted by non-htmx code and needs htmx processing;
  • an external library needs to trigger an htmx request or event;
  • event listeners must be registered centrally;
  • debugging requires htmx logging;
  • configuration must be set once during startup.

Startup Configuration

Set global config once before relying on htmx behavior. Common examples:

Installs
2
Repository
lvtd-llc/skills
GitHub Stars
1
First Seen
Jul 12, 2026
htmx-js-api — lvtd-llc/skills