Skip to content
JS
Package

pg

PostgreSQL client - pure javascript & libpq with the same API

v8.23.0, 8 Aug 2026MITESM + CommonJSTypes: NoneDatabase clients and drivers
$ npm install pg

Key numbers

As of 25 Sept 2026
Weekly downloads
38.5m
+308% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
6
Direct, from package.json
Last release
1 month ago
v8.23.0
GitHub stars
13.2k
1.4k forks
Open issues / PRs
451 / 80
Contributors
391
Commits, last 52 weeks
112

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60mSept 2025Mar 2026Sept 2026High 49.9m (25 Aug 2026)Low 7.8m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

38,536,630 downloads last week, 182,233,385 in the last month. The 12-month change of +308% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
9246 in total
Latest version
8.23.0, 8 Aug 20261 month ago
First published
19 Dec 2010
Last push to GitHub
24 Sept 20261 day before the snapshot
Repository archived
No
Open issues
451
Open pull requests
80
Commits, last 52 weeks
112
Dependents on npm
15,996

Major versions

  1. v8 first release 8.0.0, 30 Mar 2020
  2. v7 first release 7.0.0, 18 Jul 2017
  3. v6 first release 6.0.0, 22 Jun 2016
  4. v5 first release 5.0.0, 7 Jun 2016
  5. v4 first release 4.0.0, 20 Nov 2014
  6. v3 first release 3.0.2, 12 Apr 2014
  7. v2 first release 2.0.0, 19 Jun 2013
  8. v1 first release 1.0.0, 4 Apr 2013
  9. v0 first release 0.4.1, 1 May 2011

Recent releases

VersionPublished
8.23.08 Aug 2026
8.22.019 Jun 2026
8.21.018 May 2026
8.20.04 Mar 2026
8.19.025 Feb 2026
8.18.030 Jan 2026
8.17.220 Jan 2026
8.17.115 Jan 2026
8.17.014 Jan 2026
8.16.327 Jun 2025
8.16.219 Jun 2025
8.16.118 Jun 2025
8.16.012 May 2025
8.15.625 Apr 2025
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 16.0.0
Runtimes
-
Unpacked size (npm)
98 kB
Dependencies (6)
pgpasspg-poolpg-typespg-protocolpg-cloudflarepg-connection-string
Peer dependencies (1)
pg-native
npm install pg
  • jsDelivrhttps://cdn.jsdelivr.net/npm/pg@8.23.0/
  • unpkghttps://unpkg.com/pg@8.23.0/
  • esm.shhttps://esm.sh/pg@8.23.0
PackageWeekly downloadsGzipLast releaseModuleComparison
postgres12.2m-5 months agoESM only-
pgsql-ast-parser768.5k-7 months agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.