svelte-spa-router VS SvelteKit

Compare svelte-spa-router vs SvelteKit and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
svelte-spa-router SvelteKit
17 611
1,474 17,636
- 1.9%
5.7 9.8
27 days ago 7 days ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

svelte-spa-router

Posts with mentions or reviews of svelte-spa-router. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-22.
  • Svelte 4 Released
    4 projects | news.ycombinator.com | 22 Jun 2023
  • UI kits, form validation, SPA routing. Why basic libraries are so hard to find.
    6 projects | /r/sveltejs | 3 Jun 2023
  • Svelte-spa-router: Router for SPAs using Svelte 3
    1 project | news.ycombinator.com | 24 May 2023
  • [Q] Can I use sveltekit with rust?
    1 project | /r/sveltejs | 13 Apr 2023
    But the choice depends on the type of application though. If your routes are not dynamic (not using variables within route) then you can use static site generation (SSG) which will generate the various html files. Otherwise you need to use the same file (index.html#my/dynamic/route/5). To my knowledge svelteKit doesn't support hash-based routes. You might be able to configure routing without it, but if you need that, you me be better off to use svelte with svelte-spa-router and not sveltekit.
  • Thoughts on Svelte
    15 projects | news.ycombinator.com | 27 Mar 2023
    https://github.com/ItalyPaleAle/svelte-spa-router seems good too.

    but it's not official, and Svelte project seems careless for client routing, instead it tries to convince everyone use its SSR-first kit, that "can do CSR too", which means you have to carry the whole SSR code base and its documentation into your CSR project totally unnecessarily.

    I get it Vercel needs SSR for its business, I don't get it why it keeps selling everyone that "my SSR-first framework is great for CSR SPA too", it is NOT, not at all.

  • SvelteKit worth?
    1 project | /r/sveltejs | 6 Sep 2022
    For a simple static site you can just use svelte with svelte-spa-router. If you want SSG, use Astro, it's a lot more mature than SvelteKit.
  • How do i make the Nav links work in Svelte?
    3 projects | /r/sveltejs | 23 Mar 2022
    Svelte SPA Router - You need a router. NextJS, which you have experienced in, comes with a router.
  • Some front-end web technologies you should be aware of as a newcomer 🧐
    22 projects | dev.to | 22 Feb 2022
    Svelte SPA Router
  • svelte-spa-router not registating external hash change
    2 projects | /r/sveltejs | 8 Feb 2022
    I am using Keycloak for logging into my app and svelte-spa-router for hash based routing inside my SPA. After successful login, Keycloak should redirect back to http://localhost:1234/#/myRoute . However, Keycloak appends some suffixes to this route. The route ends up looking something like this: http://localhost:1234/#/myRoute&state=hexstring&session_state=hexstring... etc As I defined my route (inside routes.js) as /myRoute , the router fails to parse the URL returned by keycloak. Looking at the source code I noticed that keycloak changes the URL back to the "clean" parameterless URL: http://localhost:1234/#/myRoute using a call to window.location.replaceState . Unfortunately, this call does not get reflected in the spa-routers internal svelte store (i.e. $location).
  • My Evaluation of SvelteKit for Full-Stack Web App Development
    17 projects | news.ycombinator.com | 5 Jan 2022
    How does Routify compare with svelte-spa-router[1]? I really like svelte-spa-router for a simple SPA, though I think a lot of SPA routers don't always handle state well.

    [1] https://github.com/ItalyPaleAle/svelte-spa-router

SvelteKit

Posts with mentions or reviews of SvelteKit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-12.
  • ChatCrafters - Chat with AI powered personas
    3 projects | dev.to | 12 Apr 2024
    Svelte Kit for the fullstack framework It has first class support for Cloudflare Pages Svelte is a very elegant framework, and Svelte Kit is a very good meta-framework for Svelte. Svelte was probably the reason that…
  • Fun, Beautiful, Printable 'Story Cards' for Kids with Cloudflare AI
    3 projects | dev.to | 12 Apr 2024
    This AI-powered Story Card Maker is built as a SvelteKit application with Typescript. Using Flowbite Svelte component library, the whole application was laid out. The layout for the Story Card (emulating the size of a postcard - 4" x 3") is created as an HTML Canvas using Fabric.js.
  • Image Generator with Cloudflare
    2 projects | dev.to | 11 Apr 2024
    Svelte kit
  • Cannot CRUD cookies in SvelteKit from another port
    2 projects | news.ycombinator.com | 3 Mar 2024
  • The State of Angular SSR Deployment in 2024
    11 projects | dev.to | 2 Mar 2024
    These adapters, for example, were built by the community: https://github.com/sveltejs/kit/tree/master/packages/adapter-vercel https://github.com/nuxt/vercel-builder If somebody builds a working one for Angular Universal, we will gladly add it to our Framework Presets → https://vercel.com/docs/concepts/deployments/build-step#framework-preset.
  • AI for Web Devs: Deploying Your AI App to Production
    6 projects | dev.to | 7 Feb 2024
    UPDATE: If you liked this project and are curious to see what it might look like as a SvelteKit app, check out this blog post by Tim Smith where he converts this existing app over.
  • Ask HN: Looking for lightweight personal blogging platform
    35 projects | news.ycombinator.com | 6 Feb 2024
    I've played around with several platforms in the last year or so. I've landed on the following setup that works very well for me and ticks all your boxes:

    A SvelteKit[0] app hosted on Cloudflare pages. The repo is hosted on GitHub and hooked up to the Cloudflare Pages app [1]. On PRs, I get preview environments. On merge, the changes get deployed to my "production" website. I write blog posts and other content in markdown, which is then processed by mdsvex[2] with very minimal setup.

    Mostly, my requirements were more focused around getting the actual framework, hosting, etc. out of my way so that I could focus on writing. Gatsby and Next.js were too configuration heavy and turned me off once I scratched beyond the surface.

    [0] https://kit.svelte.dev/

  • Mini site for recommending songs using Svelte & Deno
    2 projects | dev.to | 3 Feb 2024
    Behind the scenes is a simple Sveltekit-powered server function to fetch a Spotify client token then find a user's recommendation playlist and its track information. A Deno edge function to performs this data fetch and renders server-side Svelte.
  • Removing React is just weakness leaving your codebase
    6 projects | dev.to | 31 Jan 2024
    It’s 2024, and you are about to start a new project. Do you reach for React, a framework you know and love or do you look at one of the other hot new frameworks like Astro, Enhance, 11ty, SvelteKit or gasp, plain vanilla Web Components?
  • CryptoFlow: Building a secure and scalable system with Axum and SvelteKit - Part 5
    3 projects | dev.to | 22 Jan 2024
    From part 0 to part 4, we built out CryptoFlow's backend service. Though we can quickly use Postman, VS Code's ThunderClient or automated tests to see the endpoints working easily, this isn't all we want. We want to actively interact with the backend service via some intuitive user interface. Also, a layman wouldn't be able to "consume" the service we've built in the last parts. This article introduces building out the user interface of the system. We will be using SvelteKit, a framework that streamlines web development, and TailwindCSS, the utility-first CSS framework. Let's dig in!

What are some alternatives?

When comparing svelte-spa-router and SvelteKit you can also consider the following projects:

svelte-routing - A declarative Svelte routing library with SSR support

Next.js - The React Framework

svelte-routify-windi-vite - Svelte Starter template with Routify file-based router, WindiCSS Tailwind compiler and Vite

Nuxt.js - Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3. [Moved to: https://github.com/nuxt/nuxt]

awesome-sveltekit - Awesome examples of SvelteKit in the wild

Express - Fast, unopinionated, minimalist web framework for node.

electron-sveltekit - Electron and SvelteKit integration

astro - The web framework for content-driven websites. ⭐️ Star to support our work!

svelte-starter-kit - Svelte with brilliant bells and useful whistles

vite - Next generation frontend tooling. It's fast!

routify - Automated Svelte routes

Svelte - Cybernetically enhanced web apps