litestar-htmx
HTMX Integration for Litestar
Decision gist · record as of 2026-08-14
Yes, if you are already using Litestar and want HTMX support with minimal setup and no extra dependencies. The permissive MIT license and low install friction make it a straightforward addition. However, the aging maintenance status means you should verify compatibility with your Litestar version and be prepared to maintain a fork if upstream support lags.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Maintenance status is aging—last release was 429 days ago—so expect slower response to issues or breaking changes.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2025-06-11 (429 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,878,246 downloads/mo, #3,468 on PyPI
Alternatives
Verify before relying
pip install litestar-htmx
from litestar import Litestar
from litestar_htmx import HTMXPlugin
app = Litestar(plugins=[HTMXPlugin()])- Whether the package remains compatible with recent versions given the aging maintenance status.
- What specific HTMX features or patterns the plugin supports beyond basic integration.
- Whether documentation at docs.litestar.dev/latest/usage/htmx.html remains current and complete.
What it is and what it does
litestar-htmx is a plugin that bridges HTMX and Litestar, a modern Python web framework. It provides server-side tooling to handle HTMX requests and responses, allowing you to build interactive web interfaces by returning HTML fragments from your server rather than building a separate JavaScript frontend. The plugin handles the mechanics of recognizing HTMX requests, managing response headers, and integrating with Litestar's request/response cycle.
The package has no runtime dependencies and supports Python 3.9 through 3.12. It is permissively licensed under MIT. However, the last release was 429 days ago, so the project is in aging maintenance status—you should verify compatibility with your target Litestar version before adopting it.
Use it for
- Build interactive web pages that update sections of the DOM without full page reloads, driven from server-side handlers.
- Add HTMX-powered form validation and submission that returns HTML fragments instead of JSON.
- Create dynamic table filtering, sorting, or pagination where the server renders updated HTML in response to user interactions.
- Integrate HTMX into an existing Litestar application to add interactivity without writing frontend JavaScript.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using Litestar and want HTMX support with minimal setup and no extra dependencies.
The permissive MIT license and low install friction make it a straightforward addition. However, the aging maintenance status means you should verify compatibility with your Litestar version and be prepared to maintain a fork if upstream support lags.
Install
litestar-htmx on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance status is aging—last release was 429 days ago—so expect slower response to issues or breaking changes.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install litestar-htmx
from litestar import Litestar
from litestar_htmx import HTMXPlugin
app = Litestar(plugins=[HTMXPlugin()])
Verify before relying
- Whether the package remains compatible with recent versions given the aging maintenance status.
- What specific HTMX features or patterns the plugin supports beyond basic integration.
- Whether documentation at docs.litestar.dev/latest/usage/htmx.html remains current and complete.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 429 days since the last release |
| First released | |
| Downloads | 1,878,246 / month, #3,468 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: InternetTopic :: Internet :: WWW/HTTPTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python Modules |
Evidence: litestar_htmx-0.5.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “htmx litestar integration”
- litestar-htmxIntegrates HTMX into Litestar web applications, enabling…
- jinja2-fragmentsRenders individual Jinja2 template blocks as HTML fragments instead…
- django-htmxProvides Django integration utilities for htmx, enabling server-side…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also django-htmx · litestar · python-fasthtml · jinja2-fragments · sphinxcontrib-jsmath · Flask-Assets · advanced-alchemy · django-leaflet · httpx-ws · jinja_partials