# posva/unplugin-vue-router

Next Generation file based typed routing for Vue Router

Repository: https://github.com/posva/unplugin-vue-router
Canonical: https://ross.abutalabs.com/products/unplugin-vue-router
Homepage: https://uvr.esm.is
Language: TypeScript
License: MIT
License Family: permissive
Topics: typescript, vite, vue, vue-router
Archived: true
Last push: 2026-02-24T07:56:26+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 63, longevity 100
- inputs: {"age_days": 1538, "days_push": 190, "days_rel": 247, "gap_med": 11.5, "n_releases_24m": 19}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2240, forks 111 (observed 2026-08-28T04:06:29.741358+00:00)

## What it is
A build-time unplugin that generates Vue Router routes from your file system structure with full TypeScript type safety. It supports Vite, Webpack, Rollup, and other bundlers, and includes experimental Data Loader APIs.

## Use cases
- generate vue router routes from folder structure
- type-safe route links in vue
- file based routing for vue 3
- catch invalid routes at build time
- autocompletion for router links in typescript
- replace manual route config in vue apps

## When to choose
- you use Vue 3 with Vue Router >=4.4 and want file-based routing
- you want typed routes and autocompletion for links
- you want routes generated at build time instead of runtime

## When to avoid
- you use React or another non-Vue framework
- you need fully stable Data Loader APIs, which are still experimental
- you're on Vue Router older than 4.4.0

## Facets
- artifact type: plugin
- maturity: active
- function: routing, type-system, build-tool, plugin-system
- domain: web-development, frontend, developer-tools
- platform: cli
- tags: vue, vue-router, vite, file-based-routing, typed-routes, unplugin, typescript, build-time-codegen, nodejs, web-server

## Member repositories
- posva/unplugin-vue-router (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:29.741358+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:44:08.538457+00:00, confidence not recorded.
  - readme: https://github.com/posva/unplugin-vue-router (fetched 2026-08-28T04:06:29.741358+00:00, sha 20a8651b661e)
  - homepage: https://uvr.esm.is (fetched 2026-08-29T10:24:39.728527+00:00, sha 008864a67ae3)
  - registry_npm: https://registry.npmjs.org/unplugin-vue-router (fetched 2026-08-29T10:24:39.737512+00:00, sha b59858b0c06d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
