@queryweave/vue-router

Vue Router adapter contracts for QueryWeave.
1,045 7
Install
npm install @queryweave/vue-router
Latest Version:0.1.0-beta.5
Vue:3
License:MIT
Last Updated:Oct 3, 2026
Links: GitHub  ·  npm
Maintainer: boussadjra

@queryweave/vue-router

A QueryAdapter backed by Vue Router 4.4+ or 5.

pnpm add @queryweave/vue-router
import { createVueRouterAdapter } from "@queryweave/vue-router";

const adapter = createVueRouterAdapter(router);

const result = await runtime.update({ page: 9 });
result.outcome; // "committed" | "refused" | "redirected" | "unchanged"
result.reason; // Vue Router's NavigationFailure when a guard refused

It normalizes router query values, keeps path and hash, waits for router.isReady(), observes route changes in a scope it owns, and reports a refused or redirected navigation as the transition's outcome instead of throwing. It owns no codec logic, no validation logic, and no Vue binding logic, and depends on @queryweave/core alone — router synchronization can be adopted without the Vue binding.

Vue and Vue Router are peer dependencies.

Documentation: https://queryweave.dev/frameworks/vue-router/

Related Packages

@queryweave/vue

Vue-native binding contracts for QueryWeave.

1,042 7
@queryweave/nuxt

Nuxt module and runtime integration contracts for QueryWeave.

1,030 7
vue-route-state

Minimal Vue 3 composables for keeping reactive state in Vue Router query paramet...

0 1
@chronicstone/vue-route-query

Type-safe URL query parameter synchronization for Vue 3 with Zod validation

3,077
vue-url-state

A Vue 3 composable for syncing reactive state with URL query parameters

2,144 2

Version History

Pre-releases (6)
Version Released Vue License
0.1.0-beta.5 >=3.5.0 <4 MIT
0.1.0-beta.4 >=3.5.0 <4 MIT
0.1.0-beta.3 >=3.5.0 <4 MIT
0.1.0-beta.2 >=3.5.0 <4 MIT
0.1.0-beta.1 >=3.5.0 <4 MIT