µJS, a 5KB alternative to Htmx and Turbo with zero dependencies
Show HN: µJS, a 5KB alternative to Htmx and Turbo with zero dependencies
Operating in show hn launch, µJS, a 5KB alternative to Htmx and Turbo with zero dependencies operates.
Profile
I built µJS because I wanted AJAX navigation without the verbosity of HTMX or the overhead of Turbo.It intercepts links and form submissions, fetches pages via AJAX, and swaps fragments of the DOM. Single <script> tag, one call to `mu.init()`. No build step, no dependencies.Key features: patch mode (update multiple fragments in one request), SSE support, DOM morphing via idiomorph, View Transitions, prefetch on hover, polling, and full HTTP verb support on any element.At ~5KB gzipped, it's smaller than HTMX (16KB) and Turbo (25KB), and works with any backend: PHP, Python, Go, Ruby, whatever.Playground: https://mujs.org/playgroundComparison with HTMX and Turbo: https://mujs.org/comparisonAbou
As a business in show hn launch, µJS, a 5KB alternative to Htmx and Turbo with zero dependencies is listed here with the public details available about it.
Its current recorded stage is Show HN launch.
| Sector | Show HN launch |
|---|---|
| Stage | Show HN launch |
Website: mujs.org
Browse related
Create a free account