A feature-rich yet intuitive routing library for Svelte single-page apps.
Documentation β’ Getting Started β’ Reference
- π Typesafe navigation: Get autocomplete and type checking for your routes.
- π Flexibility: Choose between code-based or file-based routing approaches.
- πΏ Nested routes: Create complex layouts with ease.
- π Reactive search params: For simpler state management in the URL.
- π‘οΈ Hooks: For navigation guards, data loading, or analytics tracking.
- β‘ Performance: Optimized for speed with built-in code splitting and preloading.
- π§© Familiar API: Follows established conventions from popular meta frameworks.
- πͺΆ Lightweight: Minimal impact on your bundle size.
- π Made for Svelte 5: True Svelte 5 implementation with the latest features.
Kickstart a new project:
npm create sv-router
...or add it to an existing project:
npm install sv-router
MIT Β© Colin Lienard