Skip to content
Runtime
Framework

Installation

  • Node.js 22.12 or newer; 24 is what the repository develops on. Browser-only packages carry the same engines range 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.

  1. Always install the engine.

    Terminal window
    pnpm add @queryweave/core

    @queryweave/core has no runtime dependencies and no framework dependency. It targets ECMAScript library types only.

  2. Add the package for the environment that stores the query.

    Terminal window
    # A browser history stack
    pnpm add @queryweave/browser
    # A web-standard Request, on any server, edge, or worker runtime
    pnpm add @queryweave/server
    # Node.js request primitives
    pnpm add @queryweave/node
  3. Add a framework binding if you want one.

    Terminal window
    pnpm add @queryweave/vue
    pnpm add @queryweave/vue-router
    pnpm add @queryweave/nuxt

    These are optional. The runtime works without any of them.

  4. Add the test adapter as a development dependency.

    Terminal window
    pnpm add -D @queryweave/testing

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.

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.

Quick start builds a model and runs it in three environments.