</>PackageGraphPackageGraph

pg-protocol

npmv1.16.0TypeScript

The postgres client/server binary protocol, implemented in TypeScript

Safe to adopt

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

  • AAdoption: grade A, Excellent.

    43.8M downloads per week and 2 known dependents.

  • AMaintenance: grade A, Excellent.

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

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 196 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-protocol 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.

196 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
Types included
Install scripts
None

Dependencies

Declared by pg-protocol v1.16.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (7)

@types/chai ^4.2.7@types/mocha ^10.0.10@types/node ^16chai ^4.2.0mocha ^11.7.5ts-node ^8.5.4typescript ^6.0.3

Used by

Popular packages that depend on pg-protocol.

Relationship graph

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

@types/pgpgpg-protocol
pg-protocol dependencies dependents

Frequently installed together

Release history

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

Recent versions of pg-protocol
VersionPublishedSizeLicense
1.16.0latest1 month ago196 KBMIT
1.15.02 months ago195 KBMIT
1.14.03 months ago183 KBMIT
1.13.06 months ago183 KBMIT
1.12.06 months ago183 KBMIT
1.11.07 months ago183 KBMIT
1.10.31 year ago185 KBMIT
1.10.21 year ago185 KBMIT
1.10.11 year ago184 KBMIT
1.10.01 year ago184 KBMIT
1.9.51 year ago184 KBMIT
1.9.01 year ago184 KBMIT
1.8.1-alpha.01 year ago184 KBMIT
1.8.01 year ago184 KBMIT
1.7.11 year ago184 KBMIT

Overview

pg-protocol is an npm package that the postgres client/server binary protocol, implemented in TypeScript. It is extremely widely used, with about 43.8M downloads per week and 2 known dependents in the graph. The latest version is 1.16.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need the postgres client/server binary protocol, implemented in TypeScript and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (43.8M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

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

Maintainers

Frequently asked questions

Should I use pg-protocol?

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

How do I install pg-protocol?

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

What license is pg-protocol released under?

pg-protocol is distributed under the MIT license.

How popular is pg-protocol?

pg-protocol has approximately 43,752,752 downloads per week and 2 known dependent packages.

Is pg-protocol still maintained?

The most recent release of pg-protocol (v1.16.0) was published 1 month ago.

Does pg-protocol run install scripts?

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