DEV Community

Cover image for The first Svelte 5 SPA router πŸ”₯
Matthew Davis
Matthew Davis

Posted on

3 1

The first Svelte 5 SPA router πŸ”₯

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

Live demo: https://svelte5-router.vercel.app

Features

  • Supports Svelte 5, just one rune baby πŸš€!
  • 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").

Source code and more is at https://github.com/mateothegreat/svelte5-router.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs