bigskysoftware

htmx

bigskysoftware

A lightweight (~14KB gzipped), dependency-free JavaScript library that enables AJAX, CSS Transitions, WebSockets, and Server Sent Events directly in HTML using attributes, extending HTML as a hypertext.

v4.0.0
Published at
Aug 28, 2026
49,637
Stars
1,262
Download
Synced at
10m ago

Latest release

v4.0.0Aug 28, 2026, 01:00 PM
Downloads slow? Switch the source anytime above

README

Project Overview

htmx is a lightweight, dependency-free JavaScript library that allows you to access 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. By removing arbitrary constraints — such as only <a> and <form> being able to make HTTP requests — htmx completes HTML as a hypertext.

Key Features

  • Make AJAX requests directly from HTML attributes (hx-post, hx-get, etc.)
  • Support for CSS Transitions
  • Support for WebSockets and Server Sent Events
  • Swap page content with hx-swap
  • Lightweight (~14KB gzipped)
  • No external dependencies
  • Extensible with plugins

Target Audience

  • Web developers who want to build modern UIs without writing extensive JavaScript
  • Teams seeking simple, efficient frontend development
  • Developers who want to leverage the full power of HTML as a hypertext

Quick Start

  1. Install via npm: npm install htmx.org --save
  2. Or include via CDN
  3. Add hx-post, hx-swap, and other attributes to your HTML elements
  4. Launch your app and experience AJAX-driven interactivity

Core Advantages

  • Extremely small footprint (14KB gzipped) for fast loading
  • Zero dependencies for easy integration
  • Preserves the simplicity of HTML while enabling modern interactivity
  • Progressive enhancement for seamless integration with existing projects

System Requirements

  • OS: Cross-platform (Web application)

Release history

Sort