Svelte
Svelte is a free and open-source component-based front-end software framework and language created by Rich Harris and maintained by the Svelte core team.[src] Svelte is not a monolithic JavaScript library imported by applications: instead, Svelte compiles HTML templates to specialized code that manipulates the DOM directly, which may reduce the size of transferred files and give better client performance.[src] Application code is also processed by the compiler, inserting calls to automatically recompute data and re-render UI elements when the data they depend on is modified.[src] This also avoids the overhead associated with runtime intermediate representations, such as virtual DOM, unlike traditional frameworks (such as React and Vue) which carry out the bulk of their work at runtime, i.e.[src] in the browser.[src] The compiler itself is written in JavaScript.[src] Its source code is licensed under MIT License and hosted on GitHub.[src] Among comparable frontend libraries, Svelte has one of the smallest bundle footprints at merely 2KB.[src]
Svelte is a free and open-source component-based front-end software framework and language created by Rich Harris and maintained by the Svelte core team.[src] Svelte is not a monolithic JavaScript library imported by applications: instead, Svelte compiles HTML templates to specialized code that manipulates the DOM directly, which may reduce the size of transferred files and give better client performance.[src] Application code is also processed by the compiler, inserting calls to automatically recompute data and re-render UI elements when the data they depend on is modified.[src] This also avoids the overhead associated with runtime intermediate representations, such as virtual DOM, unlike traditional frameworks (such as React and Vue) which carry out the bulk of their work at runtime, i.e.[src] in the browser.[src] The compiler itself is written in JavaScript.[src] Its source code is licensed under MIT License and hosted on GitHub.[src] Among comparable frontend libraries, Svelte has one of the smallest bundle footprints at merely 2KB.[src] let value = $state(); const todos = $state([]); const all = $derived(todos.length); const done = $derived(todos.filter(todo => todo.done).length); function onsubmit(e) { e.preventDefault(); todos.push({ text: value, done: false }); e.target.reset(); } Todo List completed {done}/{all} {#each todos as { text, done }, index} {text} todos.splice(index, 1)}>Remove {/each} Add todo span { font-size: 20px; font-weight: bold; } .done { text-decoration-line: line-through; } ==See also== JavaScript library Comparison of JavaScript-based web frameworks ==References==[src]
17 sentences · 17 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Svelte." encyclopegia.org, 2026, https://encyclopegia.org/wiki/svelte. Accessed 01 December 2026.
Chicago
"Svelte." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/svelte.
APA
encyclopegia.org. (2026). Svelte. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/svelte
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON