An SPA router for Svelte that allows you to divide & conquer your app with nested routers, snippets, and more.
- Built for Svelte 5 π!
- Divide & conquer - use nested routers all over the place.
- Use components, snippets, or both π₯!
- Use regex paths (e.g.
/foo/(.*?)/bar
) and/or named parameters together. - Use async routes simply with
component: async () => import("./my-component.svelte")
. - Add hooks to your routes to control the navigation flow π§.
- Automagic styling of your anchor tags π.
- Helper methods π οΈ to make your life easier.
- Debugging tools included π.
npm install @mateothegreat/svelte5-router