Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lcmen/hotwire-htmx-unpoly

Simple TODO application built with Rails to compare Hotwire, HTMX and Unpoly
https://github.com/lcmen/hotwire-htmx-unpoly

hotwire-turbo htmx rails unpoly

Last synced: 1 day ago
JSON representation

Simple TODO application built with Rails to compare Hotwire, HTMX and Unpoly

Awesome Lists containing this project

README

        

# Hotwire vs HTMX vs Unpoly

Simple TODO application built with Rails to compare Hotwire, HTMX and Unpoly.

All variants share the same controller. Difference lies in views and JavaScript files.

## HTMX

It uses `head-support` extension to merge heads and `preload` to preload links on mousedown.

Modal is powered by native `dialog` element with small sprinkle of JavaScript via Alpine.js component.

Redirects are made with `HX-Location` header.

## Hotwire

Scroll is preserved through `before-visit` and `load` event handlers.

Modal is powered by native `dialog` element with small sprinkle of JavaScript via Stimulus controller.

Redirects are made with custom stream action.

## Unpoly

No extra code, just configuration for default animations.