litestar-htmx

Installation
SKILL.md

litestar-htmx

litestar-htmx is the standalone Litestar integration for HTMX. Version 0.5.0 ships the litestar_htmx import package with request helpers, an optional application plugin, template responses, and typed HTMX response-header helpers.

Code Style Rules

  • Import the integration from litestar_htmx, never litestar.plugins.htmx; Litestar no longer owns this package's import surface.
  • Use HTMXRequest when handlers inspect HTMX request headers.
  • Return template fragments from HTMX endpoints; keep full-page routes and fragment routes distinct.
  • Use the response classes for HX-* headers; do not assemble those headers by hand.
  • Keep browser-side HTMX extensions separate from this server package.

Quick Reference

Installs
6
GitHub Stars
13
First Seen
May 18, 2026
litestar-htmx — litestar-org/litestar-skills