Client SPAs and islands
Pick Preact, SolidJS, or Svelte 5 when you need stateful client interactions with a minimal bundle budget.
Verified versions and weekly npm downloads as of 2026-11-16.
| Framework | Latest | npm weekly | Rendering model | Why it fits |
|---|---|---|---|---|
| Preact | 11.2.0 | 59.0M | Lightweight Virtual DOM | ~4 KB min+gz; React-compatible widgets and fast storefronts. |
| SolidJS | 1.9.19 | 11.7M | No Virtual DOM (Compiled JSX + Fine-Grained DOM) | ~7 KB min+gz; high-frequency UI updates and real-time dashboards. |
| Lit | 3.3.3 | 9.8M | Native Web Components + lit-html Templates | ~5 KB min+gz; cross-framework Web Components design systems. |
| Svelte | 5.57.3 | 9.8M | Compiled Fine-Grained DOM Updates | ~3 to 5 KB overhead; full SPAs and SvelteKit apps with tiny bundles. |
| Alpine.js | 3.17.5 | 931.1K | Direct HTML Attribute Enhancement | ~15 KB, no build; progressive enhancement on Rails, Django, Laravel. |
| htmx | 2.0.11 | 456.0K | Hypermedia / Server HTML Swapping | ~14 KB, no build; server-driven HTML partials without JSON SPAs. |
Choose rendering strategy and client bundle boundaries early.
Pick Preact, SolidJS, or Svelte 5 when you need stateful client interactions with a minimal bundle budget.
Pick Alpine.js or htmx when Rails, Django, Laravel, or Go templates already render your pages.
Score all 15 verified frameworks locally with zero dependencies.
node src/advisor.ts --use-case saas-dashboard --seo-critical
Explore neighboring frameworks or jump back to the interactive selector.