# Prisma ORM

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

Repository: https://github.com/prisma/orm
Canonical: https://ross.abutalabs.com/products/prisma-orm
Homepage: https://www.prisma.io
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: prisma, orm, database, typescript, javascript, nodejs, mariadb, mysql, postgresql, sqlserver, sql-server, mssql, sqlite, mongodb, prisma-client, postgres, cockroachdb, query-builder, loggy-core, loggy-terminal
Last push: 2026-08-26T15:39:22+00:00
Link (homepage): https://www.prisma.io
Link (site_page): https://www.prisma.io/pricing
Link (site_page): https://www.prisma.io/postgres
Link (site_page): https://www.prisma.io/docs
Link (site_page): https://www.prisma.io/orm

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 2631, "days_push": 7, "days_rel": 8, "gap_med": 12.0, "n_releases_24m": 55}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 47564, forks 2533 (observed 2026-08-28T04:12:11.256139+00:00)

## What it is
Prisma is a next-generation ORM for Node.js and TypeScript that generates a fully type-safe client from a declarative schema, supporting PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB, and CockroachDB. The ecosystem also includes a CLI for migrations, Prisma Studio for browsing data, and a commercial platform offering managed Postgres and TypeScript app hosting.

## Use cases
- type-safe database queries in a TypeScript app
- manage database schema migrations from a declarative schema
- connect a Node.js backend to PostgreSQL, MySQL, or MongoDB
- browse and edit database rows with a GUI
- model relational data with autocomplete and compile-time error checking
- prevent destructive migrations from running against production data
- scaffold a full-stack TypeScript app with database and hosting

## When to choose
- you want end-to-end type safety from schema to query results in TypeScript
- you need multi-database support with one consistent API
- you value a strong migration workflow that guards against data loss
- your team wants excellent autocomplete and developer experience

## When to avoid
- you need raw SQL control or very fine-tuned query performance beyond what the ORM exposes
- you work outside the Node.js/TypeScript ecosystem
- you want a lightweight query builder with no code generation step
- you plan to use the experimental Prisma Next rewrite in production before it is stable

## Facets
- artifact type: library
- maturity: active
- function: orm, database, database-driver, cli, developer-tools
- domain: databases, backend, web-development, developer-tools, apis
- platform: cross-platform, cli
- tags: type-safe-queries, schema-first, query-builder, migrations, postgresql, mysql, sqlite, mongodb, sql-server, cockroachdb, mariadb, ai-agent-friendly, prisma-next, managed-postgres, app-hosting, nodejs, typescript, javascript

## Member repositories
- prisma/orm (main) score 99
- prisma/prisma-examples (examples) score 77
- prisma/studio (plugin) score 97
- prisma/prisma-client-js (mirror) score 10
- prisma/prisma-engines (backend) score 77
- prisma/web (docs) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:11.256139+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:21:01.117754+00:00, confidence not recorded.
  - readme: https://github.com/prisma/orm (fetched 2026-08-28T04:12:11.256139+00:00, sha b9eef5b7daa4)
  - homepage: https://www.prisma.io (fetched 2026-08-29T07:42:30.807066+00:00, sha 14ee62f5ad2c)
  - site_page: https://www.prisma.io/docs (fetched 2026-08-29T07:42:30.813029+00:00, sha c373d1327c38)
  - site_page: https://www.prisma.io/pricing (fetched 2026-08-29T07:42:30.810472+00:00, sha 3aff5ab9678e)
  - site_page: https://www.prisma.io/postgres (fetched 2026-08-29T07:42:30.817131+00:00, sha 04096137ea26)
  - site_page: https://www.prisma.io/orm (fetched 2026-08-29T07:42:30.815136+00:00, sha 0c40a8e813ed)
  - site_page: https://www.prisma.io/compute (fetched 2026-08-29T07:42:30.819190+00:00, sha 4e24099bc63f)
  - site_page: https://www.prisma.io/changelog (fetched 2026-08-29T07:42:30.821132+00:00, sha 1d6006830b53)
  - site_page: https://www.prisma.io/company (fetched 2026-08-29T07:42:30.823052+00:00, sha 93581528d6fa)
- Data as of 2026-08-30T08:39:29.467469+00:00.
