10 Best JavaScript MySQL ORM 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
1d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

@prisma/client

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: Built-In
User Rating
4.7/ 5
12
Top Feedback
7Great Documentation
7Easy to Use
2Poor Documentation
GitHub Stars
17K
Weekly Downloads
262K
Last Commit
1d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

typeorm

ORM for TypeScript and JavaScript (ES7, ES6, ES5). Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.4/ 5
74
Top Feedback
11Easy to Use
11Poor Documentation
6Performant
GitHub Stars
26K
Weekly Downloads
810K
Last Commit
4d 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
4d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

sequelize

An easy-to-use multi SQL dialect ORM tool for Node.js

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

mikro-orm

TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL and SQLite databases.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
4
Top Feedback
3Responsive Maintainers
2Great Documentation
1Performant
GitHub Stars
4K
Weekly Downloads
2K
Last Commit
3d 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
17d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

bookshelf

A simple Node.js ORM for PostgreSQL, MySQL and SQLite3 built on top of Knex.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
3.8/ 5
4
Top Feedback
N/A
GitHub Stars
6K
Weekly Downloads
85K
Last Commit
8mos ago
Bundle Size (min+gzip)
61.5KB
Not Tree-Shakeable
jug

jugglingdb

Multi-database ORM for nodejs: redis, mongodb, mysql, sqlite3, postgresql, arango, in-memory...

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.5/ 5
2
Top Feedback
1Great Documentation
1Highly Customizable
GitHub Stars
2K
Weekly Downloads
1K
Last Commit
2yrs ago
Bundle Size (min+gzip)
0.98KB
Not Tree-Shakeable

@mikro-orm/core

TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL and SQLite databases.

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

@mikro-orm/mysql

TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL and SQLite databases.

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

wetland

A Node.js ORM, mapping-based. Works with MySQL, PostgreSQL, SQLite and more.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
259
Weekly Downloads
0
Last Commit
1yr ago
Bundle Size (min+gzip)
136.6KB
Not Tree-Shakeable
leo

leoric

👑 JavaScript ORM for MySQL, PostgreSQL, and SQLite.

License Icon
License: BSD-3-Clause
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
122
Weekly Downloads
146
Last Commit
4hrs ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

waterline

An adapter-based ORM for Node.js with support for mysql, mongo, postgres, mssql (SQL Server), and more

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
5K
Weekly Downloads
29K
Last Commit
4d ago
Bundle Size (min+gzip)
176.8KB
Not Tree-Shakeable
orm

orm

Object Relational Mapping

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

like-mysql

Simple and intuitive ORM for MySQL

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

hapi-sequelize

Hapi plugin for the Sequelize ORM

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

mysql-orm

ORM frontend for MySQL, uses JSON schema to define tables and relationships. This supports automatic table re-generation with indexes, default values, foreign keys, reference options, query logging and more.

License Icon
License: GPL-2.0-only
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
2
Last Commit
N/A
Bundle Size (min+gzip)
123.8KB
Not Tree-Shakeable

@simplenodeorm/simplenodeorm

Node ORM for MySQL, Oracle and PostgreSQL

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