JavaScript and TypeScript
@raquery/query owns the framework-neutral client API.
Two authoring forms
Use the relational builders when composition is the point:
const query = limit
project
whererelation"products", "department == 'outdoor'",
"name", "price"
,
10
;Use the compact form for a small single-source query:
const query = {
: "products",
:"name", "price",
: "department == 'outdoor'",
: 10,
};Both forms lower to the same canonical relational AST.
Core capabilities
- relation and expression builders
- local evaluation
- SQLite SQL compilation for the current preview
- single and batch HTTP transport
- catalog change reads
- conservative semantic reuse and batch planning
The package declarations expose discriminated AST and expression types so TypeScript consumers can inspect or transform queries safely.