Prisma 8
A look at Prisma 8, a ground-up rethink of Prisma that improves queries, extensibility, migrations, and AI-friendly workflows while keeping Prisma’s schema-first approach.
Prisma 8 is a full TypeScript rewrite of Prisma ORM. It keeps the schema-first workflow and model-first queries you already know, and rebuilds everything underneath to be extensible, composable, and AI-agent friendly by default.
Instead of compiling your schema into a heavy generated client, Prisma 8 treats your schema as a versioned contract: open, inspectable artifacts that your code, your tools, and AI agents can all rely on.
Prisma 8 is the next major version of Prisma ORM, now available as a Release Candidate. It’s the cutting-edge version of Prisma ORM and will become the future of Prisma, so we’d love for you to try it, explore what’s new, and share your feedback in Discord.
If you want to stay on the current generally available version of Prisma ORM, you can continue with Prisma 7.
Why Prisma 8
Prisma's current architecture tightly couples three layers: the schema language, the generated client, and runtime execution. That coupling makes Prisma harder to extend, slower to rebuild, and opaque to the tools that read your code. Prisma 8 rebuilds the data layer around a contract-first model with a small, extensible core:
- Better queries: a cleaner API with simpler nested queries, custom collection methods on your models, and streaming results, plus a low-level, type-safe SQL query builder for the cases that need raw control.
- Extensible by design: a minimal core exposed through a public SPI. Everything around it, including Postgres support itself, is an extension, so you can add databases, query builders, data types, and middleware.
- Rethought migrations: graph-based migrations that resolve branch conflicts automatically and make partial failures safe to retry, with both schema and data migrations written in TypeScript and validated against your contract.
- AI-agent friendly: your schema compiles to a machine-readable contract, every query produces a structured, inspectable plan, and middleware adds compile-time guardrails. The installers also register agent skills so your editor's AI assistant can drive Prisma 8 changes safely.
How it works
Prisma 8 is contract-first:
- Author your schema: define your models in a Prisma schema (
.prisma) or directly in TypeScript. - Emit the contract: a lightweight build step turns the schema into a deterministic JSON contract plus TypeScript types, artifacts you can read and diff.
- Query with a composable DSL: write queries inline against the typed contract, and each one compiles to a verifiable plan at runtime with no hidden client methods.
Scaffold a new project in one command:
bunx create-prisma@nextGet started
Quickstart
Scaffold a Prisma 8 app with PostgreSQL, seed it, and run your first query.
Add to an existing project
Add Prisma 8 to an existing app with the orm init command.
The full stack path
Prisma 8 with Prisma Postgres and a Prisma Compute deploy, with guide and agent options.
Supported databases
Prisma 8 ships first-class support for PostgreSQL (the primary target, on track for general availability) and MongoDB. SQLite is the next SQL target on deck, with MySQL to follow.
The Prisma 8 blog series
Prisma 8 is being built in the open. The full story spans this nine-part series:
- The Next Evolution of Prisma ORM. The announcement that explains why Prisma is being rebuilt and tours the new query API, extensibility model, migrations, and AI-friendly design.
- Prisma 8 Roadmap. What is already built and the phased plan that runs through early access to general availability.
- Rethinking Database Migrations. How graph-based migrations replace timestamp ordering with schema state hashes, keeping branches reconcilable and migrations explicit and verifiable.
- TypeScript Migrations in Prisma 8. Writing schema migrations in TypeScript that are checked against your contract at compile time.
- Data Migrations in Prisma 8. Running type-safe data transformations alongside schema changes with the same query builder you use in your app.
- Prisma 8: A Call for Extension Authors. An invitation for the community to build databases, extensions, and integrations on the new extension API.
- Prisma 8: April Milestone Complete, the Extension API Is Open. The extension API opens with its first community extensions (pgvector, arktype-json, ParadeDB, and CipherStash), plus progress across migrations, transactions, and MongoDB.
- Prisma 8 Early Access: Write Your Contract, Prompt Your Agent, Ship Your App. The early access launch and the agent-driven workflow it enables.
- Prisma 8 Is ~90% As Fast as Raw PG. Benchmarks showing Prisma 8 reaching roughly 90% of the raw PostgreSQL driver's throughput at a fraction of the bundle size.
Prisma 8 is in active development, and full conceptual and reference documentation is on the way. Follow along on the Prisma blog and explore the source on GitHub.
Next steps
Get started
Scaffold a new Prisma 8 app or add it to an existing project.
Learn the fundamentals
Read, write, and relate data with the ORM, run transactions, and reach for advanced queries when you need them.
Quickstart with PostgreSQL
Create a Prisma 8 app, initialize the database, seed data, and run your first query.
The data contract
Learn how your schema becomes a verifiable contract, authored in PSL or TypeScript.
See your migrations in Studio
Read your applied migration history in Prisma Studio: a visual diff, the executed SQL, and a schema diff per migration.