Show HN: µJS, a 5KB alternative to Htmx and Turbo with zero dependencies

2026-03-078:5916088mujs.org

Accelerate your website without a JS framework. Lightweight AJAX navigation library — 5KB gzipped, zero dependencies, drop-in compatible.

Prefetch on hover, no full page reload, built-in progress bar. Navigations feel instant.

Single file, ~5 KB gzipped, zero dependencies. No build step required.

Works with any backend: PHP, Python, Ruby, Go, Node.js… No server changes needed.

Update multiple page fragments in a single request. Ideal for dashboards and complex layouts.

Any element, any event. Live search, polling, focus actions — with built-in debounce.

GET, POST, PUT, PATCH, DELETE on links, buttons, and forms.

Real-time updates via Server-Sent Events. Combine with patch mode for multi-fragment streaming.

View Transitions API, DOM morphing via idiomorph, built on the Fetch API.


Read the original article

HackerNews