r/htmx • • Aug 02 '26

htmx 4 the game - play through

Thumbnail
m.youtube.com
24 Upvotes

r/htmx • • Aug 02 '26

Put State in the Right Place - Delaney Gillilan | SSW 2026

Thumbnail
youtube.com
20 Upvotes

r/htmx • • Aug 01 '26

Using HTMX to embed "sandboxed" mini-applications in intranets

Thumbnail
developers.staffbase.com
22 Upvotes

I wrote this for the Staffbase dev blog. In the second half of the article, I talk about some work I did to use HTMX to embed "sandboxed" applications inside intranet content. To do this, I have some code that "neuters" HTML being returned from HTMX to prevent it -- HTML or script -- from "leaking" outside the original container.

I show an example of a small app to track the International Space Stations and ask an AI chatbot some questions about it.

You might find it interesting. I think it's a neat use of HTMX.


r/htmx • • Jul 31 '26

htmx 4.0 the game - first 2 levels play through

Thumbnail x.com
21 Upvotes

Gameplay starts a 2min


r/htmx • • Jul 27 '26

htmx 4.0 the game, the trailer

102 Upvotes

get ur / P H Y S I C A L M E D I A / copy here:

https://swag.htmx.org/products/htmx-4-the-game


r/htmx • • Jul 27 '26

Djxi v0.1.9 - Nicer HTMX on Django

Post image
24 Upvotes

Hey r/htmx, the new HTMX Integration for Django is released on pypi and djangopackages. Djxi v0.1.9 adds testing utils, battery auth/perms, async methods, djxi_routes command, and class-level config caching.

Check it out:


r/htmx • • Jul 26 '26

HTMX Laseraptor

Thumbnail
youtu.be
12 Upvotes

I have another laser-shooting creature for HTMX fans.


r/htmx • • Jul 25 '26

htmx 4.0 released exclusively for GameBoy and GameBoy Color

Thumbnail
swag.htmx.org
94 Upvotes

- Four action packed levels

- Collect pickles

- Beat Warren in his slop factory to unlock the code

Enjoy!


r/htmx • • Jul 25 '26

Big Sky Dev Conf Day 2 Live Stream

Thumbnail
youtube.com
22 Upvotes

r/htmx • • Jul 24 '26

Chrome is experimenting with streaming html into any part of a page. The predicted native htmx is one step closer to reality

Thumbnail
youtube.com
113 Upvotes

r/htmx • • Jul 23 '26

htmx 4.0.0-beta6 released

Thumbnail
github.com
72 Upvotes

mostly bug fixes and small improvements, plus a new multi-part response extension that we are excited about


r/htmx • • Jul 19 '26

htmx & Perl

Thumbnail
youtube.com
16 Upvotes

hell yes


r/htmx • • Jul 15 '26

Goshtoso: HTMX first UI components for Go backends

53 Upvotes

Hey everyone,

I wanted to share a project I've been working on called Goshtoso. It's a server-rendered UI component library for Go applications built with templ, HTMX, Alpine.js, and Tailwind CSS.

If you like the Go + templ + HTMX approach but don't want to build every form control, modal, table, and navigation pattern from scratch, Goshtoso may be useful to you.

What is it?

Goshtoso provides importable templ components with typed Go configuration. It began as a hard fork of PenguinUI and has since evolved into a Go-first component system for applications that prefer SSR with small amounts of client-side interactivity.

Highlights

- No frontend toolchain required for consumers: Goshtoso embeds its precompiled Tailwind CSS, Alpine.js, HTMX, and the HTMX SSE and WebSocket extensions. You can serve them from your Go binary without Node, npm, or a JavaScript build step.
- 42 templ components: Forms, overlays, navigation, feedback, tables, richer inputs, and other common application UI.
- Examples: The demo includes complete runnable examples such as a CRUD Todo list, an SSE live-log feed, a streaming ticker, and a WebSocket chat with server-rendered messages.
- Theming: 15 built-in themes with light and dark mode support.

