10 Best JavaScript PostgresSQL Libraries

Curated by the Openbase team and community.Learn more

Curated by the Openbase team and community. Learn more

knex

A query builder for PostgreSQL, MySQL, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.3/ 5
23
Top Feedback
18Great Documentation
12Easy to Use
11Performant
GitHub Stars
15K
Weekly Downloads
955K
Last Commit
3d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
pg

pg

PostgreSQL client for node.js.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.5/ 5
28
Top Feedback
13Great Documentation
12Easy to Use
8Performant
GitHub Stars
10K
Weekly Downloads
2M
Last Commit
3mos ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

@supabase/supabase-js

An isomorphic Javascript client for Supabase.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
5
Top Feedback
1Performant
1Bleeding Edge
1Responsive Maintainers
GitHub Stars
543
Weekly Downloads
14K
Last Commit
22d ago
Bundle Size (min+gzip)
N/A
Tree-Shakeable

postgraphile

Execute one command (or mount one Node.js middleware) and get an instant high-performance GraphQL API for your PostgreSQL database!

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.8/ 5
6
Top Feedback
3Highly Customizable
2Easy to Use
2Performant
GitHub Stars
11K
Weekly Downloads
21K
Last Commit
1d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
pos

postgres

Postgres.js - The Fastest full featured PostgreSQL client for Node.js

License Icon
License: WTFPL
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.0/ 5
4
Top Feedback
3Great Documentation
3Easy to Use
1Responsive Maintainers
GitHub Stars
2K
Weekly Downloads
26K
Last Commit
23d ago
Bundle Size (min+gzip)
7.20KB
Not Tree-Shakeable

@cubejs-backend/postgres-driver

📊 Cube.js — Open-Source Analytics API for Building Data Apps

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
11K
Weekly Downloads
5K
Last Commit
3d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
pqs

pg-query-stream

PostgreSQL client for node.js.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
10K
Weekly Downloads
107K
Last Commit
3mos ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
cps

connect-pg-simple

A simple, minimal PostgreSQL session store for Connect/Express

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
183
Weekly Downloads
21K
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
tp

ts-postgres

Non-blocking PostgreSQL client for Node.js written in TypeScript.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
63
Weekly Downloads
22K
Last Commit
22d ago
Bundle Size (min+gzip)
9.17KB
Not Tree-Shakeable

zipkin-instrumentation-postgres

Zipkin instrumentation for Node.js and browsers

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
507
Weekly Downloads
2K
Last Commit
8mos ago
Bundle Size (min+gzip)
7.29KB
Not Tree-Shakeable
np

node-postgres

PostgreSQL client for node.js.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
2K
Last Commit
1yr ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
pos

postgrexpress

This package generates an Rest API for PostgreSQL.

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
2
Weekly Downloads
10
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
ea

express-admin

MySQL, MariaDB, SQLite, PostgreSQL admin for NodeJS

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
155
Last Commit
2yrs ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
pc

postgrest-client

Advanced client for the PostgREST API

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
142
Weekly Downloads
28
Last Commit
6yrs ago
Bundle Size (min+gzip)
4.67KB
Not Tree-Shakeable