Big Sky Dev Conf 2027
Hey all, we are running Big Sky Dev Conf again in '27, would love to see htmx-folks there. It's a general tech conference, but there is usually an htmx talk or two.
Hey all, we are running Big Sky Dev Conf again in '27, would love to see htmx-folks there. It's a general tech conference, but there is usually an htmx talk or two.
r/htmx • u/iainmaitland • 1d ago
I shared fastAPI-freeze here yesterday (it's a static site generator for FastAPI), and figured I'd also share the project that led to it here.
paretoparty.com is a simple tool for navigating buying decisions, pareto fronts are a bit of a meme, especially for benchmarking LLMs but I figured they'd also be useful for navigating apple's product line. It's inspired by this fun article https://www.mayerowitz.io/blog/mario-meets-pareto
Under the hood It's a static site with HTMX and AlpineJS driving the interactions (there's also some threeJS in there if you want to go multi-dimensional with your analysis). It goes some way to showcasing how you can build some nice data-viz sites using the stack.
If you're interested in more FastAPI and HTMX interplay there's an example blog here too: https://github.com/listfold/fastapi-freeze/blob/main/examples/blog/main.py
You can see you can get an entire blog in 95 lines, without leaving python-land and without worrying about paying for a server someplace, (though hybrid "frozen routes" alongside route handlers that do compute is also supported)...
I maintain CoreUI, a Bootstrap-based UI kit with vanilla JS components (multi-select, date pickers, chips, dialogs, and so on). We want it to work properly with htmx, and before we lock in an API, I'd like to hear how you actually wire up component libraries today.
What we measured on our own components with htmx 2 and 4:
htmx.onLoad plus a loop of getOrCreateInstance calls, the same story as Bootstrap.What we prototyped:
initAll(root) after a swap, plus disposeAll(root) once the old content has left the DOM. This fixes normal swaps (innerHTML, outerHTML, OOB) and the scroll lock.historyCacheSize = 0, or disposing before the snapshot and re-initializing right after.htmx:beforeSwap kills hx-preserved widgets on normal swaps, and disposing inside htmx:beforeCleanupElement breaks some swaps.My questions:
historyCacheSize = 0? Has third-party widget DOM in the snapshot ever bitten you?Bad experiences with other UI kits are very welcome. That's exactly what I'm trying to avoid repeating.
r/htmx • u/prafandy • 2d ago
Most examples for a dropdown, a modal or tabs still need a JavaScript library. But plain HTML can do most of this on its own now, and that fits htmx pages well, since they're rendered on the server anyway.
popover<dialog> with commandforNo script to load, nothing to set up again after an htmx swap, and it keeps working with JavaScript off.
I wrote up how each one works, with the HTML: https://alloyhtml.com/articles/dropdown-dialog-tabs-no-javascript/
Disclosure: the examples use Alloy CSS, a free stylesheet I made. The HTML works without it, so you can copy it into your own pages.
Curious what you use for this today: Alpine, hyperscript, or plain HTML?
Update: I genuinely had no idea 😅 The project is now called ilek. All the old links redirect to the new URLs.

Here's how I've put it together:
#[action] keeps the endpoint and form fields in one type, shared by the handler and markup.if editing branches.partial! started with explicit selectors: partial! { ("#item", swap) => markup }, or just "#item" => markup for the default swap. That still works. Now #[fragment] lets me write partial! { item_row(&item) }: the fragment supplies the target for an outerHTML replacement. There are helpers like Part::before_end(...) for other swap modes, too. Partials can contain other partials, so a helper can return a whole set of updates and client-side events to include in a larger response.Paged handles cursor pagination. The backlog example calls the same list view for the initial page and subsequent updates, without branching on HX-Request.Try it yourself in the browser — no setup needed.
r/htmx • u/wimdeblauwe • 9d ago
r/htmx • u/RemoteCollection7197 • 14d ago
Hey everyone,
I wanted to build a fast, lightweight GitHub activity and contribution visualizer without relying on a bulky React/Next.js frontend.
Stack & Architecture:
You can try any username on the live demo here:
🔗 Live Demo: https://githubactivitytracker.vercel.app/
📁 GitHub: https://github.com/itsVrushal/Github-activity-trackerWould love feedback on the Go handler structure and cache strategy!
r/htmx • u/Agile_Pressure_7430 • 25d ago
What is hyperscript? What is it used for? https://hyperscript.org/
r/htmx • u/Personal-Edge3043 • 26d ago
Maybe this is not the right place, but I’m looking for a storybook like site that defines the design system for an app so I can use it with ai agents. One that I can use with htmx and maybe alpine.js.
r/htmx • u/recepkutuk • 27d ago
Hey everyone,
Like most of you here, I love the HTMX philosophy of "Hypermedia as the Engine of Application State." But when it comes to styling admin dashboards, internal tools, or CRUD forms, the modern frontend ecosystem tries to force us right back into the SPA tax. We shouldn't need a heavy node_modules folder or a complex Vite build config just to get an accessible data table, dialog modal, or form.
So I built Canon. It’s a plain-HTML/CSS component library designed specifically for the server-rendered, hypermedia world.
Instead of relying on a Javascript framework, the markup is the contract. Your backend templates (Go, Django, Rails, Laravel, etc.) output semantic HTML with simple custom data-attributes, and the CSS engine does the rest.
Why it pairs perfectly with HTMX:
I wanted something where a form written today will still work and look perfect in 10 years without playing dependency whack-a-mole.
You can learn more about Canon and see the components at work on:
🔗 Canon documentation: https://recepkutuk.github.io/canon/reference/introduction.html
🔗 GitHub Repo: https://github.com/recepkutuk/canon (MIT Licensed)
I'd love to get the community's feedback on this approach! What components are missing that you usually find yourself rewriting from scratch when building HTMX apps?
I'm building an ERP/eCommerce hybrid that has as rule "all logic run server side", so htmx has been a great fit.
Now I have certain input that will benefit greatly from a control that behaves like a spreadsheet (but is inline and is the keyboard, input, tab jumps, etc that I care about more like https://handsontable.com than the full thing), where basically I need to do a formula entry per row, but not client-side calc or validations.
So like:
Price: [ 10]
[Name, Percent, = , running total
Tax , 10% , 1 , 11;
TOTAL: 11
]
which spreadsheet control can I use that integrate well with htmx? the running of the formula must be server side, also autocomplete inside the name field to fill the percent.
r/htmx • u/Accomplished_Flan_76 • 28d ago
NextLiftoff (https://nextliftoff.com) is my side project: a free tracker for every rocket launch in the world, with countdowns in your own time zone, live streams and a 3D globe that replays each flight. It's Go's standard library and html/template on the server, no framework and no build step. htmx only appears in 7 of the 39 templates, but those are exactly the pages people keep open during a launch, so it does a lot of work for its size.
The trick I like most: a launch page polls itself. Close to liftoff the page sends hx-get to its own URL every 30 seconds and takes two pieces out of the answer, the header with hx-select and the details lower down with hx-select-oob. I never had to write a separate fragment endpoint, so the polled parts can't drift away from the real page. The YouTube player sits outside both pieces, which keeps it from restarting on every refresh.
The lists (launches, rockets, providers, the archive) are ordinary forms. hx-get sends them to the same address and swaps the results, hx-replace-url keeps the link shareable, and the search box waits 300 ms after typing.
A few things took longer than expected:
htmx is configured through the htmx-config meta tag with eval and script tags turned off, since the site doesn't allow inline scripts.
Most of the code was written with help from Claude Code. If anyone has a cleaner way to keep UI state like open sections across polling swaps, I'd like to hear it.
r/htmx • u/lordph8 • Nov 03 '26
Hi r/htmx,
I've been building Skolshield, a system Swedish schools use to report incidents (hallway conflicts, bullying, rule violations) and handle the cases that follow, up to the student health team meeting. It's Django + HTMX with no React or Vue anywhere. It has been a side project for over a year, built while working full time with two young kids.
Some numbers to give you a sense of the size: about 340 templates use HTMX, with around 940 hx-targets, 700 hx-gets and 330 hx-posts. My own JavaScript is about 1,800 lines across 14 files plus some small inline scripts. Most of that is a mention editor, file permission handling and a few UI helpers.
What worked
- One view, three templates. Each page has a full template for direct URL visits, an HTMX version for sidebar navigation (header + content, no base layout), and a partial for search, filter and pagination updates. The view checks HX-Request and the query params to decide which one to return. It's boring, but every page behaves the same way, and hx-push-url keeps the back button and shareable links working.
- Inline editing everywhere. I retired the old "edit page" entirely. You click a field, it swaps to an input, and saving swaps it back. Users like it a lot more.
- Tabs, modals and live lists without a frontend framework. Everything renders on the server, so permissions are checked in one place. That matters when the data is about kids.
- Toasts via Django messages. Views just use messages.success(...) and the response turns them into toasts, whether it's a full page or an HTMX partial.
What bit me
- Bootstrap modals + HTMX swaps. If a modal gets swapped into the page inside a container, it renders under its own backdrop and the whole screen locks. I ended up with a small helper that moves each modal to <body> after its markup, and a rule that every new modal must call it.
- hx-confirm looks like 1999. The browser's native confirm dialog looked out of place, so I replaced it with the app's own modal.
- Session timeout with background requests. Polling and heartbeat requests kept sessions alive forever, and an expired session returned a login page into a tiny div. Now the heartbeat marks itself as an HTMX request, the server knows it's not user activity, and an expired session shows a proper lock screen instead of a page in a page.
- Template comments. This one is really Django, but HTMX made it obvious: a multi-line {# #} comment gets rendered as visible text in partials.
Stack, briefly: Django 5.2, PostgreSQL, HTMX, Bootstrap 5, Celery + Redis, CapRover on Hetzner, with everything EU-hosted. I wrote more about the backend, SharePoint integration and ops side over on r/django: https://www.reddit.com/r/django/comments/1xmogay/i_built_a_school_incident_and_student_welfare/
There are demos, including one set up for a municipality with several schools and a central student health team: https://skolshield.se
I'd like to hear how others handle modals and toasts with HTMX, since I'm sure my approach isn't the only one. I'm also happy to answer questions.
r/htmx • u/animesh_aotr • Nov 03 '26
Minu is a small HTML fragment loader for apps that already render HTML on the server. It is 4.0 KB gzipped, has zero runtime dependencies, and is MIT licensed.
It covers the parts that come up most in small apps:
A small example:
<div minu-get="/widgets/price" minu-trigger="every 5s" minu-target="#price"></div>
<div id="price">$0.00</div>
The server returns an HTML fragment. That is the whole contract.
What it does not do: routing/history, morph or diff swaps, WebSockets. The default build strips scripts and inline handlers, but it is not an XSS boundary. Use minu/secure for untrusted HTML. htmx is still the better choice if you need its extension ecosystem or history support.
Links: https://aotr.github.io/minu/ https://github.com/aotr/minu https://www.npmjs.com/package/minu
I am the author. I would like feedback on two things: does the trigger grammar cover what you actually use, and is the minu-oob syntax clear? I am not trying to replace htmx everywhere.
Happy to announce htmx 4.0.1. Mostly bug fixes and corner cases.
Enjoy!
r/htmx • u/-jeasx- • Nov 02 '26
I am ambivalent towards AI and benchmarks like this are usually fraught with interpretive peril, but, hey, htmx on top baby...
r/htmx • u/sliemeobn • Oct 31 '26
I maintain ElementaryHTMX, which adds htmx attributes to Elementary, a Swift HTML library. It now supports htmx 4, including HCON, <hx-partial>, explicit inheritance, and the new SSE and WebSocket extensions.
Typed swaps, modifiers and status overrides:
form(
.hx.post("/messages"),
.hx.target("#messages"),
.hx.swap(.beforeEnd, [.scroll(.bottom), .settle("100ms")]),
.hx.status("422", [.swap(.innerHTML), .target("#errors")])
) {
input(.name("text"), .required)
button { "Send" }
}
// <form hx-post="/messages" hx-target="#messages" hx-swap="beforeend scroll:bottom settle:100ms" hx-status:422="swap:innerHTML target:#errors">...</form>Multi-target updates with <hx-partial>:
hxPartial(.hx.target("#messages"), .hx.swap(.beforeEnd)) {
div { "New message" }
}
// <hx-partial hx-target="#messages" hx-swap="beforeend"><div>New message</div></hx-partial>Explicit inheritance:
div(.hx.confirm(.inherited, "Are you sure?")) {
button(.hx.delete("/account")) { "Delete account" }
}
// <div hx-confirm:inherited="Are you sure?"><button hx-delete="/account">Delete account</button></div>Global config:
meta(htmxConfig: [.defaultSwap(.innerMorph), .defaultTimeout(5000)])
// <meta name="htmx-config" content="defaultSwap:innerMorph defaultTimeout:5000">Repo, with Hummingbird and Vapor example apps: https://github.com/elementary-swift/elementary-htmx
r/htmx • u/arkumar • Oct 26 '26
r/htmx • u/ExcitingStatement580 • Oct 25 '26
A little over a month ago, I shared my original HTMX Dashboard project here and received some great feedback and support from this group.
I’ve spent the last few weeks completely overhauling the tool based on those ideas. Along with renaming the project to HTMX Event Monitor to better reflect what it does, here is what’s new:
README.md has been greatly enhanced with detailed initialization parameters and usage tips.Thanks again to everyone who shared thoughts on the original post!

r/htmx • u/myfear3 • Oct 24 '26