A query builder that stays fast at a thousand rules.

qnot is typed from your schema to the SQL it writes, runs in React, Vue, Svelte, Solid or plain JS, and wears any UI kit. Editing one rule re-renders one rule. About 15 KB.

MIT · TypeScript · server and browser

A typed schema feeding a query store of rule tiles, one tile lit as it is edited, encoding to SQL, MongoDB and JsonLogic.age: f.number()plan: f.enum([…])tags: f.multiEnum()orders: f.array()fields.tscreateQueryStore()1 node per ruleage ≥ 21SQLMongoDBJsonLogicage >= $1QueryOf<typeof fields>encode()Your schematyped end to endOne storeone rule re-renders · 0.4 msEvery formatSQL · Mongo · JsonLogic · ES · SpEL

Built for queries people actually build.

Filters, segments, routing rules, alert thresholds, access policies. qnot is the part they all share: a typed tree, edited fast, exported anywhere.
01
A schema card defining plan as an enum, and a rule whose value slot only accepts 'free' or 'pro'.plan: f.enum(['free', 'pro'])planeqRuleOf<F>'free' | 'pro''gold' → Type error

Typed end to end

defineFields · QueryOf · RowOf

Declare fields once. Every rule's value narrows by field and operator, so 'gold' on an enum of 'free' | 'pro' is a type error, and validated queries come back strict.

Read how
02
A tray of twenty rule tiles, nineteen quiet, one lit and raised as it is edited.1,000 rulessetRuleValue(id, 22)notifies 1 subscriber0.4 ms at 1,000 rules

One rule, one re-render

normalized store · per-node subscriptions

The store keeps every node by id and tells only the node that changed. A keystroke costs the same at ten rules or a thousand: half a millisecond.

Read how
03
One query block with wires to SQL, MongoDB, JsonLogic, Elasticsearch, react-querybuilder and RAQB.querySQLMongoDBJsonLogicElasticsearchreact-querybuilderRAQBencode() · decode() · memoized per node

Every format

SQL · Mongo · JsonLogic · Elasticsearch · SpEL

Export to SQL with parameters in five dialects, MongoDB, JsonLogic, Elasticsearch and SpEL, and read react-querybuilder, RAQB and jQuery QueryBuilder JSON both ways.

Read how
04
One store block in the middle, wired to React, Vue, Svelte, Solid and vanilla DOM screens around it.storeReactVueSvelteSolidDOM

Five frameworks, one store

React · Vue · Svelte · Solid · DOM

The core is plain TypeScript. Each binding is hooks over the same store, plus a small unstyled builder you can swap out piece by piece.

Read how
05
A browser posts a query to a server that validates it and sends parameterized SQL to a database.browserserverassertValidQuery()postgresPOST queryage >= $1age ≥ -5 → 400: Must be at least 0

Runs on the server

validate · compile · parameterized SQL

Share one fields.ts. The browser builds the query; the server validates it, narrows its type, and turns it into SQL with bound parameters, or filters rows in memory.

Read how
06
A react-querybuilder JSON block lowering into a socket on a qnot store set to format rqb.useQueryStore({ format: rqb }){ combinator,rules: […] }your saved RQB JSONNo migration scriptvalue / onChange keep RQB's shape

Drop-in for your saved queries

format: rqb · format: raqb

Give the store a format and value / onChange speak react-querybuilder's or RAQB's JSON. Keep your stored queries; swap the library underneath.

Read how

Measured, not claimed.

The same 1,000-rule tree in every library, production builds, headless Chromium. Lower is better; the bar is each number against the slowest.

Run of 2026-10-19: headless Chromium, production builds, no CPU throttling; medians of 5 to 9 fresh pages, 10 fields, 100 groups of 10 rules. JS is gzipped and excludes React (jQuery is included), and each bundle includes the library's own SQL/JSON export. With 4× CPU throttling the gaps widen.

Everything else a query builder needs.

Feature parity with react-awesome-query-builder, and a few things it doesn't do. Every piece is in the docs.

Cast the net.

Two packages, one schema, one component. Works the same on the server, minus the component.
in your apppnpm add @qnot/core @qnot/react
  1. 1Install

    The core and the binding for your framework. React shown; Vue, Svelte, Solid and DOM have their own.

  2. 2Define your fields

    defineFields with f.text(), f.number(), f.enum()… Types flow from here.

  3. 3Render a builder

    Drop in the unstyled builder, or build your own from the hooks with the UI kit you already use.