Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Guides

Next.js

Scaffold a Next.js app with Prisma ORM and Prisma Postgres, initialize the database, render your data, and deploy to Prisma Compute.

Astro

Scaffold an Astro site with Prisma ORM and Prisma Postgres, seed the database, render your data, and deploy to Prisma Compute, with tested commands.

Nuxt

Scaffold a Nuxt app with Prisma ORM and Prisma Postgres, initialize the database, render your data, and deploy to Prisma Compute.

SvelteKit

Scaffold a SvelteKit project with Prisma ORM and Prisma Postgres, initialize the database, seed it, and see your data, with tested commands.

SolidStart

Scaffold a SolidStart app, add Prisma ORM with orm init, initialize and seed PostgreSQL, expose users over an API route, and render them with loading and error states.

React Router

Add Prisma ORM and Prisma Postgres to a React Router framework-mode app: orm init, a typed contract, a seed script, loaders that read users and posts, and a form action that creates posts.

TanStack Start

Scaffold a TanStack Start project with Prisma ORM and Prisma Postgres, seed it, render your data, and deploy to Prisma Compute, with tested commands.

NestJS

Scaffold a NestJS API with Prisma ORM and Prisma Postgres, initialize the database, query it over HTTP, and deploy to Prisma Compute.

Hono

Scaffold a Hono API backed by Prisma ORM and Prisma Postgres, seed it, serve users over HTTP, add a POST route, and deploy to Prisma Compute.

Elysia (/docs/guides/frameworks/elysia)

Bun (/docs/guides/runtimes/bun)

Deno (/docs/guides/runtimes/deno)

Cloudflare Workers

Add Prisma ORM to a Cloudflare Worker with orm init, run typed PostgreSQL queries inside the fetch handler under nodejs_compat, test it with wrangler dev, and deploy with Wrangler.

Docker

Build an Express app on Prisma ORM, run PostgreSQL from Docker Compose, then containerize the app and run both services together with one command.

Turborepo

Set up Prisma 8 as a shared database package in a Turborepo monorepo, wire contract emit and migrations into turbo.json, and render data from a Next.js app.

pnpm workspaces (/docs/guides/deployment/pnpm-workspaces)

Bun workspaces (/docs/guides/deployment/bun-workspaces)

Clerk (with Next.js)

Learn how to use Prisma ORM in a Next.js app with Clerk Auth

Clerk (with Astro)

Learn how to use Prisma ORM in an Astro app with Clerk Auth

Better Auth (with Next.js)

Learn how to use Prisma ORM in a Next.js app with Better Auth

Better Auth (with Astro)

Learn how to use Prisma ORM in an Astro app with Better Auth

Auth.js (with Next.js)

Learn how to use Prisma ORM in a Next.js app with Auth.js

AI SDK (with Next.js)

Build a chat application with AI SDK, Prisma ORM, and Next.js that stores chat sessions and messages in Prisma Postgres.

Embedded Prisma Studio (with Next.js)

Embed Prisma Studio in a Next.js application with @prisma/studio-core so you can browse and edit your database from inside your app.

GitHub Actions

Provision and manage Prisma Postgres databases per pull request with GitHub Actions and the Prisma CLI: create the database, run migrations and seed it in CI, and clean it up on close.

Vercel app deployment (/docs/guides/integrations/vercel-deployment)

Prisma Postgres on Deno

Learn how to integrate Prisma Postgres in a Deno Deploy project using a minimal Deno application.

Datadog

Learn how to configure Datadog tracing for a Prisma ORM project. Capture spans for every query using the @prisma/instrumentation package, dd-trace, and view them in Datadog.

pgfence

Learn how to analyze Prisma migration SQL files with pgfence to detect dangerous lock patterns, understand risk levels, and get safe rewrite recipes before deploying.

Permit.io

Learn how to implement access control with Prisma ORM with Permit.io

Plasmic (/docs/guides/integrations/plasmic)

Shopify

Learn how to use Prisma Postgres with Shopify

Vercel

Create Prisma Postgres databases via the Vercel Marketplace and deploy Next.js apps with built-in connection pooling. No pgBouncer setup required.

Netlify

Learn how to create Prisma Postgres databases via the official Netlify extension and deploy your applications with it.

Fly.io (/docs/guides/postgres/flyio)

Firebase Studio (/docs/guides/postgres/idx)

Viewing data

Viewing and editing data in Prisma Postgres via Prisma Studio or other database GUIs.

Multiple databases

Give each database its own contract, prisma.config.ts, and Prisma ORM client, run the CLI per database with --config, render data from both in Next.js, and deploy to Vercel.

Expand-and-contract migrations

Expand a contract with a new column, backfill it with a typed dataTransform step in migration.ts, apply with db migrate, then drop the old column in a second migration.

Schema management in teams

Learn how a team collaborates on Prisma ORM migrations: what to commit, how to pull and apply teammates' changes, and how to resolve two branches that planned migrations from the same starting point.

Drizzle

Move a Drizzle app to Prisma ORM without touching the database: run orm init, infer and review a contract, sign the database, and swap the queries one route at a time.

SQL ORMs

Add Prisma ORM to an existing Sequelize or TypeORM project: infer a contract from the live database, sign it, and replace queries one at a time.

Mongoose

Add Prisma ORM to a Mongoose project, describe your collections in a contract, replace Mongoose queries and populate calls with typed Prisma ORM queries, and retire Mongoose.

Migrate from Supabase

Export application data from Supabase, restore it into Prisma Postgres, and reconnect your application.

Migrate from Neon

Export a selected Neon database, restore it into Prisma Postgres, and reconnect your application.

Upgrade to v7

Guide on how to upgrade to Prisma ORM 7

Upgrade to v6

Guides on how to upgrade to Prisma ORM 6

Upgrade to v5

Guides on how to upgrade to Prisma ORM 5

Upgrade to v4

Guides on how to upgrade to Prisma ORM 4

Upgrade to v3

Guides on how to upgrade to Prisma ORM 3

Upgrade to v1

Upgrading your project from Prisma 1 to Prisma ORM 2

Writing guides (/docs/guides/making-guides)

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu