Svelte is a free and open-source front-end software framework and language created by Rich Harris, with ongoing maintenance by the Svelte core team. Unlike conventional JavaScript libraries, Svelte functions as a compiler that transforms HTML templates into specialized code, directly manipulating the DOM (Document Object Model). This process can lead to smaller file sizes and enhanced client performance. Svelte is known for enabling developers to build reactive web applications with minimal overhead, offering advantages over other frameworks like React and Angular.
Svelte applications are defined in .svelte files, which are HTML files extended with templating syntax that is based on JavaScript and is similar to JSX. Svelte's core features are accessed through runes, which syntactically look like functions, but are used as macros by the compiler. Developers consistently rank Svelte as a framework they are most excited about using. It was chosen as the Stack Overflow 2021 most loved web framework and the 2020 State of JS frontend framework with the most satisfied developers. Svelte has been adopted by companies such as The New York Times, Google, Apple, and Spotify.