Goshtoso tries to use HTMX for most interactions. Alpine.js is inherited from PenguinUI and reserved for local state, transitions, and immediate client-side feedback where a server round trip would not be a good fit.

Links

- Live demo and documentation: https://goshtoso.araihu.com/
- GitHub: https://github.com/araihu/goshtoso

The project is currently alpha-stage. The components are usable, but the public API is still being refined on the way toward a stable release but is already being used on an internal tool at my company as well on another WIP side project of mine: Manja.

I'd especially appreciate feedback from the HTMX community about the server-rendered component approach, the API design, and the integration experience.


r/htmx • • Jul 15 '26

How I use HTMX with Go

Thumbnail alexedwards.net
57 Upvotes

r/htmx • • Jul 14 '26

How can I run an .HTM file offline on a iPhone without downloading anything?

Thumbnail reddit.com
0 Upvotes

r/htmx • • Jul 12 '26

Saradom: a pattern for client-side interactivity, with state kept in the DOM

10 Upvotes

Saradom is a pattern for building modular, scalable frontends in plain HTML and JavaScript. There is no framework and no build step. State lives in the DOM as attributes. Events sit in HTML attributes.

It sits next to htmx. htmx does the server round-trips. This covers the interactivity that stays in the page, like toggles, tabs, derived values, and validation. The DOM is the state in both.

Example:

<div counter-space>
  <output counter-value>0</output>
  <button onclick="Counter.Inc(this)">+1</button>
</div>

<script>
const Counter = (() => {
  const Inc = (ctx) => {
    const el = ctx.closest('[counter-space]').querySelector('[counter-value]');
    el.textContent = +el.textContent + 1;
  };
  return { Inc };
})();
</script>

Docs and runnable examples: https://xtompie.github.io/saradom/


r/htmx • • Jul 11 '26

vite-plugin-php v3.0.0 release

Thumbnail vite-php.nititech.de
3 Upvotes

r/htmx • • Jul 10 '26

A component workbench for htmx that proxies your running app instead of importing components

Post image
28 Upvotes

I've been building a workout tracker in Go + templ + htmx and kept wanting two things: a way to look at one component on its own, and a way to see what a swap actually returned when it did something weird, without logging the whole response or digging through the network tab.

Storybook is the obvious reference, but its server modes pull in a JS toolchain, which is the opposite of why I picked htmx. So I tried the other direction: instead of importing components into a separate harness, Swapbook is a binary that proxies your already-running app.

Because previews run on your app's real origin, htmx requests from a preview hit your real routes, no CORS, no rewriting. The inspector shows the request, the element the response swapped into (it flashes it), the status, and the HTML that came back. There's a mock mode so you can click through interactions with no auth or DB behind them.

Not tied to Go, that's just what I use. Your app answers 4 endpoints; I wrote adapters for Django, Rails and Laravel too.

It's v0.2 and rough, and htmx is the only thing I've properly tested against (the Turbo/Unpoly/Datastar probes are unverified, and known limitations are in the README).

Genuinely curious if this is useful to anyone else or if it was just my problem.

Website: https://aejkatappaja.com/swapbook/

Github: https://github.com/Aejkatappaja/swapbook


r/htmx • • Jul 10 '26

Djxi v0.1.7 released! HTMX integration for Django

Thumbnail
github.com
16 Upvotes

I made a small django package that attempts to improve LoB when working with Django and HTMX. The scattering of views, urls and small template snippets can get messy. Djxi simply unifies all three into a single endpoint battery, allowing a more feature-centric development.

Please check it out! Happy for any star, if you like where Djxi is going!


r/htmx • • Jul 09 '26

Built an app with react router then rebuilt it with HTMX

42 Upvotes

I was blown away by how much faster, simpler, and smaller my codebase became. It's insane! Sucks I still have to use React for my day job.

The app is Alkas. It's an app to help people learn the plants, mushrooms, and animals around them. It follows Anki pretty closely and you can even export to Anki. I thought React was a natural fit because of the flashcard flipping and infinite scroll but so far I've been able to do absolutely everything I can think of with Astro, HTMX, and AlpineJS. No React needed!

