Vai al contenuto principale
JobCannon
Tutte le competenze

HTMX & Real-Time

⬢ LIVELLO 2Tecniche
Medio
Impatto sullo stipendio
3 mesi
Tempo di apprendimento
Facile
Difficoltà
12
Carriere
In sintesi

HTMX is a library that extends HTML with attributes enabling AJAX requests, WebSocket support, and DOM updates, all from server-generated HTML templates. Advanced practitioners build real-time collaborative apps, chat systems, and live dashboards with minimal client-side code. Salaries: $100-160k (USA) because HTMX enables 5-10x faster development than React. Mastery takes 2-3 months; the library is small, but server-side integration requires backend skills.

Cos'è HTMX & Real-Time

HTMX is a lightweight JavaScript library that extends HTML with attributes enabling AJAX requests, WebSocket support, and DOM morphing, all without writing JavaScript. Developers write HTML templates on the server, mark elements with HTMX attributes (hx-get, hx-post, hx-trigger, hx-swap), and HTMX handles request/response cycles and DOM updates. Advanced practitioners integrate HTMX with backend frameworks (Django, FastAPI) to build real-time collaborative apps, chat systems, live dashboards, and multiplayer experiences, with minimal client-side code.

🔧 STRUMENTI ED ECOSISTEMA
HTMX libraryServer framework (Django, FastAPI, Rails, Phoenix)WebSocket supportHTML templating (Jinja, ERB, Heex)Browser DevToolsPython/JavaScript for backendCSS (Tailwind)Testing frameworksHTTP client librariesReal-time database (optional)

💰 Stipendio per regione

RegioneLivello baseMidLivello esperto
USA$75k$120k$180k
UK£45k£73k£110k
EU€50k€82k€125k
CANADAC$80kC$130kC$195k

⚖ Confronta con

❓ Domande frequenti

What's the difference between HTMX and React?
HTMX: lightweight library (17KB), server-driven, minimal client state. React: large framework (100KB+), client-driven, replicate all logic client-side. HTMX: faster dev, smaller bundles. React: better for complex interactions (games, drawing). Pick based on your use case.
How do I handle real-time updates with HTMX?
Use server-sent events (SSE) for server→client updates, WebSockets for bidirectional. Client code minimal: `hx-trigger='sse:eventname'` listens for events. Server sends HTML; HTMX swaps it into DOM. Simpler than React subscribers.
Can HTMX work with modern backend frameworks?
Yes. Works with Django, FastAPI, Rails, Phoenix, Node/Express, etc. Any framework serving HTML can work with HTMX. You write server endpoints returning HTML fragments; HTMX makes AJAX requests and swaps responses into DOM.
How do I test HTMX interactions?
Unit tests test backend endpoints (returning correct HTML). E2E tests (Selenium, Playwright) test HTMX behavior (request fired, DOM updated correctly). HTMX is client-side glue; test server logic + browser behavior, not HTMX internals.
Is HTMX production-ready?
Yes. Used by thousands of companies (Shopify, Discord, others). Active development, mature API. Not hype; pragmatic choice for server-driven apps. Ideal for boring, non-SPA products (CRMs, dashboards, admin UIs).

Non sei sicuro che questa competenza faccia per te?

Fai il Career Match — ti suggeriremo i percorsi giusti.

Trova le competenze adatte a te →

Trova il tuo percorso di carriera ideale

Abbinamento basato sulle competenze per 2521 carriere. Gratis, ~3 minuti.

Fai il Career Match — gratis →