pg-protocol
npmv1.16.0TypeScriptThe 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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)
Used by
Popular packages that depend on pg-protocol.
Relationship graph
Dependencies (left) and dependents (right) of pg-protocol.
Frequently installed together
TypeScript definitions for node
A socket implementation that can run on Cloudflare Workers using native TCP connections.
Next generation testing framework powered by Vite
Connection pool for node-postgres
Functions for dealing with a PostgreSQL connection string
Module for reading .pgpass
generator async control flow goodness
A slightly nicer interface to Postgres over node-libpq
TypeScript typings for Cloudflare Workers
Release history
15 releases in the last two years, typically about 41 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.16.0latest | 1 month ago | 196 KB | MIT |
| 1.15.0 | 2 months ago | 195 KB | MIT |
| 1.14.0 | 3 months ago | 183 KB | MIT |
| 1.13.0 | 6 months ago | 183 KB | MIT |
| 1.12.0 | 6 months ago | 183 KB | MIT |
| 1.11.0 | 7 months ago | 183 KB | MIT |
| 1.10.3 | 1 year ago | 185 KB | MIT |
| 1.10.2 | 1 year ago | 185 KB | MIT |
| 1.10.1 | 1 year ago | 184 KB | MIT |
| 1.10.0 | 1 year ago | 184 KB | MIT |
| 1.9.5 | 1 year ago | 184 KB | MIT |
| 1.9.0 | 1 year ago | 184 KB | MIT |
| 1.8.1-alpha.0 | 1 year ago | 184 KB | MIT |
| 1.8.0 | 1 year ago | 184 KB | MIT |
| 1.7.1 | 1 year ago | 184 KB | MIT |
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.