Skip to content
项目

关于

🚦 Type-safe routing for Svelte SPAs

网站与应用开发

这些数字如何统计

可以做什么

  • 🔒 Type-safe navigation: Catch broken links before you ship.
  • 🗂️ File-based routing (optional): DX of a meta-framework-like approach.
  • 🪶 Lightweight: ~ 5kB gzipped.
  • ⚡ Performance: Built-in code splitting and preloading.

实测星标增长

24小时
0
7天
-1
15天
-3
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

sv-router

npm downloads size codecov

Flexible, ergonomic, and complete Svelte 5 router.

Documentation • Getting Started • Reference


Features

  • 🔒 Type-safe navigation: Catch broken links before you ship.
  • 🗂️ File-based routing (optional): DX of a meta-framework-like approach.
  • 🪶 Lightweight: ~ 5kB gzipped.
  • ⚡ Performance: Built-in code splitting and preloading.
  • 🔍 Reactive search params: For simpler state management in the URL.
  • 🌿 Nested routes: Share layouts across pages.
  • 🛡️ Hooks: For navigation guards, data loading, or analytics tracking.
  • #️⃣ Hash-based routing: Works inside Electron/Tauri.

Getting Started

Kickstart a new project:

npm create sv-router

...or add it to an existing project:

npm install sv-router

License

MIT © Colin Lienard

探索相关项目

加载中…