@mateothegreat/svelte5-router
TypeScript icon, indicating that this package has built-in type declarations

2.14.1 • Public • Published

Svelte 5 SPA Router 🚀 🔥

logo

An SPA router for Svelte that allows you to divide & conquer your app with nested routers, snippets, and more.

[!NOTE] Live demo: https://demo.router.svelte.spa

API documentation: https://docs.router.svelte.spa

Features

  • 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 🔍.

Installation

npm install @mateothegreat/svelte5-router

Table of Contents

Package Sidebar

Install

npm i @mateothegreat/svelte5-router

Weekly Downloads

285

Version

2.14.1

License

MIT

Unpacked Size

205 kB

Total Files

102

Last publish

Collaborators

  • mateothegreat