litestar-htmx

Community

HTMX-driven Litestar endpoints for fragment updates

Authoralti3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Build HTMX-driven Litestar endpoints to serve server-rendered HTML fragments for partial updates and progressive enhancement. Do not use for SPA-only JSON APIs that do not exchange HTML fragments.

Core Features & Use Cases

  • Detect HTMX requests via the HX-Request header and return fragment payloads.
  • Coordinate with litestar-templating and litestar-responses to drive client behavior.
  • Use cases include server-rendered components, partial page updates, and dynamic in-place content.

Quick Start

Create an HTMX-enabled Litestar route that returns a minimal HTML fragment when the HX-Request header is present.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: litestar-htmx
Download link: https://github.com/alti3/litestar-skills/archive/main.zip#litestar-htmx

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.