Svelte's Avatar

Svelte

@svelte.dev.bsky.social

Web development for the rest of us. See also: - community: @sveltesociety.dev - starter pack: https://bsky.app/starter-pack/did:plc:nlvjelw3dy3pddq7qoglleko/3l6ucetngs423 - feed: https://bsky.app/profile/paolo.ricciuti.me/feed/svelte-feed

6,699 Followers  |  1 Following  |  44 Posts  |  Joined: 27.04.2023  |  2.0244

Latest posts by svelte.dev on Bluesky

Preview
Remote functions β€’ Docs β€’ Svelte Remote functions β€’ Svelte documentation

SvelteKit remote functions are now available under an experimental flag. Docs here: svelte.dev/docs/kit/rem...

31.07.2025 21:13 β€” πŸ‘ 70    πŸ” 13    πŸ’¬ 1    πŸ“Œ 2

long overdue but we made the SvelteKit router more type-safe. docs for `resolve(...)` and `asset(...)` at svelte.dev/docs/kit/$ap...

24.07.2025 20:19 β€” πŸ‘ 143    πŸ” 11    πŸ’¬ 3    πŸ“Œ 0

now available for your on-demand viewing pleasure

24.07.2025 20:54 β€” πŸ‘ 25    πŸ” 6    πŸ’¬ 0    πŸ“Œ 0
Preview
Asynchronous Svelte Β· sveltejs svelte Β· Discussion #15845 This is a long document; get yourself a cup of tea. tl;dr You can now use the await keyword in Svelte β€” in your <script>, inside $derived expressions, and in your markup β€” by installing the async b...

Async Svelte is coming! github.com/sveltejs/sve...

29.04.2025 05:28 β€” πŸ‘ 187    πŸ” 32    πŸ’¬ 6    πŸ“Œ 11
Preview
Bringing Svelte Summit to the whole community We’re sponsoring the release of talks from Barcelona, starting this weekend

For those of you who have been wondering if and when the videos of Svelte Summit 2025 Barcelona will be freely available, we just published a blog post about it: svelte.dev/blog/svelte-...

21.05.2025 13:32 β€” πŸ‘ 68    πŸ” 12    πŸ’¬ 1    πŸ“Œ 1
Preview
XSS via tracked search_params ### Summary Unsanitized search param names cause XSS vulnerability. You are affected if you iterate over all entries of `event.url.searchParams` inside a server `load` function. Attackers can ex...

We just published an advisory for CVE-2025-32388, a moderate severity XSS vulnerability in SvelteKit. Please update to `@sveltejs/kit@2.20.6`.

The vulnerability affects applications that iterate over all search parameters inside a server `load` function. More details in the advisory πŸ‘‡

14.04.2025 18:03 β€” πŸ‘ 45    πŸ” 9    πŸ’¬ 0    πŸ“Œ 2
Preview
TypeScript! β€’ Playground β€’ Svelte Web development for the rest of us

you can now use .ts files in the playground:

svelte.dev/playground/7...

caveat: only supports erasable syntax (www.typescriptlang.org/docs/handboo...). under the hood this uses bloomberg.github.io/ts-blank-spa...

(note that typechecking/intellisense are TODO)

09.04.2025 20:09 β€” πŸ‘ 48    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0

If you're using SvelteKit (or Svelte+Vite without SvelteKit) then we recommend updating your Vite version.

Note that the vulnerability only exists if you're doing `vite dev --host` (or `server.host: true`) on an untrusted network, which you're probably not. But update anyway

31.03.2025 17:53 β€” πŸ‘ 43    πŸ” 5    πŸ’¬ 0    πŸ“Œ 0
A screenshot of https://svelte.dev/playground/3de3a4446cd14bad884ea05fbd35363a?version=5.25.0 showing the new 'writable derived' feature

A screenshot of https://svelte.dev/playground/3de3a4446cd14bad884ea05fbd35363a?version=5.25.0 showing the new 'writable derived' feature

As of @svelte.dev 5.25 you can temporarily override a derived value, which is very handy for optimistic UI

β€’ demo svelte.dev/playground/3...
β€’ docs svelte.dev/docs/svelte/...

