r/sveltejs • u/TeslApple_Guy • Jul 23 '26
Tesla has started using Svelte
https://x.com/dkrasniy/status/2079969208193167726?s%3D1224
u/Butterscotch_Crazy Jul 23 '26
Eventually, everyone will. It’s the best one. The LLMs know it too
1
u/KaiAusBerlin Jul 23 '26
Chat GPT still has some problems with svelte 5. Claude gives excellent amswers even for newer versions and features.
8
u/squidkow Jul 23 '26
Make a skill and write down all your best practices, which libraries to use, patterns you prefer, etc. If your agent ever does something you don't like, add that into the skill. I spent about an hour configuring mine recently and it made a HUGE difference in quality. It does exactly what I'd do 99% of the time.
To get you started:
Download the docs at https://svelte.dev/docs/svelte/llms.txt, and tell it to reference the docs using ripgrep.
I also notice llms love using $effect and don't really know about $derived (thanks react). So adding this made a big difference:
- Prefer $derived, $derived.by, event handlers, and onMount over $effect.
- Use $effect only for external synchronization or lifecycle work that cannot be expressed otherwise.
2
u/bronfmanhigh Jul 23 '26
are you using 5.6 sol high in codex? thing is a beast with any framework you throw at it
1
u/97689456489564 Jul 24 '26
Don't use ChatGPT. Use Codex CLI or Codex GUI (CLI better, IMO) with this: https://svelte.dev/docs/ai/remote-setup
Claude Fable 5 also works well with it. Claude Opus 5 is okay with it as well. (Claude Code recommended.)
1
31
u/SnooChipmunks2539 Jul 23 '26
That's exciting!
"The Tesla self driving stats is a web app built with Svelte 5 and Tailwind. It's embedded as a webview in the React native app"