µJS, a 5KB alternative to Htmx and Turbo with zero dependencies
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
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/comparisonAbout the project creation, why and when: https://mujs.org/aboutGitHub: https://github.com/Digicreon/muJSHappy to discuss the project.
HN · launched Mar 7, 2026 · 161 upvotes (top 5%) · 0 views
Niche: software development frameworks · 154 launches, 2 in the last 7 days ▼ -89% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 154 launches in software development frameworks →
Could you build this?
Yes µJS is a compact (~5KB) JavaScript utility wrapping native browser fetch, event listeners, and DOM fragment replacement.
Discussion
20 comments analyzed.
Competitors mentioned: htmx, SPA frameworks
Concerns raised: HTML-over-the-wire solutions lack responsiveness compared to SPAs, Full absolute URLs not recognized as internal links, Forms using non-standard HTTP methods (DELETE) break without JavaScript, Doesn't handle variable base paths well
Feature requests: Opt-in per-link processing instead of global link interception, Support for absolute/full URLs as internal links, Better handling of relative paths with variable base paths
Competitors
Other products that read as similar to this one : 189 launches clear the similarity bar, closest 8 shown.
Attention rank: #7 of 190 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 123 days after the earliest competitor.
- MicroVibe · hn · 2026-02-14 · 7 upvotes · similarity 0.50
- Crust · hn · 2026-03-17 · 95 upvotes · similarity 0.47
- Myjs An accidental pure-Python JavaScript interpreter · hn · 2026-09-05 · 7 upvotes · similarity 0.46
- Nectar, a Rust-like React that compiles to WebAssembly · hn · 2026-07-06 · 29 upvotes · similarity 0.46
- GrainJS · hn · 2025-12-26 · 5 upvotes · similarity 0.45
- I built a declarative layout engine for SVG, Canvas, WebGL · hn · 2026-07-03 · 5 upvotes · similarity 0.44
- Lumiana · ph · 2026-09-07 · 1 upvotes · similarity 0.42
- Vertex.js · hn · 2026-03-01 · 46 upvotes · similarity 0.41
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.