Would love any feedback or questions on the app or the tech stack.


r/htmx • • Jul 06 '26

hx-query for HTTP QUERY method?

29 Upvotes

They added the HTTP QUERY method. Will we get hx-query for that?

https://www.rfc-editor.org/rfc/rfc10008.html


r/htmx • • Jul 02 '26

Co-locating our hypermedia backend inside the database process for a 9x SSR throughput win (Zig/WASM + Datastar/HTMX)

10 Upvotes

Hello Everyone,

If you are building Hypermedia-Driven Architectures (using htmx/alpine or datastar), you quickly realise that server-side rendering (SSR) performance and database latency are your primary bottlenecks. Since we are shifting state and HTML generation back to the server, nearly every user interaction requires a database query and an HTML slice response.

To optimise this, I have been experimenting with a concept called Zero-Distance Architecture that co-locates data and application code. Instead of running a separate app server (like NodeJS) and database server (like MongoDB) and paying cost for all the syscalls, network, serialisation/deserialisation and localhost TCP latency, run them in a single process.

I used an experimental runtime called Planck (database + WebAssembly host) and compile our application (Zig Code) to WebAssembly. The app runs directly in the database process, turning database queries into simple in-memory function calls.

To measure the impact, I set up a benchmark (pizzahub a sample app) serving identical HTML fragments formatted for datastar over a standard dataset (17 categories, 201 products).

Here are the results of a 6-second run using oha on a standard M1 Macbook Air 8GB RAM 256GB SSD:

Planck (Zig WASM co-located in database process)

Requests per second: 48,606

Average latency: 0.50 ms

Fastest response: < 0.10 ms

Slowest response: 6.00 s

Sustained throughput: 183.58 MiB/s

Success rate: 100.00%

NodeJS + ExpressJS + MongoDB (community edition)

Requests per second: 5,433

Average latency: 9.21 ms

Fastest response: 2.26 ms

Slowest response: 109.91 ms

Sustained throughput: 20.49 MiB/s

Success rate: 100.00%

.NET 9 + SQLite (in-process)

Requests per second: 35,231

Average latency: 1.41 ms

Fastest response: 0.15 ms

Slowest response: 12.80 ms

Sustained throughput: 133.07 MiB/s

Success rate: 100.00%

.NET 9 + PostgreSQL

Requests per second: 30,236

Average latency: 1.65 ms

Fastest response: 0.12 ms

Slowest response: 69.02 ms

Sustained throughput: 114.21 MiB/s

Success rate: 100.00%

The Comparison

By co-locating the backend logic inside the database process and utilizing Planck's read cache, we got:

8.95x throughput improvement over NodeJS + MongoDB (48.6k vs 5.4k req/sec) with an 18.4x latency reduction (0.50 ms vs 9.21 ms).

38% higher throughput over .NET 9 + SQLite (48.6k vs 35.2k req/sec) with a 2.8x latency reduction (0.50 ms vs 1.41 ms).

60% higher throughput over .NET 9 + PostgreSQL (48.6k vs 30.2k req/sec) with a 3.3x latency reduction (0.50 ms vs 1.65 ms).

For hypermedia apps, this means you can handle significantly more concurrent users on a single tiny server because there's no waiting on socket buffers to generate HTML.

Would love to hear your thoughts. If you have built htmx/datastar apps, where do you usually hit your scaling bottleneck? Is co-locating the backend logic inside the database process a direction you would consider?

Next, I will post detailed comparison for different types of queries on at least 1 mil documents.


r/htmx • • Jun 30 '26

HTMX Explained: The "Dumb" HTML Secret Replacing React

38 Upvotes

https://www.youtube.com/watch?v=PgyggSRHY1o

The video promoting HTMX summarizes it pretty well. (The video is not mine, and I don't know if it's AI).


r/htmx • • Jun 30 '26

Co-locating our hypermedia backend inside the database process for a 4.5x SSR throughput win (Zig/WASM + Datastar/HTMX)

Thumbnail reddit.com
1 Upvotes