htmx-realtime
Installation
SKILL.md
htmx Realtime
Use this skill when a page needs updates after initial render without full refresh. Choose the simplest transport that matches update frequency, direction, and operational cost.
Transport Decision
| Need | Use |
|---|---|
| Occasional status refresh for one user | Polling |
| Load until a job completes | Load polling or bounded polling |
| Server-to-client event stream | Server-Sent Events |
| Two-way low-latency messages | WebSockets |
| Multi-user collaborative state | Usually WebSockets, with explicit state reconciliation |
Do not start with WebSockets just because updates feel realtime. Polling is easier to operate and test when updates are infrequent.
Polling
Use polling for job status, notifications, progress panels, and dashboards where a short delay is acceptable.