Prisma Compute
Deploy TypeScript services alongside Prisma Postgres, with hosting, database branches, and previews managed together.
Prisma Compute is a hosting platform for TypeScript services. It runs your application next to Prisma Postgres and gives every Git branch an isolated environment: its own service, environment variables, and optionally its own database.
Compute works with any supported TypeScript framework. It pairs with Prisma 8 and Prisma ORM for data access, but neither is required.
These docs use the Prisma 8 CLI, run as npx prisma@latest. Deployments come from a git push, the Console, or the deploy command for a Prisma Composer app. See Deployments for details.
Get started
Deploy your first service
Sign in, write the compute config, connect GitHub, and deploy on push.
Deploy quickstart
The short path: declare a new app or bring one you have, then deploy it with Composer.
If your application has several services that depend on each other or on databases, use Prisma Composer to declare them in TypeScript and deploy them together.
The model
Compute organizes everything into a few resources:
- A project groups one product or codebase.
- A branch maps to a Git branch in the linked repository. Each branch is an isolated environment with its own services, environment variables, and deployments, and can have its own database.
- A service is an HTTP application, such as a frontend or backend. Each deploy of a service creates a version. One version is live at a time.
The default Git branch (usually main) is the production branch. Every other branch is a preview branch with its own Compute resources: services, deployments, and environment variables. Data isolation is yours to configure. A preview deploy reads the preview-scoped variables. If preview work must not touch production data, point the preview DATABASE_URL at a non-production database. See Environment variables for details. After you set up deploy on push, pushing to a branch deploys that branch from your repository's GitHub Actions.
The animation below shows how a project, its branches, and their infrastructure fit together, and how each branch's variables resolve by scope:
For the full picture, see Branching.
CLI and Console
Use the CLI for anything you want to repeat: local development, CI, and agent workflows. Every command supports a --json flag that switches its output to machine-readable JSON, so scripts and agents can parse results instead of scraping terminal text.
Use the Console to view and manage projects, branches, services, and deployments in a browser instead of running commands.
What to read next
Once you have deployed something, read Deployments for logs, promoting, and rolling back, and Environment variables for configuration per scope. Object storage covers S3-compatible Object Store buckets, next to your databases in the same project. The CLI reference documents every command and flag. For what Compute can and can't do, read the known limitations.
