# EmilTholin/svelte-routing

A declarative Svelte routing library with SSR support

Repository: https://github.com/EmilTholin/svelte-routing
Canonical: https://ross.abutalabs.com/products/svelte-routing
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-07-25T20:53:55+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3200, "days_push": 769, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2051, forks 174 (observed 2026-08-28T04:06:09.197238+00:00)

## What it is
A declarative routing library for Svelte applications with server-side rendering (SSR) support. It provides Router, Link, and Route components that match URLs to views via path scoring.

## Use cases
- add client-side routing to a Svelte app
- render Svelte routes on the server with SSR
- create declarative route components with path parameters
- build nested routers for multi-app Svelte layouts
- handle basepath hosting under a subdirectory
- add navigation links with active route handling

## When to choose
- you use Svelte and want a simple declarative router similar to React Router
- you need SSR support for your Svelte routing
- you want nested routing and path-parameter matching without heavy configuration

## When to avoid
- you use SvelteKit, which has built-in file-based routing
- you need advanced features like data loaders or route guards that other routers provide
- you need a router for frameworks other than Svelte

## Facets
- artifact type: library
- maturity: maintenance
- function: routing, ssr, web-framework
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: svelte, client-side-routing, declarative-routing, spa, web-server, nodejs

## Member repositories
- EmilTholin/svelte-routing (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:09.197238+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:57:30.295489+00:00, confidence not recorded.
  - readme: https://github.com/EmilTholin/svelte-routing (fetched 2026-08-28T04:06:09.197238+00:00, sha 3fa071c80c15)
  - registry_npm: https://registry.npmjs.org/svelte-routing (fetched 2026-08-29T10:37:48.038085+00:00, sha 7116bf254edf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
