# vuejs/vue-router

🚦 The official router for Vue 2

Repository: https://github.com/vuejs/vue-router
Canonical: https://ross.abutalabs.com/products/vue-router
Homepage: http://v3.router.vuejs.org/
Language: JavaScript
License: MIT
License Family: permissive
Topics: vue, javascript, router
Last push: 2026-04-14T01:14:33+00:00

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

## Adoption (not part of the score)
Stars 18876, forks 4971 (observed 2026-08-28T04:11:27.182812+00:00)

## What it is
Vue Router 3 is the official router for Vue 2, providing nested route mapping, route params, navigation guards, and HTML5 history/hash mode routing for single-page applications. Both Vue 2 and Vue Router 3 have reached end of life; new projects should use Vue Router 4 for Vue 3.

## Use cases
- add client-side routing to a Vue 2 single-page app
- set up nested routes and named views in Vue 2
- implement navigation guards for auth in a Vue 2 app
- use HTML5 history mode routing with Vue 2
- lazy-load route components in a Vue 2 SPA
- maintain a legacy Vue 2 codebase that uses vue-router

## When to choose
- you are maintaining or extending an existing Vue 2 application
- you need the battle-tested official router compatible with Vue 2.x
- you need Vue 2 transition-system-integrated route transitions

## When to avoid
- you are starting a new project with Vue 3 - use Vue Router 4 (vuejs/router)
- you need a router for React, Angular, or non-Vue frameworks
- you need actively maintained software with security fixes

## Facets
- artifact type: library
- maturity: abandoned
- function: routing, web-framework
- domain: web-development, frontend
- platform: browser, cross-platform
- tags: vue, vue2, spa, client-side-routing, eol, official-router, javascript, nodejs

## Member repositories
- vuejs/vue-router (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:27.182812+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-29T17:01:16.813026+00:00, confidence not recorded.
  - readme: https://github.com/vuejs/vue-router (fetched 2026-08-28T04:11:27.182812+00:00, sha 0873b7af4336)
  - homepage: http://v3.router.vuejs.org/ (fetched 2026-08-29T07:59:30.207722+00:00, sha 627250596501)
  - site_page: https://v3.router.vuejs.org/installation (fetched 2026-08-29T07:59:30.216989+00:00, sha c9a5b64d70d6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
