Build modern web apps with the power of HTML

HTMX gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext.

Examples

Interactive demos will appear here

0

GitHub Stars

0

Sites using HTMX

0

Github Repositories

0

Lines of Code

Why Choose HTMX?

Powerful features that make web development simple and efficient

Lightning Fast

High performance with minimal overhead. HTMX is only ~14kb min.gz'd and has no dependencies.

HTML-First

Extend HTML with attributes. No complex JavaScript frameworks or build steps required.

Easy Integration

Works with any backend. Drop it into existing projects without major architectural changes.

AJAX Made Simple

Make AJAX requests with simple HTML attributes. Handle responses declaratively.

Real-time Features

Built-in support for WebSockets, Server-Sent Events, and real-time updates.

Mobile Ready

Responsive and mobile-friendly out of the box. Works great on all devices.

Simple. Powerful. Elegant.

HTMX allows you to access modern browser features directly from HTML, rather than using JavaScript. This example shows how easy it is to make an AJAX request and update part of your page.

<button hx-post="/clicked" hx-trigger="click" hx-target="#parent-div" hx-swap="outerHTML"> Click Me! </button>

Click the button below to see HTMX in action!