21.03.2025 17:42 β€” πŸ‘ 173    πŸ” 17    πŸ’¬ 6    πŸ“Œ 6

last chance to grab tickets at the lower price!

21.03.2025 18:08 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
fix: on teardown, use the last known value for the signal before the set by trueadm Β· Pull Request #15469 Β· sveltejs/svelte PSA: we are changing how effect teardowns work! Today, if you read some state inside a teardown function, you get the latest state: $effect(() =&gt; { const prev = value; return () =&gt; { ...

PSA for @svelte.dev users: we're planning to change how effect teardowns work to eliminate a common gotcha that affects signal-based frameworks. If the new behaviour would create problems for you, please let us know!

github.com/sveltejs/sve...

07.03.2025 16:22 β€” πŸ‘ 191    πŸ” 22    πŸ’¬ 8    πŸ“Œ 1

Now that speakers have been selected we want to share with you our line-up for Svelte Summit Spring 2025! We will host 16 talks across different topics during the two day conference. In addition, @mainmatter.com will also host a workshop. More details on www.sveltesummit.com

14.02.2025 10:21 β€” πŸ‘ 28    πŸ” 11    πŸ’¬ 0    πŸ“Œ 6
Post image

New in Svelte: A way to create a unique ID that is stable across client and server svelte.dev/docs/svelte/...

12.02.2025 14:37 β€” πŸ‘ 101    πŸ” 11    πŸ’¬ 3    πŸ“Œ 2

in case you missed it: the SvelteHack winners are up! many thanks to everyone who took part, and kudos to these outstanding projects in particular πŸ‘‡

12.02.2025 14:22 β€” πŸ‘ 27    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0

We've just sent out emails to everyone who submitted a proposal! Please read it carefully. See you at Svelte Summit Spring 2025!

28.01.2025 13:00 β€” πŸ‘ 34    πŸ” 7    πŸ’¬ 0    πŸ“Œ 5

....and that's a wrap for this year. Thanks for following along, everyone! There's a bunch of stuff that we didn't quite manage to squeeze in this month, so keep an eye out in 2025 for more good things.

Merry Christmas to all who celebrate!

24.12.2024 16:13 β€” πŸ‘ 104    πŸ” 5    πŸ’¬ 6    πŸ“Œ 2
screenshot of svelte.dev/playground showing the new `class` attribute handling

screenshot of svelte.dev/playground showing the new `class` attribute handling

Day 24 β€” Svelte now handles `class` attributes with github.com/lukeed/clsx. Much more powerful than the `class:` directive, but since this is Svelte you still get dead code elimination of unused styles!

🎁 docs svelte.dev/docs/svelte/...
🎁 demo svelte.dev/playground/6...

24.12.2024 16:13 β€” πŸ‘ 135    πŸ” 9    πŸ’¬ 6    πŸ“Œ 9
Preview
fix: add CSP hashes/nonces to inline styles when using by Rich-Harris Β· Pull Request #13232 Β· sveltejs/kit I forgot to account for CSP when adding inline styles for bundleStrategy: &#39;inline&#39;. No test in this PR because there are no tests for bundleStrategy: &#39;inline&#39; anyway, and life is to...

for scripts, yes. i forgot to account for styles though β€” good catch! opened github.com/sveltejs/kit...

23.12.2024 17:23 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
screenshot of svelte.dev/playground showing the new 'download app' option

screenshot of svelte.dev/playground showing the new 'download app' option

Day 23 β€” you can now download your playground creations as SvelteKit apps! It'll even include any dependencies you've imported

🎁 svelte.dev/playground

23.12.2024 17:05 β€” πŸ‘ 67    πŸ” 5    πŸ’¬ 1    πŸ“Œ 2

okay, kinda fixed mobile β€” you can tap the edges of the screen to control the snek. it'll do for now! going to go and do some christmas shopping

22.12.2024 18:02 β€” πŸ‘ 20    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Downloadable Snake game built with SvelteKit and the new `bundleStrategy: 'inline'` option

Downloadable Snake game built with SvelteKit and the new `bundleStrategy: 'inline'` option

