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