Package category
ORMs and query builders
Object-relational mappers, query builders and migration tools.
444 packages12 comparisons
Packages compared
444 packages
| Package | Weekly downloads | 12-month change | 52 weeks | Gzip | Last release | Module | Types | Categories |
|---|---|---|---|---|---|---|---|---|
| objection An SQL-friendly ORM for Node.js | 174.8k | +21% | - | 1 year ago 3.1.5 | CommonJS | Bundled | ORMs and query builders | |
| sqlite SQLite client for Node.js applications with SQL-based migrations API written in Typescript | 173k | -35% | - | 2 years ago 5.1.1 | ESM + CommonJS | Bundled | Promises and async control flow, Node.js utilities | |
| mock-knex a knex mock adapter for simulating a db during testing | 171.3k | +125% | - | 2 years ago 0.4.13 | CommonJS | None | Testing, ORMs and query builders | |
| dbmate A lightweight, framework-agnostic database migration tool | 168k | +438% | - | 6 days ago 2.36.0 | ESM only | Bundled | ORMs and query builders, Node.js utilities | |
| prisma-kysely Generate Kysely database types from a Prisma schema | 161.4k | +104% | - | 1 month ago 3.2.1 | ESM only | None | ORMs and query builders, TypeScript tooling | |
| @mikro-orm/sqlite TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript. | 161.2k | - | - | - | 6 days ago 7.2.1 | ESM only | Bundled | TypeScript tooling, ORMs and query builders |
| @mikro-orm/mariadb TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript. | 138.4k | - | - | - | 6 days ago 7.2.1 | ESM only | Bundled | TypeScript tooling, ORMs and query builders |
| kysely-postgres-js Kysely dialect for PostgreSQL using the Postgres.js client | 129.6k | +337% | - | 9 days ago 5.0.0 | ESM only | Bundled | ORMs and query builders, TypeScript tooling | |
| @mikro-orm/mssql TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript. | 129.2k | - | - | - | 6 days ago 7.2.1 | ESM only | Bundled | TypeScript tooling, ORMs and query builders |
| db-migrate Database migration framework for node.js | 129k | +36% | - | 3 years ago 0.11.14 | - | None | ORMs and query builders | |
| typeorm-transactional A Transactional Method Decorator for typeorm that uses cls-hooked to handle and propagate transactions between different repositories and service methods. Inpired by Spring Trasnactional Annotation and Sequelize CLS | 126.1k | +91% | - | 2 years ago 0.5.0 | CommonJS | Bundled | TypeScript tooling, ORMs and query builders | |
| typeorm-extension A library to create/drop database, simple seeding data sets, ... | 124.3k | +27% | - | 2 days ago 4.2.0 | ESM only | Bundled | ORMs and query builders, CLI tools and terminal utilities | |
| @shopify/shopify-app-session-storage-prisma Shopify App Session Storage for Prisma | 122.7k | - | - | - | 7 days ago 11.0.0 | ESM + CommonJS | Bundled | GraphQL, ORMs and query builders |
| @mikro-orm/sql TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript. | 121.6k | - | - | - | 6 days ago 7.2.1 | ESM only | Bundled | TypeScript tooling, ORMs and query builders |
| @mikro-orm/seeder Seeder package for MikroORM. | 116.1k | - | - | - | 6 days ago 7.2.1 | ESM only | Bundled | ORMs and query builders, TypeScript tooling |
| clickhouse-migrations ClickHouse Migrations | 109.9k | +759% | - | today 1.4.1 | CommonJS | Bundled | ORMs and query builders, CLI tools and terminal utilities | |
| generate-schema Effortlessly convert your JSON Object to JSON Schema, Mongoose Schema, or a Generic template for quick documentation / upstart. | 105.3k | -16% | - | 8 years ago 2.6.0 | CommonJS | None | Schema validation, ORMs and query builders | |
| @mikro-orm/decorators TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript. | 105.2k | - | - | - | 6 days ago 7.2.1 | ESM only | None | TypeScript tooling, ORMs and query builders |
| @react-awesome-query-builder/ui User-friendly query builder for React. Core React UI | 99.4k | - | - | - | 1 year ago 6.7.0-alpha.0 | ESM + CommonJS | Bundled | ORMs and query builders, React |
| dynamodb-toolbox Lightweight and type-safe query builder for DynamoDB and TypeScript. | 97k | +42% | - | 10 days ago 2.11.0 | ESM + CommonJS | Bundled | Cloud SDKs, ORMs and query builders | |
| @prisma/nextjs-monorepo-workaround-plugin Ensures that your Prisma files are copied | 95.6k | - | - | - | 1 month ago 7.10.0 | CommonJS | None | ORMs and query builders |
| prettier-plugin-prisma Prettier plugin for Prisma files | 88.6k | +28% | - | 3 years ago 5.0.0 | CommonJS | None | ORMs and query builders | |
| @react-awesome-query-builder/core User-friendly query builder for React. Core | 86.3k | - | - | - | 1 year ago 6.7.0-alpha.0 | ESM + CommonJS | Bundled | ORMs and query builders, React |
| prisma-dbml-generator Prisma DBML Generator | 86.1k | +53% | - | 2 years ago 0.12.0 | - | None | ORMs and query builders | |
| @casl/prisma Allows to query accessible records using Prisma client based on CASL rules | 79.5k | - | - | - | 2 months ago 2.0.2 | ESM + CommonJS | Bundled | ORMs and query builders |
| prisma-zod-generator Prisma 2+ generator to emit Zod schemas from your Prisma schema | 76.8k | +478% | - | 1 month ago 3.3.1 | - | None | ORMs and query builders, Schema validation | |
| knex-dynamic-connection Adds support for dynamically returning connection config for knex queries | 76k | +144% | - | 24 days ago 5.1.1 | CommonJS | Bundled | ORMs and query builders | |
| @opentelemetry/instrumentation-typeorm OpenTelemetry instrumentation for `typeorm` database data-mapper ORM | 73.9k | - | - | - | 24 days ago 0.22.0 | CommonJS | Bundled | Monitoring and error tracking, ORMs and query builders |
| @nestjs-cls/transactional-adapter-prisma A Prisma adapter for @nestjs-cls/transactional | 72.4k | - | - | - | today 2.0.1 | ESM + CommonJS | Bundled | ORMs and query builders, Promises and async control flow |
| kysely-typeorm Kysely dialect for TypeORM | 69.5k | +1744% | - | 1 year ago 0.3.0 | ESM + CommonJS | Bundled | ORMs and query builders | |
| @svar-ui/react-filter SVAR React Filter is an advanced query builder for React, with AND/OR logic, nested filter groups, and JSON output. | 68.5k | - | - | - | 23 days ago 2.6.1 | ESM + CommonJS | Bundled | ORMs and query builders, React |
| gql-query-builder Simple GraphQL Query Builder | 64.6k | +22% | - | 2 months ago 4.0.1 | ESM + CommonJS | Bundled | GraphQL, ORMs and query builders | |
| @datastax/astra-db-ts Data API TypeScript client | 63k | - | - | - | 2 months ago 2.3.0 | ESM + CommonJS | Bundled | ORMs and query builders |
| sql-template-tag ES2015 tagged template string for preparing SQL statements, works with `pg`, `mysql`, `sqlite` and `oracledb` | 62.6k | +48% | - | 2 years ago 5.2.1 | ESM only | Bundled | ORMs and query builders | |
| mongoose-aggregate-paginate-v2 A page based custom aggregate pagination library for Mongoose with customizable labels. | 52.2k | +14% | - | 1 month ago 1.1.5 | CommonJS | Bundled | ORMs and query builders | |
| nestjs-paginate Pagination and filtering helper method for TypeORM repositories or query builders using Nest.js framework. | 49.5k | +24% | - | 2 months ago 15.0.1 | CommonJS | Bundled | ORMs and query builders | |
| sequelize-auto Automatically generate bare sequelize models from your database. | 47.9k | +18% | - | 4 years ago 0.8.8 | CommonJS | Bundled | ORMs and query builders | |
| @quramy/prisma-fabbrica Prisma generator for model factories | 46.4k | - | - | - | 9 months ago 2.3.3 | ESM + CommonJS | Bundled | ORMs and query builders |
| drizzle-zero Generate Zero schemas from Drizzle ORM schemas | 46k | +70% | - | 2 months ago 0.20.0 | ESM + CommonJS | Bundled | ORMs and query builders, TypeScript tooling | |
| @directus/schema Utility for extracting information about existing DB schema | 45.3k | - | - | - | 1 month ago 14.0.2 | ESM only | Bundled | ORMs and query builders, Vue |
| bookshelf A lightweight ORM for PostgreSQL, MySQL, and SQLite3 | 44.1k | -48% | - | 6 years ago 1.2.0 | CommonJS | None | ORMs and query builders | |
| @mikro-orm/entity-generator TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript. | 42.7k | - | - | - | 6 days ago 7.2.1 | ESM only | Bundled | TypeScript tooling, ORMs and query builders |
| connect-session-sequelize Session store for connect-session using sequelize | 42.4k | -11% | - | 6 months ago 8.0.6 | CommonJS | Bundled | ORMs and query builders, Node.js utilities | |
| @indexeddb-orm/idb-orm TypeScript ORM wrapper for indexeddb with Zod runtime validation, build on top of dexie.js | 41.9k | - | - | - | 25 days ago 0.0.4 | ESM + CommonJS | Bundled | Schema validation, ORMs and query builders |
| @react-querybuilder/dnd Drag-and-drop-enabled version of react-querybuilder (DnD-library-agnostic) | 38.9k | - | - | - | 4 days ago 8.24.1 | ESM + CommonJS | Bundled | React, DOM and browser utilities |
| workers-qb Zero dependencies Query Builder for Cloudflare Workers | 38.1k | +2471% | - | 2 months ago 1.15.0 | ESM + CommonJS | Bundled | Cloud SDKs, ORMs and query builders | |
| drizzle-typebox Generate Typebox schemas from Drizzle ORM schemas | 37.6k | +103% | - | 1 year ago 0.3.3 | ESM + CommonJS | Bundled | ORMs and query builders, Schema validation | |
| adminjs Admin panel for apps written in node.js | 37.1k | +72% | - | 1 year ago 7.8.17 | ESM + CommonJS | Bundled | HTTP servers and web frameworks, ORMs and query builders | |
| mongoose-unique-validator mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema. | 36.9k | +37% | - | 6 months ago 6.1.1 | ESM only | Bundled | Schema validation, ORMs and query builders | |
| @sequelize/core Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, Oracle, and IBM i. It features solid transaction support, relations, eager and lazy loading, read repli | 35.3k | - | - | - | 7 months ago 7.0.0-alpha.48 | ESM + CommonJS | Bundled | ORMs and query builders |
12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.
- objectionAn SQL-friendly ORM for Node.js
- sqliteSQLite client for Node.js applications with SQL-based migrations API written in Typescript
- mock-knexa knex mock adapter for simulating a db during testing
- dbmateA lightweight, framework-agnostic database migration tool
- prisma-kyselyGenerate Kysely database types from a Prisma schema
- @mikro-orm/sqliteTypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.
- @mikro-orm/mariadbTypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.
- kysely-postgres-jsKysely dialect for PostgreSQL using the Postgres.js client
- @mikro-orm/mssqlTypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.
- db-migrateDatabase migration framework for node.js
- typeorm-transactionalA Transactional Method Decorator for typeorm that uses cls-hooked to handle and propagate transactions between different repositories and service methods. Inpired by Spring Trasnactional Annotation and Sequelize CLS
- typeorm-extensionA library to create/drop database, simple seeding data sets, ...
- @shopify/shopify-app-session-storage-prismaShopify App Session Storage for Prisma
- @mikro-orm/sqlTypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.
- @mikro-orm/seederSeeder package for MikroORM.
- clickhouse-migrationsClickHouse Migrations
- generate-schemaEffortlessly convert your JSON Object to JSON Schema, Mongoose Schema, or a Generic template for quick documentation / upstart.
- @mikro-orm/decoratorsTypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.
- @react-awesome-query-builder/uiUser-friendly query builder for React. Core React UI
- dynamodb-toolboxLightweight and type-safe query builder for DynamoDB and TypeScript.
- @prisma/nextjs-monorepo-workaround-pluginEnsures that your Prisma files are copied
- prettier-plugin-prismaPrettier plugin for Prisma files
- @react-awesome-query-builder/coreUser-friendly query builder for React. Core
- prisma-dbml-generatorPrisma DBML Generator
- @casl/prismaAllows to query accessible records using Prisma client based on CASL rules
- prisma-zod-generatorPrisma 2+ generator to emit Zod schemas from your Prisma schema
- knex-dynamic-connectionAdds support for dynamically returning connection config for knex queries
- @opentelemetry/instrumentation-typeormOpenTelemetry instrumentation for `typeorm` database data-mapper ORM
- @nestjs-cls/transactional-adapter-prismaA Prisma adapter for @nestjs-cls/transactional
- kysely-typeormKysely dialect for TypeORM
- @svar-ui/react-filterSVAR React Filter is an advanced query builder for React, with AND/OR logic, nested filter groups, and JSON output.
- gql-query-builderSimple GraphQL Query Builder
- @datastax/astra-db-tsData API TypeScript client
- sql-template-tagES2015 tagged template string for preparing SQL statements, works with `pg`, `mysql`, `sqlite` and `oracledb`
- mongoose-aggregate-paginate-v2A page based custom aggregate pagination library for Mongoose with customizable labels.
- nestjs-paginatePagination and filtering helper method for TypeORM repositories or query builders using Nest.js framework.
- sequelize-autoAutomatically generate bare sequelize models from your database.
- @quramy/prisma-fabbrica Prisma generator for model factories
- drizzle-zeroGenerate Zero schemas from Drizzle ORM schemas
- @directus/schemaUtility for extracting information about existing DB schema
- bookshelfA lightweight ORM for PostgreSQL, MySQL, and SQLite3
- @mikro-orm/entity-generatorTypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.
- connect-session-sequelizeSession store for connect-session using sequelize
- @indexeddb-orm/idb-ormTypeScript ORM wrapper for indexeddb with Zod runtime validation, build on top of dexie.js
- @react-querybuilder/dndDrag-and-drop-enabled version of react-querybuilder (DnD-library-agnostic)
- workers-qbZero dependencies Query Builder for Cloudflare Workers
- drizzle-typeboxGenerate Typebox schemas from Drizzle ORM schemas
- adminjsAdmin panel for apps written in node.js
- mongoose-unique-validatormongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.
- @sequelize/coreSequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, Oracle, and IBM i. It features solid transaction support, relations, eager and lazy loading, read repli
- kysely vs @prisma/client
- drizzle-orm vs sequelize-typescript
- @prisma/client vs sequelize-typescript
- drizzle-orm vs typeorm
- kysely vs typeorm
- @prisma/client vs typeorm
- @prisma/client vs sequelize
- kysely vs sequelize-typescript
- drizzle-orm vs sequelize
- drizzle-orm vs @typegoose/typegoose
- @prisma/client vs knex
- kysely vs knex