</>PackageGraphPackageGraph

pg-pool

npmv3.14.0

Connection pool for node-postgres

Safe to adopt

Yes — pg-pool scores well across adoption, maintenance, weight, supply chain, and licensing. 43.5M downloads per week and 1 known dependents. Last published 114 days ago. 16 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    43.5M downloads per week and 1 known dependents.

  • BMaintenance: grade B, Good.

    Last published 114 days ago. 16 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 29 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding pg-pool to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

29 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the pg-pool README.

const Pool = require('pg-pool')

// by default the pool uses the same
// configuration as whatever `pg` version you have installed
const pool = new Pool()

// you can pass properties to the pool
// these properties are passed unchanged to both the node-postgres Client constructor
// and the pool constructor, allowing you to fully configure the behavior of both
const pool2 = new Pool({
  database: 'postgres',
  user: 'brianc',
  password: 'secret!',
  port: 5432,
Example truncated — see the full README.

pg-pool vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
pg-poolthis page43.5M1MIT3 months ago
pg46.3M5MIT1 day ago
drizzle-orm19M0Apache-2.01 day ago
postgres01Unlicense1 day ago
pgpass33M1MIT1 day ago
knex01MIT1 day ago

Dependencies

Declared by pg-pool v3.14.0. Runtime dependencies are installed with the package; dev dependencies are not.

Peer (1)

Dev (5)

bluebird 3.7.2co 4.6.0expect.js 0.3.1lodash ^4.17.11mocha ^11.7.5

Used by

Popular packages that depend on pg-pool.

Relationship graph

Dependencies (left) and dependents (right) of pg-pool.

pgpg-pool
pg-pool dependencies dependents

Frequently installed together

Release history

15 releases in the last two years, typically about 37 days apart.

Recent versions of pg-pool
VersionPublishedSizeLicense
3.14.0latest3 months ago29 KBMIT
3.13.06 months ago29 KBMIT
3.12.06 months ago28 KBMIT
3.11.07 months ago28 KBMIT
3.10.11 year ago29 KBMIT
3.10.01 year ago29 KBMIT
3.9.61 year ago29 KBMIT
3.9.51 year ago29 KBMIT
3.9.21 year ago29 KBMIT
3.9.11 year ago29 KBMIT
3.9.01 year ago29 KBMIT
3.8.1-alpha.11 year ago29 KBMIT
3.8.1-alpha.01 year ago29 KBMIT
3.8.01 year ago68 KBMIT
3.7.11 year ago68 KBMIT

Overview

pg-pool is an npm package that connection pool for node-postgres. It is extremely widely used, with about 43.5M downloads per week and 1 known dependents in the graph. The latest version is 3.14.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need connection pool for node-postgres and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (43.5M weekly downloads).
  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use pg-pool?

Yes — pg-pool scores well across adoption, maintenance, weight, supply chain, and licensing. 43.5M downloads per week and 1 known dependents. Last published 114 days ago. 16 releases in the last 2 years.

How do I install pg-pool?

Run `npm install pg-pool` to add pg-pool to your npm project.

What license is pg-pool released under?

pg-pool is distributed under the MIT license.

How popular is pg-pool?

pg-pool has approximately 43,483,281 downloads per week and 1 known dependent packages.

Is pg-pool still maintained?

The most recent release of pg-pool (v3.14.0) was published 3 months ago.

Does pg-pool run install scripts?

No. pg-pool does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.