routify
svelte-spa-router
Our great sponsors
routify | svelte-spa-router | |
---|---|---|
12 | 17 | |
1,823 | 1,474 | |
-0.1% | - | |
9.4 | 5.7 | |
12 days ago | 20 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
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.
routify
-
How's routing done in Vanilla Svelte?
Been using Routify in all my projects since I started with Svelte like 3-4 years ago.
-
SvelteKit: How do you handle largish projects with so many +page & +page.server files?
Anyway, it seems you have a problem with Sveltekit routing. You can still use Svelte with other SSR frameworks, such as Astro, a router like https://routify.dev, or switch to another framework altogether.
-
Svelte and abandonware?
Routify is still active and new version in the works. Version 3 can be used https://github.com/roxiness/routify/tree/next
-
Tauri with Svelte or SvelteKit?
I would have to say Svelte with a router like https://routify.dev . My recent blog post originally used sveltekit but I swapped it out last minute
-
Is there a way to restrict access to certain routes using svelte-spa-router
Consider https://github.com/roxiness/routify
-
If anyone can help me with my noob questions
Regarding some suggestions on here recommending SvelteKit: Learning SvelteKit might be a big ask depending on what you're trying to do. If you just want to stick with svelte only for now, and you want to add SPA routing capabilities, consider checking out https://routify.dev there's a ton of documentation for it and it's fairly simple to pick up. ✌🏼
-
State of the Sveltejs Ecosystem?
Routing: We have a few third party ones such as routify, svelte-spa-router and svelte-routing as well as the clientside routers included in SvelteKit and Sapper.
-
Sveltekit - to use or not to use?
if Next.js/Nuxt like needs are not something you're looking for yet, you can definitely go ahead with Svelte's default client-side app approach, with svelte-spa-router or routify for SPAs.
-
Learning to cook at home with Parsnip - built entirely with Svelte!
We chose Routify for client-side routing because this was around the time that Sapper seemed like it was being sunset in favor of Sveltekit which doesn't seem production-ready quite yet. We also have plans to statically pre-render the app so it can more-or-less work entirely offline and Routify makes that relatively straightforward (but see below).
-
Comparing Svelte and React
Since svelte does a lot of compile time stuff, I would like to mention Routify, which is compile time SPA routing. For me it worked awesome to accomplish projects with many routes and the need for hash based routing.
See https://routify.dev/ and https://routify.dev/guide/installation/install-to-existing-p...
svelte-spa-router
- Svelte 4 Released
- UI kits, form validation, SPA routing. Why basic libraries are so hard to find.
- Svelte-spa-router: Router for SPAs using Svelte 3
-
[Q] Can I use sveltekit with rust?
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
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?
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?
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 🧐
Svelte SPA Router
-
svelte-spa-router not registating external hash change
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
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.
What are some alternatives?
awesome-sveltekit - Awesome examples of SvelteKit in the wild
svelte-routing - A declarative Svelte routing library with SSR support
svelte-routify-windi-vite - Svelte Starter template with Routify file-based router, WindiCSS Tailwind compiler and Vite
SvelteKit - web development, streamlined
svelte-starter-kit - Svelte with brilliant bells and useful whistles
electron-sveltekit - Electron and SvelteKit integration
Sapper - The next small thing in web development, powered by Svelte
svelte-query - Performant and powerful remote data synchronization for Svelte