news.volyx.in

Htmx – high power tools for HTML (htmx.org)

728 points by oftenwrong · 2322 days ago · 166 comments on HN

Article summary

Htmx is a JavaScript library that allows developers to access AJAX, CSS Transitions, WebSockets, and Server Sent Events directly in HTML. It provides a simple and powerful way to build modern user interfaces with hypertext. Htmx is small, dependency-free, and extendable, and has been shown to reduce code base sizes by 67% compared to React. The library is the successor to Intercooler.js and has dropped support for Internet Explorer.

Main themes

  • Htmx library
  • Web development
  • AJAX and WebSockets
  • HTML and CSS
  • JavaScript and dependencies
  • Validation and security
  • Extensions and integrations
  • Browser support and compatibility

What commenters say

  • The library is a promising tool for building modern web applications with a simple and intuitive API.
  • Some developers have concerns about the use of custom HTTP headers and the potential for conflicts with future standards.
  • The library's approach to validation, which involves sending requests to server-side endpoints, is seen as a good approach by some, but others argue that client-side validation should be used instead.
  • The library's extension mechanism is seen as a major advantage, allowing developers to easily add new functionality and integrate with other technologies like GraphQL.
  • There are some bugs and issues with the library, but the developer is responsive and open to pull requests and feedback.
  • Some developers have successfully used the library to build complex applications and are enthusiastic about its potential.
  • The library's decision to drop support for Internet Explorer is seen as a reasonable choice by some, but others may be concerned about the potential impact on users who still rely on the browser.