# vuejs/vuex-router-sync

Effortlessly keep vue-router and vuex store in sync.

Repository: https://github.com/vuejs/vuex-router-sync
Canonical: https://ross.abutalabs.com/products/vuex-router-sync
Language: JavaScript
License: MIT
License Family: permissive
Topics: vue, vuex, vue-router
Last push: 2022-01-08T14:55:22+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3830, "days_push": 1698, "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 2489, forks 118 (observed 2026-08-28T04:06:55.726745+00:00)

## What it is
A small Vue.js library that synchronizes vue-router's current route state into the Vuex store as a read-only module. It lets components access route path, params, and query directly from store state.

## Use cases
- access current route inside vuex store getters
- make route state available to vuex actions
- keep vue-router and vuex in sync
- use route params in store state
- time-travel debug routing state with vuex devtools

## When to choose
- you use Vue 2 with both Vuex and vue-router and want route state in the store
- you need route data in Vuex getters or actions
- you want routing state captured in devtools time-travel

## When to avoid
- you use Vue 3 with Pinia instead of Vuex
- your app doesn't use Vuex
- you only need route access in components, where $route already suffices

## Facets
- artifact type: library
- maturity: maintenance
- function: state-management, routing, middleware
- domain: frontend, web-development, developer-tools
- platform: browser
- tags: vue, vuex, vue-router, state-sync, vue2, javascript, nodejs

## Member repositories
- vuejs/vuex-router-sync (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:55.726745+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:27:51.018518+00:00, confidence not recorded.
  - readme: https://github.com/vuejs/vuex-router-sync (fetched 2026-08-28T04:06:55.726745+00:00, sha 1b4f7351be7d)
  - registry_npm: https://registry.npmjs.org/vuex-router-sync (fetched 2026-08-29T10:09:42.472650+00:00, sha 6e0a9f2c488d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
