Prisma ORM lets TypeScript applications define data models in a contract file and query databases with type-safe APIs. Version eight rewrites the stack in TypeScript with extensibility and bundled agent skills.
Overview
Prisma ORM is a data access layer for TypeScript and JavaScript applications. Developers describe models in a contract file that drives generated clients, migrations, and queries without hand-writing SQL for routine work. The eighth major line is a TypeScript rewrite aimed at composable extensions and workflows where AI agents drive schema and query changes.
New projects can scaffold through an interactive CLI that pairs framework templates such as Next.js, Hono, Nuxt, Astro, NestJS, SvelteKit, TanStack Start, or Elysia with PostgreSQL or MongoDB wiring. Existing repos can run orm init to add prisma.config.ts, starter contract files, runtime packages, and emitted client code. Installers also place prisma-8.md and per-workflow SKILL.md files into agent skill directories for Claude Code, Cursor, Copilot-style runtimes, Devin, and others.
Database coverage lists PostgreSQL and MongoDB as first-class targets, with SQLite, MySQL, and MariaDB offered as proof-of-concept connectors through separate packages. A public service provider interface lets third parties ship database or tooling extensions on the same hooks used by first-party modules. Skills ship inside installed Prisma packages so agent instructions match the project version.
Prisma’s broader platform also offers managed Postgres and Compute hosting, but the ORM itself is used as a library inside your application code. Teams may connect to self-hosted Postgres or other supported databases while using only the ORM components.
Key features
- Declarative contract.prisma models
- Type-safe generated query client
- Interactive project scaffolder
- orm init for existing repos
- Bundled AI agent skill files
- Public extension SPI
- PostgreSQL and MongoDB support
- Proof-of-concept MySQL and MariaDB
Use cases
- Type-safe database access in TypeScript
- Agent-driven schema and query changes
- Bootstrapping full-stack app templates
- PostgreSQL or MongoDB application backends
- Custom database connectors via extensions