Svelte is a compiler and UI framework for building web applications from declarative components written in HTML, CSS, and JavaScript. Compiled output updates the DOM with minimal browser work.
Overview
Svelte targets web application development through a compiler that turns declarative components into JavaScript tuned for efficient DOM updates. Components are written with familiar web languages rather than a separate runtime that does heavy work in the browser.
The compiler model aims for concise component code that translates into updates applied only where the DOM needs to change. That approach differs from shipping a large client-side library that continuously reconciles the whole tree.
Svelte functions as a UI framework: teams adopt it as the foundation for interfaces and pages. A global community organizes events through Svelte Society, and maintainers coordinate ongoing work with volunteer and sponsor support.
Developers who want a component-oriented path to the web can start from the project’s documentation and tooling without treating the framework as a hosted product they deploy as a single server app.
Key features
- Compiler transforms components to JavaScript
- Targeted DOM updates from compiled output
- Declarative component authoring
- HTML, CSS, and JavaScript syntax
- Concise component definitions
- Web application UI building blocks
Use cases
- Building interactive web applications
- Authoring reusable UI components
- Client-side web interfaces