Here's a curated list of awesome light weight & modern JS frameworks that can be loaded through a CDN.
Note
For small sized projects Vanilla JS is more than equipped, See this Gist
If JavaScript Tooling is an option then frameworks like Svelte, Solid, Preact or Lit are better suited in terms of Developer Productivity and Bundle Size.
- CDN : https://unpkg.com/browse/htmx.org/dist/ (50KB)
- Access AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes.
- CDN : https://cdn.jsdelivr.net/npm/alpinejs/dist/cdn.min.js (44KB)
- A rugged, minimal framework for composing JavaScript behavior in your markup.
- CDN : https://cdn.jsdelivr.net/npm/@sudodevnull/datastar (43KB)
- Typescript library for making hypermedia systems, plugins work off of signals to make everything reactive and allow very fast interactions in very little code.
- CDN : https://cdn.jsdelivr.net/gh/vanjs-org/van/public/van-latest.min.js (2KB)
- Ultra-lightweight, zero-dependency, and unopinionated Reactive UI framework, feels like building React apps, without JSX.
- CDN : https://unpkg.com/preact/dist/preact.js (12KB)
- Fast alternative to React with the same modern API.
- CDN : https://cdn.jsdelivr.net/npm/inferno/dist/inferno.min.js (24KB)
- An extremely fast, React-like JavaScript library for building modern user interfaces.
- CDN : https://unpkg.com/mithril (24KB)
- SPA framework with routing and XHR utilities out of the box.