Why sv-router? â
sv-router is a feature-rich yet intuitive routing library for Svelte SPAs. It provides powerful routing capabilities while maintaining simplicity.
Features â
- đ 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.
- #ī¸âŖ Hash-based routing: Hash-based routing enables usage in local environments.
Whether you're building a small project or a complex application, sv-router provides the tools you need without the overhead of a full-stack framework.
Acknowledgements â
sv-router draws inspiration from: