npm
npmjs.com › package › pg
pg - npm
June 19, 2026 - PostgreSQL client - pure javascript & libpq with the same API. Latest version: 8.22.0, last published: a month ago. Start using pg in your project by running `npm i pg`. There are 15136 other projects in the npm registry using pg.
» npm install pg
Published Jun 19, 2026
Version 8.22.0
npm
npmjs.com › package › postgres
postgres - npm
April 5, 2026 - Fastest full featured PostgreSQL client for Node.js. Latest version: 3.4.9, last published: 3 months ago. Start using postgres in your project by running `npm i postgres`. There are 1149 other projects in the npm registry using postgres.
» npm install postgres
Published Apr 05, 2026
Version 3.4.9
Which postgreSQL node.js client library to choose today?
I’m a big fan of postgres.js ( https://github.com/porsager/postgres ). It’s minial and straightforward but you have to know how to sql. In fact I don’t really like ORMs. Most of the time I feel it makes things over complicated for nothing and I’ll never use any other databases than postgres. Dev mode included. As everyone should in my opinion (trying to get each environements the same for testing/debuging purpose is a hughe plus). Moreover it’s fast. More on reddit.com
What package do you guys use for postgres in node js?
pg-promise raw sql + simple helpers, not an orm More on reddit.com
19:51
How to use PostgreSQL and connect it to NodeJS - YouTube
connect node js express js project to postgresql server ...
- YouTube
02:43
Conectando Nodejs ao Postgresql - Torne-se um Programador. - YouTube
How to connect PostgreSQL database server from node js ...
08:42
How to connect PostgreSQL using Node JS and Fetch Data Tutorial ...
node-postgres
node-postgres.com
node-postgres
node-postgres supports every version of the PostgreSQL database from 8.x to the most recent version of PostgreSQL. node-postgres supports all current and LTS versions of node as well as bun, deno, and cloudflare workers. $ npm install pg · node-postgres continued development and support is made possible by the many supporters.
npm
npmjs.com › package › postgrejs
postgrejs - npm
April 3, 2026 - Professional PostgreSQL client NodeJS. Latest version: 2.23.0, last published: 3 months ago. Start using postgrejs in your project by running `npm i postgrejs`. There are 4 other projects in the npm registry using postgrejs.
» npm install postgrejs
Published Apr 03, 2026
Version 2.23.0
GitHub
github.com › brianc › node-postgres
GitHub - brianc/node-postgres: PostgreSQL client for node.js. · GitHub
Non-blocking PostgreSQL client for Node.js (and bun, deno, cloudflare, etc...). Pure JavaScript and optional native libpq bindings. This repo is a monorepo which contains the core pg module as well as a handful of related modules. pg · pg-pool · pg-native · pg-cursor · pg-query-stream · pg-connection-string · pg-protocol · npm install pg ·
Starred by 13.2K users
Forked by 1.3K users
Languages JavaScript 79.4% | TypeScript 19.6%
npm
npmjs.com › package › embedded-postgres
embedded-postgres - npm
June 5, 2026 - A package to run an embedded Postgresql database right from NodeJS. Latest version: 18.4.0-beta.17, last published: a month ago. Start using embedded-postgres in your project by running `npm i embedded-postgres`. There are 105 other projects ...
» npm install embedded-postgres
Published Jun 05, 2026
Version 18.4.0-beta.17
npm
npmjs.com › package › postgresql-client
postgresql-client - npm
July 22, 2024 - Enterprise level PostgreSQL client for JavaScript. Latest version: 2.13.0, last published: 2 years ago. Start using postgresql-client in your project by running `npm i postgresql-client`. There are 6 other projects in the npm registry using postgresql-client.
» npm install postgresql-client
Published Jul 22, 2024
Version 2.13.0
npm
npmjs.com › package › postgresql-easy
postgresql-easy - npm
This is a Node module that makes it very simple to interact with PostgreSQL databases. It has the same API as https://github.com/mvolkmann/mysql-easier. To install this, run npm install -S postgresql-easy
» npm install postgresql-easy
Published Sep 21, 2023
Version 1.3.0
npm
npmjs.com › search
psql - npm search
[](https://www.npmjs.com/package/@salsita/psql)   [! dolezel• 1.0.3 • 6 years ago • 0 dependents • MITpublished version 1.0.3, 6 years ago0 dependents licensed under $MIT ... paulovieira• 0.0.1 • a year ago • 0 dependents • MITpublished version 0.0.1, a year ago0 dependents licensed under $MIT ... Command-line interface for Supabase Lite - browser-based PostgreSQL database.
node-postgres
node-postgres.com › features › connecting
Connection URI
5 days ago - import pg from 'pg' const { Pool, Client } = pg const connectionString = 'postgresql://dbuser:[email protected]:3211/mydb' const pool = new Pool({ connectionString, }) await pool.query('SELECT NOW()') await pool.end() const client = new Client({ connectionString, }) await client.connect() await client.query('SELECT NOW()') await client.end()
Reddit
reddit.com › r/node › which postgresql node.js client library to choose today?
r/node on Reddit: Which postgreSQL node.js client library to choose today?
August 17, 2023 -
Raw queries, ORM, Query builder, code generators etc which pg client library would you choose with Node.js today in production?
Popular ones are: 1] Knex 2] Sequalize 3] TypeORM 4] Prisma 5] Drizzle 6] MikroORM
If you can also comment on "why" that would also be great. If there is any new recommendation that is also great
Top answer 1 of 13
10
I’m a big fan of postgres.js ( https://github.com/porsager/postgres ). It’s minial and straightforward but you have to know how to sql. In fact I don’t really like ORMs. Most of the time I feel it makes things over complicated for nothing and I’ll never use any other databases than postgres. Dev mode included. As everyone should in my opinion (trying to get each environements the same for testing/debuging purpose is a hughe plus). Moreover it’s fast.
2 of 13
8
Prisma & Drizzle are good for me. Drizzle is more lightweight and faster but Prisma is more mature and more abstracted. They are quite similar in many things. I had best experience with both. TypeORM - I don't really like it anymore. It has good TS support, I like declaring schema with decoratos but... There is .save() method and it performs UPSERTS. Sure, you have .update() and .insert() methods, but they return RAW results without entity typings. I also often find myself using TypeORM's query builder - there is also no typings for results. At the end of the day, I had to take care of mapping results to entity on my own. Sequelize - it was my first ORM, when started with Node.js; Nowadays it's well known for lack of good TypeScript support. MikroORM - I never used, but it seems to be similar to TypeORM. I hope it handles things better than TypeORM. Knex - it's fine query builder.
DigitalOcean
digitalocean.com › community › tutorials › how-to-use-postgresql-with-node-js-on-ubuntu-20-04
How To Use PostgreSQL With Node.js on Ubuntu 20.04 | DigitalOcean
November 30, 2021 - In this tutorial, you’ll use node-postgres to connect and query the PostgreSQL (Postgres in short) database. First, you’ll create a database user and the database in Postgres. You will then connect your application to the Postgres database using the node-postgres module.
Stack Overflow
stackoverflow.com › questions › 45911938 › creating-postgresql-database-upon-npm-install
node.js - Creating PostgreSQL Database upon npm install - Stack Overflow
I have a package for npm that I have built locally for a couple of months. In order to have it work properly, it requires access to a PostgreSQL database. Therefore it needs to, preferably, auto-ru...
npm
npmjs.com › package › node-postgres
node-postgres - npm
PostgreSQL client for node.js.
» npm install node-postgres
Published Jun 16, 2020
Version 0.6.2
OVHcloud
us.ovhcloud.com › home › how to access a postgresql from node.js application ?
How to access a PostgreSQL from Node.js application ?
Use `npm install ` afterwards to install a package and save it as a dependency in the package.json file. Press ^C at any time to quit. package name: (nodejs-pg-example) version: (1.0.0) description: Example project to access PostgreSQL from a Node.js application entry point: (index.js) test ...
npm
npmjs.com › package › @modelcontextprotocol › server-postgres
@modelcontextprotocol/server-postgres - npm
December 4, 2024 - { "mcpServers": { "postgres": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb" ] } } }
» npm install @modelcontextprotocol/server-postgres
Published Dec 04, 2024
Version 0.6.2
Reddit
reddit.com › r/postgresql › what package do you guys use for postgres in node js?
r/PostgreSQL on Reddit: What package do you guys use for postgres in node js?
June 20, 2021 -
I've heard of pg, knex, postgraphile, and a bunch of different orms.
Which ones do you guys use? I have been using an sqlite driver this whole time but I'm looking to transition to postgres. Not really looking for an orm, but something which is reliable.
DEV Community
dev.to › opeoginni › how-to-use-the-postgresjs-library-jh
Using the Postgres.js library - DEV Community
June 16, 2023 - For our local database we just created it will look like this postgresql://user:password@127.0.0.1:5432/DB. Keep this URL safe as we need it to connect to our database. Next we need to install the Postgres.Js library, you can learn more on this library here. You can install it by running this command · npm i postgres ·