Installation
Requirements
Section titled “Requirements”- Node.js 22.12 or newer; 24 is what the repository develops on. Browser-only packages carry the
same
enginesrange for consistency. - TypeScript 5.5 or newer to get the inferred model types; the published declarations are compiled against 5.5 on every change.
- ESM. Every package is ESM-only and declares
"type": "module".
The full support matrix lists the tested Vue, Vue Router, Nuxt, and browser versions.
What to install
Section titled “What to install”-
Always install the engine.
Terminal window pnpm add @queryweave/core@queryweave/corehas no runtime dependencies and no framework dependency. It targets ECMAScript library types only. -
Add the package for the environment that stores the query.
Terminal window # A browser history stackpnpm add @queryweave/browser# A web-standard Request, on any server, edge, or worker runtimepnpm add @queryweave/server# Node.js request primitivespnpm add @queryweave/node -
Add a framework binding if you want one.
Terminal window pnpm add @queryweave/vuepnpm add @queryweave/vue-routerpnpm add @queryweave/nuxtThese are optional. The runtime works without any of them.
-
Add the test adapter as a development dependency.
Terminal window pnpm add -D @queryweave/testing
Package manager
Section titled “Package manager”QueryWeave itself is developed with pnpm, and the documentation uses pnpm add throughout. npm,
Yarn, and Bun work the same way; only the command word changes.
Peer dependencies
Section titled “Peer dependencies”| Package | Peers |
|---|---|
@queryweave/vue |
vue >=3.5.0 <4 |
@queryweave/vue-router |
vue >=3.5.0 <4, vue-router >=4.4.0 <6 |
@queryweave/nuxt |
nuxt >=4.5.0 <5, vue >=3.5.0 <4, vue-router >=5.2.0 <6 |
No other package has a peer dependency. @queryweave/standard-schema depends on
@standard-schema/spec, a types-only package, and none of them declares a dependency on a
validation library or on a frontend framework.
Every package
Section titled “Every package”Core
Runtime adapters
Validation
Framework integrations
Testing
Quick start builds a model and runs it in three environments.