Packages
MeshQL ships as focused libraries. JSR packages use @meshql/* import paths (TypeScript source). npm packages use @meshqljs/* names (compiled ESM). Same semver on both registries.
| JSR | npm | Purpose |
|---|---|---|
@meshql/core | @meshqljs/core | Parser, planner, shaper, createMesh() |
@meshql/postgres | @meshqljs/postgres | Postgres buildSelectSql ($1, $2, …) |
@meshql/sqlite | @meshqljs/sqlite | SQLite buildSelectSql for node:sqlite / Bun / D1 |
@meshql/prisma | @meshqljs/prisma | Prisma catch-all resolver (v0.6.0) |
@meshql/drizzle | @meshqljs/drizzle | Drizzle relational query resolver (v0.6.0) |
@meshql/kysely | @meshqljs/kysely | Kysely + SQL builder resolver (v0.6.0) |
@meshql/http | @meshqljs/http | Express, Fastify, Hono adapters |
@meshql/client | @meshqljs/client | Typed client SDK (Node + browser) |
@meshql/upload | @meshqljs/upload | Multipart file uploads |
@meshql/integrity | @meshqljs/integrity | Request signing and integrity tokens |
@meshql/access | @meshqljs/access | Entity, row, and field access control |
@meshql/access-cache | @meshqljs/access-cache | Cache permission results per user (v0.8.0) |
@meshql/persisted-queries | @meshqljs/persisted-queries | Register queries, X-Mesh-Query-Id transport (v0.8.0) |
@meshql/pubsub | @meshqljs/pubsub | Pub/sub for real-time subscriptions (v0.9.0) |
@meshql/sse | @meshqljs/sse | Field-aware SSE subscriptions — Express, Fastify, Hono (v0.9.0) |
@meshql/codemods | @meshqljs/codemods | GraphQL SDL → MeshQL schema migration (v0.9.0) |
@meshql/gateway | @meshqljs/gateway | Static multi-service gateway — fetch + stitch (v0.9.0) |
@meshql/docs | @meshqljs/docs | Interactive playground + schema introspection (v0.10.0) |
Typical stacks
Section titled “Typical stacks”SQLite (zero setup on Node 22.5+):
npm install @meshqljs/core @meshqljs/sqlite @meshqljs/http @meshqljs/clientnpx jsr add @meshql/core @meshql/sqlite @meshql/http @meshql/clientPostgres:
npm install @meshqljs/core @meshqljs/postgres @meshqljs/http @meshqljs/client pgnpx jsr add @meshql/core @meshql/postgres @meshql/http @meshql/clientPrisma (v0.6.0):
npm install @meshqljs/core @meshqljs/prisma @meshqljs/http @meshqljs/client @prisma/client# or: npx jsr add @meshql/core @meshql/prisma @meshql/http @meshql/clientWith security plugins:
npm install @meshqljs/core @meshqljs/http @meshqljs/integrity @meshqljs/accessnpx jsr add @meshql/core @meshql/http @meshql/integrity @meshql/accessReal-time (SSE + pub/sub):
npm install @meshqljs/pubsub @meshqljs/sse @meshqljs/core @meshqljs/httpnpx jsr add @meshql/pubsub @meshql/sse @meshql/core @meshql/httpGraphQL migration:
npx jsr add @meshql/codemods# or: npm install @meshqljs/codemodsMulti-service (gateway V1):
npx jsr add @meshql/gateway @meshql/client @meshql/coreInteractive playground:
npx jsr add @meshql/docs @meshql/core# or: npm install @meshqljs/docs @meshqljs/coreImport paths
Section titled “Import paths”| Registry | Example import |
|---|---|
| JSR | import { createMesh } from "@meshql/core" |
| npm | import { createMesh } from "@meshqljs/core" |
Per-package docs: core · postgres · sqlite · prisma · drizzle · kysely · http · client · upload · integrity · access · access-cache · persisted-queries · pubsub · sse · codemods · gateway · docs
Guides: Thinking in MeshQL · From GraphQL · ORM adapters · Database connections · SQL integration · Playground