---
id: frontend-htmx-hotwire
title: HTMX / Hotwire — Server-driven UI
category: Coding
status: draft
source_trust_level: B
verification_status: conceptual
created_at: 2026-05-09
updated_at: 2026-05-09
tags: [frontend, htmx, hotwire, vibe-coding]
tech_stack: { language: "HTML / Server", applicable_to: ["Frontend"] }
applied_in: []
aliases: [HTMX, Hotwire, Turbo, Stimulus, server-driven UI, MPA renaissance, Phoenix LiveView]
---
# HTMX / Hotwire / Phoenix LiveView
> SPA 의 반발. **Server 가 HTML 보냄, JS 최소**. HTMX (any backend), Hotwire (Rails), Phoenix LiveView (Elixir). 작은 bundle + 빠른 dev.
## 📖 핵심 개념
- HTML over the wire: server → HTML fragment.
- AJAX without JS: HTMX attribute.
- Stateful server: WebSocket 으로 push.
- Less JS: 인터랙션 만 client.
## 💻 코드 패턴
### HTMX 기본
```html
42
```
→ JS 0. Server 가 HTML 반환 → DOM swap.
### Triggers
```html
Loading...
...
```
### Swap modes
```html