# vuejs/router

🚦 The official router for Vue.js

Repository: https://github.com/vuejs/router
Canonical: https://ross.abutalabs.com/products/vuejs-router
Homepage: https://router.vuejs.org/
Language: TypeScript
License: MIT
License Family: permissive
Topics: vue, vue-router
Last push: 2026-08-24T06:41:08+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 93, longevity 100
- inputs: {"age_days": 2764, "days_push": 9, "days_rel": 49, "gap_med": 18.5, "n_releases_24m": 19}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4672, forks 1295 (observed 2026-08-28T04:08:56.652854+00:00)

## What it is
Vue Router is the official client-side routing library for Vue.js, providing expressive route definitions, navigation guards, and history mode support. It maps URL routes to Vue components and controls navigation behavior in single-page applications.

## Use cases
- add client-side routing to a Vue single-page app
- define dynamic routes with params for a Vue app
- guard routes with authentication checks before navigation
- control scroll behavior when navigating between pages
- choose between HTML5, hash, or memory history modes
- lazy-load route components for code splitting

## When to choose
- you are building a Vue.js SPA or SSR app that needs URL-based navigation
- you want the officially supported router with deep Vue integration
- you need fine-grained navigation control with per-route guards

## When to avoid
- your project uses React, Angular, or Svelte rather than Vue
- you are building a multi-page server-rendered site without client-side routing
- you need a full backend routing framework rather than a browser-side router

## Facets
- artifact type: library
- maturity: stable
- function: routing, middleware, frontend-framework
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: vue, vue-router, spa, client-side-routing, navigation-guards, history-api, nodejs

## Member repositories
- vuejs/router (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:56.652854+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-29T18:19:22.968336+00:00, confidence not recorded.
  - readme: https://github.com/vuejs/router (fetched 2026-08-28T04:08:56.652854+00:00, sha 4cd360faff49)
  - homepage: https://router.vuejs.org/ (fetched 2026-08-29T09:03:55.166514+00:00, sha 7ecd515a9d20)
  - site_page: https://router.vuejs.org/installation (fetched 2026-08-29T09:03:55.175826+00:00, sha 30e4e7f8ff0b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
