Skip to content

Package Overview ​

rapiq is a family of small packages around one shared data structure: the Query. Install only what each side of your application needs; @rapiq/core is a peer dependency of everything else.

The map ​

PackageRole
@rapiq/coreQuery AST, defineQuery + condition helpers, schema system, parser base classes, errors
@rapiq/parser-simpleParses plain object/array input (URL-query-like "simple" dialect)
@rapiq/parser-expressionParses function-call filter expressions (and(eq(name, 'John'), …))
@rapiq/parser-mongoParses MongoDB-style filter documents ({ age: { $gte: 18 } })
@rapiq/codec-urlURL codec façade; writes expressions and reads expression plus legacy simple filters
@rapiq/adapter-sqlDialect-agnostic SQL adapter (pg, mysql, sqlite, mssql, oracle presets)
@rapiq/adapter-typeormApplies a Query to a TypeORM SelectQueryBuilder
@rapiq/adapter-prismaSerializes a Query into a Prisma argument object
@rapiq/adapter-drizzleSerializes a Query into a Drizzle relational query config
@rapiq/adapter-memoryEvaluates a Query against in-memory objects & arrays
@rapiq/cacheTag-invalidated result cache: tag versions over one logical clock, a memory driver, the driver contract (experimental, 0.x)
@rapiq/cache-redisRedis driver for @rapiq/cache (atomic Lua steps over ioredis; experimental, 0.x)

Which packages do I need? ​

A frontend that builds and sends queries:

sh
npm install @rapiq/core @rapiq/codec-url

An HTTP API backed by TypeORM:

sh
npm install @rapiq/core @rapiq/codec-url @rapiq/adapter-sql @rapiq/adapter-typeorm

An HTTP API backed by Prisma:

sh
npm install @rapiq/core @rapiq/codec-url @rapiq/adapter-prisma

An HTTP API backed by Drizzle:

sh
npm install @rapiq/core @rapiq/codec-url @rapiq/adapter-drizzle

An HTTP API composing SQL by hand:

sh
npm install @rapiq/core @rapiq/codec-url @rapiq/adapter-sql

Something in-process (guards, tests, mock backends):

sh
npm install @rapiq/core @rapiq/adapter-memory

Then add per feature:

Dependency layers ​

Foundation
Each band depends only on the bands above it; internal dependencies are peer dependencies, so npm installs nothing you didn't ask for.

All packages are ESM-only, ship TypeScript types, and share the same export shape (single entry point). The one addition is @rapiq/cache/typeorm, the TypeORM write side of the cache, kept behind its own entry so the root types never import from the optional typeorm peer.

Released under the MIT License.