</>PackageGraphPackageGraph

pg

npmv8.22.0

PostgreSQL client - pure javascript & libpq with the same API

36.2M
Weekly downloads
0
Dependents
17
Dependencies
91/100
Popularity

Overview

pg is an npm package that postgreSQL client - pure javascript & libpq with the same API. It is extremely widely used, with about 36.2M downloads per week. The latest version is 8.22.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need postgreSQL client - pure javascript & libpq with the same API and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, 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 (36.2M weekly downloads).
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (17 direct dependencies) increases install size and audit surface.
  • No bundled TypeScript types (may require a separate @types package).

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

Relationship graph

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

Dependencies

Dev (9)

@cloudflare/vitest-pool-workers 0.8.23@cloudflare/workers-types ^4.20230404.0async 2.6.4bluebird 3.7.2co 4.6.0pg-copy-streams 0.3.0typescript ^6.0.3vitest ~3.0.9wrangler ^3.x

Used by

Popular packages that depend on pg.

Alternatives to pg

Frequently installed together

Version history

VersionPublishedLicense
8.22.0latest1 month agoMIT
8.21.02 months agoMIT
8.20.04 months agoMIT
8.19.04 months agoMIT
8.18.05 months agoMIT
8.17.26 months agoMIT
8.17.16 months agoMIT
8.17.06 months agoMIT
8.16.31 year agoMIT
8.16.21 year agoMIT
8.16.11 year agoMIT
8.16.01 year agoMIT
8.15.61 year agoMIT
8.15.51 year agoMIT
8.15.21 year agoMIT
8.15.11 year agoMIT
8.15.01 year agoMIT
8.14.2-alpha.11 year agoMIT
8.14.2-alpha.01 year agoMIT
8.14.11 year agoMIT

Maintainers

Keywords

Frequently asked questions

How do I install pg?

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

What license is pg released under?

pg is distributed under the MIT license.

How popular is pg?

pg has approximately 36,210,333 downloads per week.