# pg-protocol

> The postgres client/server binary protocol, implemented in TypeScript

Latest version **1.16.0** (published 2026-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install pg-protocol
pnpm add pg-protocol
yarn add pg-protocol
bun add pg-protocol
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.16.0 |
| Published | 2026-08-08 |
| First published | 2020-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 196.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13214 |
| Maintainers | brianc |

## Links

- npm: https://www.npmjs.com/package/pg-protocol
- Repository: https://github.com/brianc/node-postgres
- Homepage: https://github.com/brianc/node-postgres#readme
- Issues: https://github.com/brianc/node-postgres/issues
- npm.io page: https://npm.io/package/pg-protocol

## Recent versions

- 1.16.0 (latest) — 2026-08-08
- 1.8.1-alpha.0 (beta) — 2025-04-21
- 1.15.0 — 2026-06-19
- 1.14.0 — 2026-05-18
- 1.13.0 — 2026-03-04
- 1.12.0 — 2026-02-25
- 1.11.0 — 2026-01-14
- 1.10.3 — 2025-06-27
- 1.10.2 — 2025-06-19
- 1.10.1 — 2025-06-18
- 1.10.0 — 2025-05-12
- 1.9.5 — 2025-04-23
- 1.9.0 — 2025-04-22
- 1.8.0 — 2025-03-11
- 1.7.1 — 2025-02-11
- … 12 more at https://npm.io/package/pg-protocol/versions

## README

# pg-protocol

Low level postgres wire protocol parser and serializer written in Typescript. Used by node-postgres. Needs more documentation. :smile:

---
_Source: https://npm.io/package/pg-protocol · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
