awesome-htmx
repository·main·Indexed 25 days ago
https://github.com/rajasegar/awesome-htmxA curated list of resources for htmx, including official links, blog posts, video tutorials, and tools. It features extensive implementation examples across various backends such as Django, ASP.NET Core, Laravel, Go, Spring Boot, FastAPI, Rust, Java, Kotlin, Ruby, and PHP, as well as IDE plugins and debugging tools like htmx-debugger.
What's inside awesome-htmx
- The official htmx ecosystem includes the main website, GitHub repository, social media channels, and community support platforms. Use these for core documentation, issue tracking, and community interaction.
Explore htmx blog posts and tutorials
mainA wide variety of tutorials and articles are available covering different backend integrations and use cases, such as:
- Django: Creating ChatGPT clones, instant database search, infinite scroll, and handling forms/file uploads.
- ASP.NET Core: Integration, anti-forgery tokens, and swapping techniques.
- Laravel: Getting started and implementing table sorting/pagination.
- Go: Building counter apps, infinite scrolling, and skeleton loading.
- General Patterns: Handling JSON API results, lazy loading form fields in Rails, and creating components (counters, flight bookers) without JavaScript.
Read the ASP.NET Core Reimagined with htmx book
mainFor developers working with the .NET ecosystem, the ASP.NET Core Reimagined with htmx Book provides dedicated guidance on integrating htmx with ASP.NET Core.Learn htmx through video tutorials
mainThe following video resources provide conceptual overviews, crash courses, and specific implementation patterns for htmx:
General Overviews & Concepts
- htmx in 100 seconds
- Why learn htmx?
- Carson Gross — Return To Hypermedia: Solving Javascript Fatigue Using Fundamental Web Architecture
- Dynamic Web Pages Without JavaScript? - Intro to HTMX
- htmx: Writing JavaScript to Avoid Writing JavaScript, by Carson Gross
- Simple, Fast Frontends With htmx
- HTMX Crash Course | Dynamic Pages Without Writing Any JavaScript
- From React To HTMX
Framework-Specific Implementations
- Spring Boot: Spring Boot + HTMX = Easy Full Stack
- Django: Django and HTMX (Playlist), Dynamic Django forms without writing any JavaScript, Modal forms with Django+HTMX, Toasts with Django+HTMX
- Thymeleaf: Modern frontends with Thymeleaf and htmx by Wim Deblauwe
- Flask: Active Search UI Pattern with HTMX and FLASK
- Java/HAT Stack: HAT Stack: HTMX, AlpineJS Tailwind (SeaJUG Front End Java 2021)
- Janet/Joy: Making a url shortener, Making a twitter competitor
UI Patterns & Advanced Usage
HTMX Examples for Rust and Go
mainExplore implementation examples of HTMX using the following systems languages:
Rust
- TodoMVC App (Rust, Astra, maud, HTMX, and _hyperscript)
Go
- pagoda (Full-stack starter kit)
- Pushup (Page-oriented web framework)
- Simple Counter App (htmx, elem-go, and Go Fiber)
- Todo App (htmx, elem-go, and Go Fiber)
- Realtime Todo App (WebSockets, HTMX, and DOM-Morphing)
- TodoMVC App (Go, templ, htmx, and _hyperscript)
- GO HTMX
- Probe (Kubernetes cluster interaction)
HTMX Examples for Python (Django, FastAPI, Flask)
mainExplore implementation examples of HTMX using the following Python frameworks:
Python Ecosystem Overview
- awesome-python-htmx (Curated list for Python)
Flask
- Flask HTMLX Material Kit
- flask-htmx-boilerplate (Flask, HTMX, and Tailwind CSS)
- htmxflask
- Flask-Sock HTMX (Combines HTMX with Flask-Sock for self-updating pages)
- flask-htmx-tailwind
Django
- Django HTMLX Material Kit
- django-htmx example app
- django-htmx-fun
- django-htmx-todo
- django-htmx-todo-list
- owela-club
- django-htmx-alpine
- dj_pug_htmx_example
- Lexicon App
- django-tailwind-alpine-htmx
- Modal forms with Django+HTMX
FastAPI
HTMX Examples for ASP.NET, Clojure, and Common Lisp
mainExplore implementation examples of HTMX using the following back-end technologies:
ASP.NET
- htmx-with-aspnet-core
- aspnet-core-htmx-example (CRUD with Razor Pages)
Clojure
- babashka-htmx-todoapp
- panas.example (Implementation of all htmx examples using Babashka)
- contact.app-clj (Hypermedia Systems book implementation)
Common Lisp
HTMX Examples for Ruby, PHP, and Other Languages
mainExplore implementation examples of HTMX using the following languages:
Ruby
PHP
Zig, Lua, and Others
- zig-htmx (Zig + Websockets)
- zig-htmx-tailwind-example
- TodoMVC App (Lua)
- podex (PowerShell/Pode)
- demo-htmx-manifest (YAML/Manifest)
- declswiplweb (SWI-Prolog)
- htmx-modal-example
- quarkus-htmx-todos
- htmx-ai (ChatGPT Code Generation as Backend)
HTMX Examples for JavaScript, TypeScript, AdonisJS, and Express
mainExplore implementation examples of HTMX using the following JavaScript-based technologies:
JavaScript & TypeScript
- Example todo app with the html.js framework
- Primate HTMX module
- TodoMVC App (TypeScript, JSX, express, htmx, and _hyperscript)
AdonisJS
Express
HTMX Examples for Java and Kotlin
mainExplore implementation examples of HTMX using the following JVM languages:
Java
- TodoWebflux Spring Boot HTMX demo
- Spring Boot HTMX integration
- Spring-Boot HTMX
- Frisson: Easy, Powerful Full Stack with Spring Boot and HTMX
- java-htmx-todo (Javalin, htmx, and j2html)
Kotlin
- todo-hda-kt (Hypermedia Driven App with parallel browser tests)
- htmx-ktor (Ktor, kotlin.html, SimpleCSS, PostgreSQL, and Docker)
Find htmx tools and integrations
mainVarious tools and framework-specific integrations are available to enhance htmx development:
Framework Integrations
- Django:
django-htmx(integration),django-js-lib-htmx(scripts). - Go:
htmx-go(net/http compatible),elem-go(HTML building),fiber-htmx(middleware for Fiber). - ASP.NET Core:
htmx.net(Extension Methods, TagHelpers, Htmx.Config). - Rails:
htmx-rails. - Spring Boot:
htmx-spring-boot. - Laravel:
laravel-htmx. - FastAPI:
fasthx(decorator syntax). - Other:
codeigniter-htmx(CodeIgniter 4),CakePHP-htmx(CakePHP),Mojolicious::Plugin::HTMX(Perl).
Development Tools
- IDE/Editor Support:
IntelliJ htmx plugin,htmx-lsp(Neovim/LSP). - Debugging:
htmx-debugger(Chrome extension). - Meta-frameworks:
Hwy(TypeScript metaframework inspired by Remix).
- Django:
Explore HTMX podcasts
mainThe following podcasts cover HTMX from various perspectives, including Python, .NET, and general web development discussions featuring HTMX creator Carson Gross:
- Python Bytes: HTMX - Dynamic and live HTML without JavaScript
- Talk Python: HTMX - Clean, Dynamic HTML Pages
- Devmode.fm: Dynamic HTML with htmx
- Programmers Quickie: htmX
- JSParty: Less JavaScript more HTMX
- HTMLallthethings: JavaScript right in HTML? and HTML All The Things - HTMX, Hyperscript, and More!
- Django Chat: htmx - Carson Gross
- .NET Rocks!: .NET Rocks! - htmx with Carson Gross
- Syntax.fm: Is HTMX a Joke? (#726) and HTMX Web Apps with Carson Gross (#734)