Day 22 β€” you can now use the `bundleStrategy: 'inline'` option to build an entire SvelteKit app β€” code, styles, fonts, images, audio, and so on β€” into a single `.html` file that you can share on a floppy disk

🎁 docs svelte.dev/docs/kit/con...
🎁 demo svelte-snek.vercel.app (needs keyboard for now!)

22.12.2024 17:49 β€” πŸ‘ 88    πŸ” 10    πŸ’¬ 7    πŸ“Œ 3
Preview
Configuration β€’ Docs β€’ Svelte Configuration β€’ Svelte documentation

Day 21 β€” hash-based routing for SvelteKit apps, for when you don't need (or can't run) a server. You can't use any server-side logic (including SSR), but other than, it's just like any other SvelteKit app

🎁 docs svelte.dev/docs/kit/con...
🎁 demo hash-based-routing.vercel.app

21.12.2024 18:41 β€” πŸ‘ 62    πŸ” 2    πŸ’¬ 4    πŸ“Œ 5
Video thumbnail

Day 20 β€” Vim mode! You can enable it in the playground and tutorial and it will remember your preference between visits. Don't worry, you can always quit by turning it off again (or closing the tab)

🎁 svelte.dev/playground

20.12.2024 14:21 β€” πŸ‘ 87    πŸ” 7    πŸ’¬ 7    πŸ“Œ 8
Preview
Svelte Summit Spring 2025: Barcelona & online The next in-person Svelte Summit will happen on May 8 and 9 in Barcelona, Spain! Get your tickets and submit your proposals now!

Reminder: There are less than two weeks left to get a 20% discount on tickets for the next in-person Svelte Summit. Use the code sveltmas2024 at checkout or email us for group tickets. More details on the website. www.sveltesummit.com

19.12.2024 15:29 β€” πŸ‘ 11    πŸ” 3    πŸ’¬ 0    πŸ“Œ 1

πŸ‘€

19.12.2024 16:03 β€” πŸ‘ 9    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
a screenshot showing the new `output.bundleStrategy` option in SvelteKit. On the left, the updated svelte.config.js; on the right, a look at the resulting HTML

a screenshot showing the new `output.bundleStrategy` option in SvelteKit. On the left, the updated svelte.config.js; on the right, a look at the resulting HTML

Day 19 β€” single-file bundles for SvelteKit. By default, your apps use code-splitting to ensure that you only load the code for the current page. But sometimes you need a single bundle for the whole app, and you can now do that with the new `bundleStrategy` option

🎁 docs svelte.dev/docs/kit/con...

19.12.2024 15:16 β€” πŸ‘ 82    πŸ” 4    πŸ’¬ 6    πŸ“Œ 4
Video thumbnail

Day 18 β€” we've upgraded the playground so you can better understand how the compiler transforms your code. We plan to use this tool ourselves to improve the sourcemaps that Svelte generates

🎁 svelte.dev/playground

18.12.2024 14:22 β€” πŸ‘ 81    πŸ” 7    πŸ’¬ 3    πŸ“Œ 3
Video thumbnail

Day 17 β€” until today, intellisense would often fail when you were in the middle of writing components, because Svelte's parser crashed on syntax errors.

We just fixed that. Install svelte@latest, make sure your extensions are up to date, and feel the wind in your hair as you write your components

17.12.2024 16:16 β€” πŸ‘ 115    πŸ” 11    πŸ’¬ 6    πŸ“Œ 3

note: you can migrate automatically using the following command

npx sv migrate app-state

16.12.2024 22:04 β€” πŸ‘ 41    πŸ” 0    πŸ’¬ 1    πŸ“Œ 1
Preview
$app/state β€’ Docs β€’ Svelte $app/state β€’ Svelte documentation

Day 16 β€”Β `$app/state`, a modern Svelte 5 state-based replacement for SvelteKit's `$app/stores` module. No more clunky `$` prefix when reading values, just fine-grained state that works everywhere, even outside component files!

🎁 docs svelte.dev/docs/kit/$ap...
🎁 tutorial svelte.dev/tutorial/kit...

16.12.2024 22:00 β€” πŸ‘ 87    πŸ” 7    πŸ’¬ 5    πŸ“Œ 3

@svelte.dev is following 1 prominent accounts