TypeScript ORM

Open-source TypeScript projects categorized as ORM

Top 23 TypeScript ORM Projects

  • Prisma

    Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

    Project mention: End-To-End Polymorphism: From Database to UI, Achieving SOLID Design | dev.to | 2024-03-28

    Unfortunately Prisma hasn’t supported polymorphism yet. As such, you can't use inheritance to model the entity in the same way as in your programming language, as depicted in the above class diagram. The good news is that we could intimate it using table inheritance to imitate it.

  • TypeORM

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

    Project mention: NodeJS Security Best Practices | dev.to | 2024-02-19

    If you use Sequalize, TypeORM or for MongoDB, we have Mongoose these types of ORM tools, then you are safe by default because these help us against the SQL query injection attacks by default.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

  • Sequelize

    Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.

    Project mention: Full Stack Web Development Concept map | dev.to | 2024-03-23

    Sequelize - modern Typescript and NodeJS ORM for Oracle, Postgres, MySQL, MariaDB, SQLite, SQL Server+docs

  • drizzle-orm

    Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅

    Project mention: Don't use your ORM entities for everything – embrace the SQL | news.ycombinator.com | 2024-03-29

    Drizzle [1] comes pretty close the last time I checked.

    [1]: https://orm.drizzle.team

  • MikroORM

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

    Project mention: Rust GraphQL APIs for NodeJS Developers: Introduction | dev.to | 2024-02-08

    In my usual NodeJS tech stack, which includes GraphQL, NestJS, SQL (predominantly PostgreSQL with MikroORM), I encountered these limitations. To overcome them, I've developed a new stack utilizing Rust, which still offers some ease of development:

  • marshal.ts

    A new full-featured and high-performance TypeScript framework

    Project mention: Deepkit Enterprise TypeScript Framework | news.ycombinator.com | 2023-12-09
  • sequelize-auto

    Automatically generate bare sequelize models from your database.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • supabase-js

    An isomorphic Javascript client for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse typescript examples, invoke postgres functions via rpc, invoke supabase edge functions, query pgvector.

    Project mention: Chrome Extension MV3 Template : Supabase Auth, Plasmo, Tailwinds CSS & Shadcn UI | dev.to | 2023-08-13
  • sequelize-typescript

    Decorators and some other features for sequelize

    Project mention: Preferred ORM? | /r/Deno | 2023-07-09

    I am using sequelize. Works decent. https://github.com/sequelize/sequelize-typescript

  • remult

    Full-stack CRUD, simplified, with SSOT TypeScript entities

  • vuex-orm

    The Vuex plugin to enable Object-Relational Mapping access to the Vuex Store.

  • denodb

    MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno

    Project mention: denodb VS denodata - a user suggested alternative | libhunt.com/r/denodb | 2023-11-29
  • foal

    Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.

    Project mention: FoalTS – A Full-Featured Node.js Framework | news.ycombinator.com | 2023-05-18
  • zenstack

    Typescript toolkit on top of Prisma ORM, offering flexible and declarative Access Control Policy(Authorization/Permission) for RBAC/ABAC/PBAC/ReBAC with auto-generated type-safe APIs and frontend hooks.

    Project mention: The Many Ways Not to Build an API | dev.to | 2024-04-01

    Another strategy is to model access control declaratively and enforce it in the application layer. ZenStack (built above Prisma ORM) and Hasura are good examples of this approach. The following code shows how access policies are defined with ZenStack and how a secured CRUD API can be derived automatically.

  • zapatos

    Zero-abstraction Postgres for TypeScript: a non-ORM database library

    Project mention: Zapatos: Zero-Abstraction Postgres for TypeScript | news.ycombinator.com | 2023-10-14
  • layr

    Dramatically simplify full‑stack development

  • data

    Data modeling and relation library for testing JavaScript applications. (by mswjs)

    Project mention: What direction can I take to mocking a data structure that is relational on the front-end while I wait for backend endpoints to be created? | /r/Frontend | 2023-12-09
  • dynamodb-onetable

    DynamoDB access and management for one table designs with NodeJS

    Project mention: CustomMetrics -- Simple, Cost-Effective Metrics for AWS | dev.to | 2023-09-19

    SenseDeep can be used to view CustomMetrics graphs and data. You can also create alarms and receive alert notifications based on CustomMetric data expressions.

  • Iridium

    A high performance MongoDB ORM for Node.js

  • schemix

    Schemix allows you to programmatically create Prisma schemas using TypeScript ⌨️

  • orchid-orm

    Orchid ORM

  • typedorm

    Strongly typed ORM for DynamoDB - Built with the single-table-design pattern in mind.

  • pinia-orm

    The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-04-01.

TypeScript ORM related posts


What are some of the best open-source ORM projects in TypeScript? This list will help you:

Project Stars
1 Prisma 36,992
2 TypeORM 33,213
3 Sequelize 29,009
4 drizzle-orm 19,263
5 MikroORM 7,092
6 marshal.ts 3,059
7 sequelize-auto 2,859
8 supabase-js 2,771
9 sequelize-typescript 2,726
10 remult 2,653
11 vuex-orm 2,363
12 denodb 1,905
13 foal 1,850
14 zenstack 1,582
15 zapatos 1,215
16 layr 1,209
17 data 736
18 dynamodb-onetable 656
19 Iridium 567
20 schemix 471
21 orchid-orm 459
22 typedorm 442
23 pinia-orm 412
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.