‹ BackHN Continuity

Thread

SvelteKit 3

408 points · 179 comments · sampsn

  1. stillatit · · focus · HN ↗
    I love the hands-on developer experience of programming in Svelte. But since we're in October of 2026 I have to ask, is the vibe-coding experience in Svelte any different than in React? Can anyone with experience in both comment?
    1. weitendorf · · focus · HN ↗
      Yes. We open sourced an SSG based off SvelteKit about a year ago and were starting building AI tooling and product workflows around it, <a href="https:&#x2F;&#x2F;statue.dev" rel="nofollow">https:&#x2F;&#x2F;statue.dev but have since mothballed it.

      For most of 2024-2025 frontier models really struggled with Svelte 4 vs 5 compatibility issues. Some of the main contributors, to their credit, really put in a lot of work to create benchmarks&#x2F;MCP&#x2F;other tools to make AI better at using Svelte. Personally I am just not a fan of MCP and other tools like that at all, and decided I&#x27;d rather just use vanilla css&#x2F;js for new projects.

      Look at this; it&#x27;s literally multiple times more expensive to have a model sifting through all this stuff in every context use them with a tool: <a href="https:&#x2F;&#x2F;svelte.dev&#x2F;docs&#x2F;ai&#x2F;prompts&#x2F;llms.txt" rel="nofollow">https:&#x2F;&#x2F;svelte.dev&#x2F;docs&#x2F;ai&#x2F;prompts&#x2F;llms.txt All of these are input tokens and turns to gather context.

      The &quot;too niche to be a major training priority&quot; dilemma is actually a really big problem that almost all new or emerging dev tools have now. Incumbents and category leaders are priorities and show up in major benchmarks, so models develop excellent tacit knowledge and capabilities with them and expose it everywhere all the time for &quot;free&quot; in their weights. Everything else is at a major disadvantage because models don&#x27;t know about them, how to use them, how they work, what they&#x27;re for&#x2F;why, and every time you use them you pay a big capability and token hit because models only learn about them in-context.

      I don&#x27;t blame the Svelte team for this at all. There should be a better way for devtool projects to contribute to frontier labs training pipelines or properly posttrain their own agent coding models.

      1. tonyoconnell · · focus · HN ↗
        This is why I switched to Astro&#x2F;React in 2024. I wonder where I would be now if I had stuck things out. Svelte is very fast and elegant. I found that I can use Astro for anything I thought I might need NextJS for though.
        1. sureglymop · · focus · HN ↗
          I still use Svelte but I switched to Astro too. I think the best thing about it is that its devs are focused on building primarily a good ssg. The Svelte people are primarily building a frontend framework and added sveltekit as an addition. Using Svelte in astro even feels nicer to me.
        2. weitendorf · · focus · HN ↗
          I strongly recommend vanilla html, js, and css. For me the benefits of having no npm and related ecosystem tools and no dependencies far outweigh any benefits you get from switching to specific framework. It took me just as long to learn modern css, html, and basically all the browser APIs as it did to learn how to setup+build+modify+deploy my svelte-vscodeextension-webview project without getting bogged down in the tooling.

          All those tools and packages are constantly making breaking changes or introducing incompatibility issues or becoming obsolete, and there is so much maintenance. I went pretty deep on CSR&#x2F;SSG&#x2F;browser automation over the past two years and realized that everything you get out of these tools is probably 20-400 lines of javascript you could just ask an LLM to implement when you need it. I’ve seen people waste so many hours, days, and weeks on tailwind ui crap (solvable in minutes with css), vitest and object lifecycle crap (use the browser debugger, do e2e tests) and major version upgrades (there’s about 95% less of this in the browser and &gt;99% less outside experimental APIs).

          I think for Facebook&#x2F;Github sized web applications, with really big teams and lots of custom tooling (eg React) these frameworks make sense. Most websites just need basic file serving&#x2F;rendering, to send and respond to http requests, and some javascript to run on the client (but html and css can actually handle many core UI patterns). I’ve been much happier not using frameworks because my projects just work and the knowledge I build doesn’t constantly churn.

      2. pelagicAustral · · focus · HN ↗
        &gt; lightning-fast static sites with Sveltekit

        [???] Why the hell would I use SvelteKit for a static site?

        1. weitendorf · · focus · HN ↗
          We had an existing sveltekit application and its components, tooling, etc and used statue to develop the landing page&#x2F;legals&#x2F;docs&#x2F;marketing portion of our site as an SSG, deployed separately but with shared logic.

          Our application was behind a proxy that requires auth, and we could host our SSG on Cloudflare pages, so we didn’t have to expose any application server&#x2F;compute (besides auth) to the public Internet. To me this was very desirable for security and devex: we could develop the two applications independently and be pretty lax with the static site.

      3. DrScientist · · focus · HN ↗
        &gt; and decided I&#x27;d rather just use vanilla css&#x2F;js for new projects.

        So is the rise of AI coding, the end of frameworks?

        Frameworks were created to reduce boiler plate ( at the expense of new abstractions which occasionally leak ) - boiler generation is less of an issue for AI, and the underlying platform is very well specified?

        I guess the only problem with vanilla is if the sheer volume of text overwhelms the context?

        1. SoftTalker · · focus · HN ↗
          &gt; Frameworks were created to reduce boiler plate

          Even more fundamentally, frameworks were created to reduce the developer time and skill required to build applications. This has been a pipe dream many have chased since COBOL replaced assembly language.

          LLMs are probably the first technology that actually approaches doing that. And yes, they don&#x27;t need frameworks, they&#x27;re indifferent to the amount of code or boilerplate needed, don&#x27;t care about the developer &quot;experience,&quot; and will write vanilla JS and HTML just as well as anything else you ask them to do, maybe better.

        2. weitendorf · · focus · HN ↗
          Vanilla css&#x2F;js are not really that voluminous. Actually, they tend to be smaller than the compiled targets you get from conventional web dev builds.

          I’m not really sure that most web frameworks reduce boilerplate. There is a lot of boilerplate involved in setting up routes, and builds, and so on. As far as I can tell they only really make sense for very large teams (who need a uniform shared data model, design language, processes, etc.) and people who really want to run server side js&#x2F;do a lot of SSR.

          The thing about web “frameworks” is that they’re not that different in structure from what you’d build to do SSR and a repeatable way to add pages&#x2F;dirs and shared assets, in any language. You can build a minimal version of something that does that in less than an hour, at least in Go. go:embed and a factory method for handlers :)

          I think we’ll all end up with more bespoke “frameworks” (specialized web servers) with less gravitational pull towards dysfunctional (IMO, the node ecosystem) tooling, and still have many people using the best major frameworks. Truly large projects will still need to use react and svelte and co unless they can train a model on their own framework. But that’s really hard

          1. DrScientist · · focus · HN ↗
            Are you treating the LLM output as machine code or are you looking at it?

            And if you are looking at it - do you insist on certain patterns or structure to allow yourself to more easily navigate it?

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.