Technology · Web

Svelte

The framework that disappears at build time — surgical bundles, no virtual DOM, and the leanest code you'll write in front-end.

Created by
Rich Harris
First release
2016
Language
JavaScript / TypeScript
Known for
Compiling the framework away
In plain English

What it is, and why we use it.

Svelte takes a different bet: instead of shipping a runtime to the browser, it compiles your components into minimal vanilla JavaScript. The result is tiny bundles and startup speed that's hard to match — with code that's shorter and closer to plain HTML/CSS/JS than any rival. SvelteKit provides the full-stack framework around it.

Svelte is our pick for performance-critical embeds and widgets — anything that loads inside someone else's page, where every kilobyte is a negotiation. For full products we weigh its leanness against React's ecosystem depth, honestly, per project.

Key differences

Svelte vs React vs Vue.js.

Svelte against the two frameworks it's usually benchmarked against — leanness versus ecosystem gravity.

DimensionSvelteReactVue.js
RuntimeNone — compiled awayVirtual DOM runtimeReactive runtime
Bundle sizeSmallest by farLargestSmall-to-mid
Code you writeLeast — closest to vanillaMost ceremonyMiddle
EcosystemThinnest — you'll write some things yourselfEverything existsStrong
HiringSmall, enthusiastic poolDeepest poolGood

Svelte wins when

  • Bundle size is a product requirement, not a preference
  • Embeds and widgets running on other people's pages
  • Small senior teams who don't need the long tail of libraries

React wins when

  • You depend on mature libraries: editors, charts, auth
  • Hiring at scale is part of the plan
  • Mobile via React Native is on the roadmap

Vue wins when

  • You want lean and a mature official ecosystem
  • Templates suit the team
  • Laravel pairing matters
Our take

Svelte is what front-end looks like with the ceremony removed. We deploy it where its leanness is measurable in the product — and we're honest that ecosystem depth, not elegance, decides most large builds.

Thinking about Svelte?

Tell us what you're building. We'll tell you honestly whether Svelte is the right tool for it.