Browser
@queryweave/browserHistory API synchronization with push, replace, and popstate.
- Runs in
- Browser
- Needs
- No framework
pnpm add @queryweave/core @queryweave/browserAn adapter connects a runtime to one environment. It reads the current query, writes canonical output, and reports external changes. That is the whole job.
An adapter never decodes, validates, applies defaults, or re-implements model semantics. If it
did, the meaning of page=2 would have two definitions that could disagree — which is exactly the
problem QueryWeave exists to remove.
interface QueryAdapter extends QuerySource { read(): QueryInput; push(next: QueryOutput): void | Promise<void>; replace(next: QueryOutput): void | Promise<void>; subscribe(listener: QueryChangeListener): () => void;}Some environments can navigate. Some only hand you a query once and then end. QueryWeave models
that difference in the type system rather than by giving request-scoped code a push method that
throws.
Mutable environment — reads, navigates, and notifies
Mutable environment — reads, navigates, and notifies
QueryModel → QueryRuntime. QueryRuntime → QueryAdapter. QueryAdapter → Browser, router, memory.
Request-scoped source — reads once, never navigates
Request-scoped source — reads once, never navigates
Request → QuerySource. QuerySource → QueryModel.decode().
QuerySource has one method. QueryAdapter extends it with push, replace, and subscribe.
The server and Node packages produce sources; the browser, Vue Router, and memory packages produce
adapters.
QueryWeave package dependency map. Core is the shared foundation. Node builds on the server package. Nuxt builds on the Vue and Vue Router packages.
Node request bridge → Web server helpers. Nuxt integration → Vue bindings. Nuxt integration → Vue Router adapter.
@queryweave/browserHistory API synchronization with push, replace, and popstate.
pnpm add @queryweave/core @queryweave/browser@queryweave/serverWeb-standard `Request` and `URL` helpers for request-scoped decoding.
pnpm add @queryweave/core @queryweave/server@queryweave/nodeNode request primitives bridged into the server helpers.
pnpm add @queryweave/core @queryweave/server @queryweave/node@queryweave/testingA deterministic memory adapter with its own back and forward stack.
pnpm add -D @queryweave/testingEach of the pages below states, in the same order: where it runs, what it owns, what it does not own, which package installs it, and when to reach for it.
Request and URLIncomingMessage