not sure about the best but I have used kysely + kysely codegen and have no problem plus the DX is good Answer from saltmurai on reddit.com
Reddit
reddit.com › r/node › best orm for postgresql in node.js?
r/node on Reddit: Best ORM for PostgreSQL in Node.js?
September 3, 2024 -
I have experience working with MongoDB using Mongoose in Node.js, but now I'm planning to switch to PostgreSQL. I’m not sure which ORM to use for PostgreSQL. Can anyone suggest the best ORM for working with PostgreSQL in Node.js?
Top answer 1 of 62
52
Drizzle is nice to work with
2 of 62
36
I use Prisma, works well with PostgreSQL: https://www.prisma.io/docs/orm/overview/databases/postgresql
Medium
medium.com › @sysglobalsolutionsblog › conexión-a-una-base-de-datos-postgreql-con-node-js-y-sequelize-d93b0546e4cc
ORM en acción 💪: Conectando Node.js con PostgreSQL mediante Sequelize 🐘🤩 | by SysGlobal | Software Consulting | Medium
February 19, 2025 - Sequelize es un ORM para Node.js que se utiliza para interactuar con bases de datos relacionales, como MySQL, PostgreSQL, SQLite, y MSSQL, utilizando objetos y JavaScript en lugar de consultas SQL directas. Sequelize fue diseñado para ser utilizado en entornos de Node.js y es ampliamente utilizado en aplicaciones web y proyectos de backend escritos en este lenguaje. Sequelize a su vez, facilita la definición de modelo de datos, la validación, las relaciones e implementación de lógica de negocio en aplicaciones Nodejs.
Videos
24:04
Node.js & PostgreSQL CRUD Tutorial with Prisma ORM | Express API ...
12:31
Connect Node.js with PostgreSQL using Prisma ORM | Test API with ...
6. Connect your Node.js API to PostgreSQL using the ...
02:09:29
Build Scalable REST APIs in Node.js with Express, Postgres & ...
Medium
medium.com › @diego.coder › orm-in-action-connecting-node-js-to-postgresql-using-sequelize-104c08f1719f
ORM in action 💪: Connecting Node.js to PostgreSQL using Sequelize 🐘🤩 | by Code & Chill | Medium
February 19, 2025 - Sequelize is an ORM for Node.js that is used to interact with relational databases, such as MySQL, PostgreSQL, SQLite, and MSSQL, using objects and JavaScript instead of direct SQL queries.
Sequelize
sequelize.org
Sequelize | Feature-rich ORM for modern TypeScript ...
Sequelize is a modern TypeScript and Node.js ORM for Oracle, Postgres, MySQL, MariaDB, SQLite and SQL Server, and more. Featuring solid transaction support, relations, eager and lazy loading, read replication and more.
Top answer 1 of 8
17
node-orm2 looks good: supports association, validators, and mysql, postgres, and mongo (in beta)
UPDATE: The node-orm2 package is no longer maintained. Possible alternatives include bookshelf or sequelize.
2 of 8
8
SequelizeJS - models, validation and migrations
BookshelfJS - a promise based ORM looks quite promising
DEV Community
dev.to › miku86 › nodejs-postgresql-orm-overview-3mcn
NodeJS & PostgreSQL: ORM Overview - DEV Community
September 14, 2019 - The server talks with the ORM and the ORM talks to the database. The ORM creates objects, that map to the relational data. It handles your queries, so you don't have to write native SQL, you can query the database with your application language. sequelize: Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server
GitHub
github.com › typeorm › typeorm
GitHub - typeorm/typeorm: TypeScript & JavaScript ORM for Node.js — supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, and more.
TypeScript & JavaScript ORM for Node.js — supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, and more. - typeorm/typeorm
Starred by 36.6K users
Forked by 6.6K users
Languages TypeScript 99.8% | JavaScript 0.2%
npm
npmjs.com › package › @mikro-orm › postgresql
@mikro-orm/postgresql - npm
April 1, 2026 - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL, SQLite (including libSQL), MSSQL and Oracle databases.
» npm install @mikro-orm/postgresql
Published Apr 10, 2026
Version 7.0.10
LogRocket
blog.logrocket.com › home › node.js orms: why you shouldn’t use them
Node.js ORMs: Why you shouldn’t use them - LogRocket Blog
June 4, 2024 - However, as the most popular Node.js ORM and with around 1.35 million weekly downloads at the time of writing this article, Sequelize puzzles us with its popularity. Although we made valid points in the previous section, we have to note that 1.35 million people cannot be wrong weekly. So let’s look at some of the reasons one might use Sequelize in the first place: Sequelize can layer over a wide range of databases such as Oracle, Postgres, MySQL, MariaDB, SQLite, DB2, Microsoft SQL Server, and Snowflake
YouTube
youtube.com › beyond fireship
I tried 8 different Postgres ORMs - YouTube
Let's compare 8 ways to work with SQL databases in a JavaScript project like Node.js or Next.js. Analyze the pros and cons of libraries and ORMs that can run...
Published May 25, 2023 Views 407K
Better Stack
betterstack.com › community › guides › scaling-nodejs › prisma-orm
Getting Started with Prisma ORM for Node.js and PostgreSQL | Better Stack Community
If your database has no tables yet, read https://pris.ly/d/getting-started 2. Set the provider of the datasource block in schema.prisma to match your database: postgresql, mysql, sqlite, sqlserver, mongodb or cockroachdb. 3. Run prisma db pull to turn your database schema into a Prisma schema. 4. Run prisma generate to generate the Prisma Client. You can then start querying your database. 5. Tip: Explore how you can extend the ORM with scalable connection pooling, global caching, and real-time database events.
npm
npmjs.com › package › orm
orm - npm
March 13, 2025 - If using Nodejs >= 14 & Postgres, you must use pg driver >= 8.1.
» npm install orm
Published Mar 13, 2025
Version 8.0.1