{"by":"amaury_bouchard","descendants":92,"id":47285876,"kids":[47288806,47293179,47289175,47289856,47292468,47291775,47289458,47287995,47307699,47292157,47292344,47292962,47295691,47289197,47308641,47293099,47298356,47290488,47291197,47291253,47289868,47295323,47294589,47289183],"score":161,"text":"I built µJS because I wanted AJAX navigation without the verbosity of HTMX or the overhead of Turbo.<p>It intercepts links and form submissions, fetches pages via AJAX, and swaps fragments of the DOM. Single &lt;script&gt; tag, one call to `mu.init()`. No build step, no dependencies.<p>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.<p>At ~5KB gzipped, it&#x27;s smaller than HTMX (16KB) and Turbo (25KB), and works with any backend: PHP, Python, Go, Ruby, whatever.<p>Playground: <a href=\"https:&#x2F;&#x2F;mujs.org&#x2F;playground\" rel=\"nofollow\">https:&#x2F;&#x2F;mujs.org&#x2F;playground</a><p>Comparison with HTMX and Turbo: <a href=\"https:&#x2F;&#x2F;mujs.org&#x2F;comparison\" rel=\"nofollow\">https:&#x2F;&#x2F;mujs.org&#x2F;comparison</a><p>About the project creation, why and when: <a href=\"https:&#x2F;&#x2F;mujs.org&#x2F;about\" rel=\"nofollow\">https:&#x2F;&#x2F;mujs.org&#x2F;about</a><p>GitHub: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;Digicreon&#x2F;muJS\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;Digicreon&#x2F;muJS</a><p>Happy to discuss the project.","time":1772873951,"title":"Show HN: µJS, a 5KB alternative to Htmx and Turbo with zero dependencies","type":"story","url":"https://mujs.org"}