postgres
npmv3.4.9TypeScriptFastest 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.
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
- 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 sqlpostgres vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| postgresthis page | 0 | 1 | Unlicense | 5 months ago |
| pg | 46.3M | 5 | MIT | 1 day ago |
| drizzle-orm | 19M | 0 | Apache-2.0 | 1 day ago |
| knex | 0 | 1 | MIT | 1 day ago |
| @electric-sql/pglite | 0 | 2 | Apache-2.0 | 1 day ago |
| pg-pool | 43.5M | 1 | MIT | 1 day ago |
Used by
Popular packages that depend on postgres.
Relationship graph
Dependencies (left) and dependents (right) of postgres.
Frequently installed together
TypeScript definitions for pg
PostgreSQL client - pure javascript & libpq with the same API
Type safe SQL query builder
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
libSQL driver for TypeScript and JavaScript
Fastest SQLite for React Native (with node.js support)
Public API for OpenTelemetry
Provides access to a database using SQLite (https://www.sqlite.org/). The database is persisted across restarts of your app.
A Fetch API-compatible PlanetScale database driver
The fastest and simplest library for SQLite in Node.js.
AWS SDK for JavaScript Rds Data Client for Node.js, Browser and React Native
TypeScript definitions for better-sqlite3
Release history
4 releases in the last two years, typically about 48 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.4.9latest | 5 months ago | 293 KB | Unlicense |
| 3.4.8 | 8 months ago | 293 KB | Unlicense |
| 3.4.7 | 1 year ago | 291 KB | Unlicense |
| 3.4.6 | 1 year ago | 291 KB | Unlicense |
| 3.4.5 | 1 year ago | 289 KB | Unlicense |
| 3.4.4 | 2 years ago | 289 KB | Unlicense |
| 3.4.3 | 2 years ago | 289 KB | Unlicense |
| 3.4.2 | 2 years ago | 289 KB | Unlicense |
| 3.4.1 | 2 years ago | 286 KB | Unlicense |
| 3.4.0 | 2 years ago | 286 KB | Unlicense |
| 3.3.5 | 3 years ago | 205 KB | Unlicense |
| 3.3.4 | 3 years ago | 204 KB | Unlicense |
| 3.3.3 | 3 years ago | 203 KB | Unlicense |
| 3.3.2 | 3 years ago | 203 KB | Unlicense |
| 3.3.1 | 3 years ago | 201 KB | Unlicense |
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
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.