Svelte

Svelte logo
Svelte logotype

Cybernetically enhanced web apps

Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app.

Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes.

Read the introductory blog post to learn more.

npx degit sveltejs/template my-svelte-project
# or download and extract this .zip file
cd my-svelte-project
# to use TypeScript run:
# node scripts/setupTypeScript.js

npm install
npm run dev
		

See the quickstart guide for more information.

Learn Svelte

Svelte components are built on top of HTML. Just add data.

CSS is component-scoped by default — no more style collisions or specificity wars. Or you can use your favourite CSS-in-JS library.

Trigger efficient, granular updates by assigning to local variables. The compiler does the rest.

Build beautiful UIs with a powerful, performant transition engine built right into the framework.

Who's using Svelte?

Contributors

Svelte is free and open source software, made possible by the work of dozens of volunteers. Join us!

Rich-Harris Conduitry tanhauhau benmccann Swatinem lukeed jacwright mindrones mrkishi ekhaled EmilTholin antony dummdidumm pngwn zxbodya btk5h jches tivac PaulBGD GarrettGeorge btakita FWeinb pushkine halfnelson evs-chris colincasey jamesbirtles TehShrike jacobmischka kaisermann Panya sanderhahn aphitiel d3sandoval skippednote MattiasBuelens ehrencrona dimfeld Harald-1 Axelen123 m59peacemaker taylorzane leporo sw-yx dkondrad stalkerg thollander esarbanis hperrin LostKobrakai jesseskinner CreaturesInUnitards peopledrivemecrazy umanghome emilos geoffrich kevmodrome AlexxNB AlbertLucianto cristinecula MikeMatrix shinnn timhall Wolfr bre30kra69cs milahu Vages efeskucuk ItalyPaleAle andrelmlins bwbroersma clarkdo hong4rc ElectronSz NitayRabi orta PaulMaly arxpoetica samuelgozi stephane-vanraes js2me trbrc 43081j 123aswin123 BillyLevin dmitrykurmanov aarongeorge arackaf industral allantito almaz-khan amwmedia benlesh bfanger CMessinides chrishelgert Crisfole funkybob membranophonist deanmcpherson neoel dreitzner SrZorro ceifa Jingmnt johnmuhl zlsa nosovk matt3224 mattwolff SomaticIT nikku oguzhaninan PKlknr plmrry varholak-peter RobinCsl sercaneraslan kyrylkov vascoosx SteveALee Th0rN13 thgh timdeschryver saibotsivad cvlab adrian5 cayasso cudr dasZGFz cbolgiano gabysantosw martinandert mustafa0x elliotwaite fjorgemota vaibhav111tandon davidaq rixo vedam ogre-yoga adamdune 1wheel ooade JitPackJoyride Alaricus alexiglesias93 alexnoz Pierstoval Alex-CS aorel AlexandreCantin AlexGalays MeuhMeuh AmirHosseinHmd1 Phaqui andreieftimie gilgameshskytrooper talklittle abruere ankeetmaini anthonylegoas aredridel arthurdenner acstll guzart el1f babakfp webdesq remotelydev bashunaimiroy benoror palewire benschac bdougherty korywka blittle c0bra bsssshhhhhhh cj81499 camjackson caroso1222 InsanityOnABun Cleecanth chris-morgan caengen christianheine klaussner clebert dalemartyn damianpumar dkzlv DanielPower himynameisdave davebrent davemo debargharoy widyakumara dogagenc cornerfarmer StarpTech EddyVinck ematipico enstyled ericdfields skrifblokk evanmoncuso vilarfg fielding fraserdarwent Gabswim gautamkrishnar GeopJr gonfva gka Denhai hchatel ignatiusmb IlyaSemenov newbornfrontender irshad irshadshalu ilblog IvanSanchez j-delaney beegan jackyef lunchboxer jthegedus foucist Rukenshia JeremyBernier Joxtacy jesmrie jwicks31 johman10 dravog7 joncfoo 6eDesign Jongkeun kesne jormaj tel JounQin joaopaulobdac getkey pyoner vitalragaz kjj6198 Karsten7 khtdr netaisllc lewoudar kieranbarker Kiho atomAltera lawrencelogoh leereamsnyder div-Leo leomarquine axil itsliamegan lode lorenbrichter lguzzon lukasmoellerch lyndsysimon jasonlyu123 habibrosyad baslr MShuttle marvinhagemeister mahenrique94 mdempsky spaceinvadev maxmilton mikedubcurry majkelbed mterczynski mkhan45 mtlewis khorpy macmillen stokesman Milesq Mlocik97 mhmd-22 nick-vincent nicolasmgaray charpeni jacoux quantuminformation njbotkin nolanlawson Olanetsoft omeraplak oscarmattsson vp2177 paulocoghi pboling blackwolf12333 RAYDENFilipp michaelphipps hontas raitalharehman rajnandan1 retotrinkler rihardsgravis rohanfaiyazkhan rohankokane 91k rmariuzzo ItzaMi ryanatkn samccone hantatsang mrsauravsahu scottbedard eps1lon sebastian-stephan shakhbulatgaz lenovouser Softmus CyberAP buhrmi sdemjanenko StevenWeathers teymour-aldridge ThomasFerro tiberiuc Gohlisch timgates42 tcrowe thelgevold VarunDevPro Ti-webdev venkateshwarans FlipFloop vidaren vidit1999 SleepyWerewolf supermooshman Vulwsztyn jakutis wlockiv yesmeck Spice-Z Zachiah Zirro arggh eh-dub benib burningTyger craigglennie dmitrage fiskgrodan fivemru gltchitm hmt hville igoradamenko infuzz izumiiii jamesgeorge007 jasdeepgill jpsc julian-kuroiwa zhoukekestar kindoflew lonevox mattstobbs mellisdesigns munsocket nhducit nomnomnomnom orange4glace priyanjitdey94 pynnl raveling rdb red-meadow rmacklin rqrqrqrq rykiplov simeydotme vlasy voldemortensen warmrobot juzhiyuan Ding-Fan