Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

๐Ÿšฆ Type-safe routing for Svelte SPAs

๊ฐœ๋ฐœ ๋„๊ตฌ

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

What you can do

  • ๐Ÿ”’ 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.

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
0
in 7 days
-2
in 15 days
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘
in 1 month
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

README.md

Original

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

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