# Uniform::HTMX::PSGI [](https://metacpan.org/pod/Uniform::HTMX::PSGI) [](https://opensource.org/licenses/MIT) Framework-agnostic htmx adapter for the PSGI/Plack ecosystem. `Uniform::HTMX::PSGI` bridges the `Uniform::HTMX` protocol handler with standard PSGI web applications and Plack response objects. It automatically translates CGI/PSGI environment headers (`HTTP_HX_*`) and injects accumulated outbound htmx response headers directly into PSGI response data structures. --- ## Installation Install using `cpanm` or your preferred CPAN client: ```bash cpanm Uniform::HTMX::PSGI ``` --- ## Synopsis ```perl use Uniform::HTMX::PSGI; my $app = sub { my $env = shift; my $htmx = Uniform::HTMX::PSGI->new($env); # Inspect incoming htmx request attributes if ($htmx->is_htmx) { my $target = $htmx->target; # Queue outbound htmx response headers $htmx->res_trigger('itemSaved', { id => 42 }) ->res_reswap('innerHTML'); } my $res = [ 200, [ 'Content-Type' => 'text/html' ], [ '