</>PackageGraphPackageGraph

postgres

npmv3.4.9TypeScript

Fastest full featured PostgreSQL client for Node.js

Safe to adopt

Yes — postgres scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 157 days ago. 5 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 157 days ago. 5 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 293 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    Unlicense — 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 postgres 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.

293 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
node >=12
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the postgres README.

// db.js
import postgres from 'postgres'

const sql = postgres({ /* options */ }) // will use psql environment variables

export default sql

postgres vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
postgresthis page01Unlicense5 months ago
pg46.3M5MIT1 day ago
drizzle-orm19M0Apache-2.01 day ago
knex01MIT1 day ago
@electric-sql/pglite02Apache-2.01 day ago
pg-pool43.5M1MIT1 day ago

Used by

Popular packages that depend on postgres.

Relationship graph

Dependencies (left) and dependents (right) of postgres.

drizzle-ormpostgres
postgres dependencies dependents

Frequently installed together

Release history

4 releases in the last two years, typically about 48 days apart.

Recent versions of postgres
VersionPublishedSizeLicense
3.4.9latest5 months ago293 KBUnlicense
3.4.88 months ago293 KBUnlicense
3.4.71 year ago291 KBUnlicense
3.4.61 year ago291 KBUnlicense
3.4.51 year ago289 KBUnlicense
3.4.42 years ago289 KBUnlicense
3.4.32 years ago289 KBUnlicense
3.4.22 years ago289 KBUnlicense
3.4.12 years ago286 KBUnlicense
3.4.02 years ago286 KBUnlicense
3.3.53 years ago205 KBUnlicense
3.3.43 years ago204 KBUnlicense
3.3.33 years ago203 KBUnlicense
3.3.23 years ago203 KBUnlicense
3.3.13 years ago201 KBUnlicense

Overview

postgres is an npm package that fastest full featured PostgreSQL client for Node.js. It has 1 known dependents in the graph. The latest version is 3.4.9, released under the Unlicense license.

Who should use it

Teams working in the npm ecosystem who need fastest full featured PostgreSQL client for Node.js and value a focused 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

  • Ships TypeScript type definitions.
  • Clear open-source license (Unlicense).
  • Zero runtime dependencies — minimal footprint.

Cons

  • No significant drawbacks detected from available metadata.

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

Maintainers

Keywords

Funding

Frequently asked questions

Should I use postgres?

Yes — postgres scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 157 days ago. 5 releases in the last 2 years.

How do I install postgres?

Run `npm install postgres` to add postgres to your npm project.

What license is postgres released under?

postgres is distributed under the Unlicense license.

How popular is postgres?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on postgres.

Is postgres still maintained?

The most recent release of postgres (v3.4.9) was published 5 months ago.

Does postgres run install scripts?

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