10 Best Node.js PostgresSQL Query Builder Libraries

Curated by the Openbase team and community.Learn more

Curated by the Openbase team and community. Learn more

prisma

Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite & MongoDB (Preview)

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.7/ 5
10
Top Feedback
9Great Documentation
6Easy to Use
5Performant
GitHub Stars
17K
Weekly Downloads
316K
Last Commit
2d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

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
24
Top Feedback
18Great Documentation
12Easy to Use
11Performant
GitHub Stars
15K
Weekly Downloads
955K
Last Commit
1d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

objection

An SQL-friendly ORM for Node.js

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

fxsql

Node.js Functional SQL Query Builder & ORM

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
170
Weekly Downloads
17
Last Commit
5mos ago
Bundle Size (min+gzip)
N/A
Tree-Shakeable

@sqorn/pg

A Javascript library for building SQL queries

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

node-querybuilder

Node QueryBuilder Adapter for Node.js (tags: nodejs, node, mysql, active record, activerecord, querybuilder, query builder)

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
43
Weekly Downloads
149
Last Commit
2yrs ago
Bundle Size (min+gzip)
329.9KB
Not Tree-Shakeable

anydb-sql

Minimal node ORM for mysql, postgresql and sqlite with complete arbitrary SQL query support

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
38
Weekly Downloads
84
Last Commit
3yrs ago
Bundle Size (min+gzip)
311.0KB
Not Tree-Shakeable
mod

modelar

An expressive ORM with query builder and supports multiple kinds of database.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
53
Weekly Downloads
18
Last Commit
2yrs ago
Bundle Size (min+gzip)
112.0KB
Not Tree-Shakeable
flu

fluorite

Lightweight ORM based on Knex.js query builder.

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

sql-query-builder

Define models and associations and let QB write your SQL.

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

sqorn-pg

A Javascript library for building SQL queries

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