pg-native
npmv3.8.0A slightly nicer interface to Postgres over node-libpq
Overview
pg-native is an npm package that a slightly nicer interface to Postgres over node-libpq. It is very popular, with about 173.4K downloads per week and 2 known dependents in the graph. The latest version is 3.8.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a slightly nicer interface to Postgres over node-libpq and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to 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 (173.4K weekly downloads).
- Clear open-source license (MIT).
Cons
- 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-native.
Dependencies
Runtime (2)
Dev (8)
Used by
Popular packages that depend on pg-native.
Alternatives to pg-native
PostgreSQL client - pure javascript & libpq with the same API
Connection pool for node-postgres
Module for reading .pgpass
Drizzle ORM package for SQL databases
Fastest full featured PostgreSQL client for Node.js
AWS RDS SSL certificates bundles.
Low-level native bindings to PostgreSQL libpq
Functions for dealing with a PostgreSQL connection string
sql named placeholders to unnamed compiler
Type safe SQL query builder
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
PGlite is a WASM Postgres build packaged into a TypeScript client library that enables you to run Postgres in the browser, Node.js and Bun, with no need to install any other dependencies. It is only 3.7mb gzipped.
Frequently installed together
A socket implementation that can run on Cloudflare Workers using native TCP connections.
Next generation testing framework powered by Vite
The postgres client/server binary protocol, implemented in TypeScript
Functions for dealing with a PostgreSQL connection string
PostgreSQL client - pure javascript & libpq with the same API
Connection pool for node-postgres
Module for reading .pgpass
TypeScript typings for Cloudflare Workers
Like which(1) unix command. Find the first instance of an executable in the PATH.
Version history
| Version | Published | License |
|---|---|---|
| 3.8.0latest | 2 months ago | MIT |
| 3.7.0 | 4 months ago | MIT |
| 3.6.0 | 4 months ago | MIT |
| 3.5.2 | 1 year ago | MIT |
| 3.5.1 | 1 year ago | MIT |
| 3.5.0 | 1 year ago | MIT |
| 3.4.5 | 1 year ago | MIT |
| 3.4.1 | 1 year ago | MIT |
| 3.4.0 | 1 year ago | MIT |
| 3.3.1-alpha.0 | 1 year ago | MIT |
| 3.3.0 | 1 year ago | MIT |
| 3.2.2 | 1 year ago | MIT |
| 3.2.1 | 1 year ago | MIT |
| 3.2.0 | 1 year ago | MIT |
| 3.1.0 | 2 years ago | MIT |
| 3.0.2 | 2 years ago | MIT |
| 3.0.1 | 3 years ago | MIT |
| 3.0.0 | 8 years ago | MIT |
| 2.2.0 | 9 years ago | MIT |
| 2.0.1 | 9 years ago | MIT |
Maintainers
Frequently asked questions
How do I install pg-native?
Run `npm install pg-native` to add pg-native to your npm project.
What license is pg-native released under?
pg-native is distributed under the MIT license.
How popular is pg-native?
pg-native has approximately 173,434 downloads per week and 2 known dependent packages.