API for HTMX
API for HTMX

API for HTMX

Esteban

An unofficial WordPress plugin that enables the use of HTMX on WordPress. Adds a new endpoint /wp-htmx/v1/ from which you can load any HTMX template.

HTMX is a JavaScript library that allows you to access AJAX, WebSockets, and Server-Sent Events directly in HTML using attributes, without writing any JavaScript. It reuses an “old” concept, Hypermedia, to handle the modern web in a more HTML-like and natural way.

Check the full feature set at here.

This plugin will include the HTMX library by default, locally from the plugin folder. If you enable Alpine.js and/or Hyperscript, they will also be included locally.

The plugin has an opt-in option, not enforced, to include these third-party libraries from a CDN (using the unpkg.com service). You must explicitly enable this option for privacy and security reasons.

Where is the FAQ?

You can read the full FAQ at GitHub.

Suggestions, Support?

Please, open a discussion.

Found a Bug or Error?

Please, open an issue.

I'm amazed not more people are delighted with this!

By texofant on July 20, 2024

This is the *IDEAL* technology to quickly enable features almost without any boilerplate code. This is plugin makes using it a breeze, it just works.
Highly recommended!

  1. Install API-for-HTMX from WordPress repository. Plugins > Add New > Search for: API-for-HTMX. Activate it.
  2. Configure API-for-HTMX at Settings > HTMX Options.
  3. Enjoy.

Reviews

5 out of 5 stars

  • Version: 1.0.0
  • Last updated: 1 month ago
  • Active installations: 0
  • WordPress version: 6.4
  • Tested up to: 6.6.2
  • PHP version: 8.1