# Prisma Compute (/docs/compute)

> For the complete Prisma documentation index, see [llms.txt](https://www.prisma.io/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL.

Deploy TypeScript services alongside Prisma Postgres, with hosting, database branches, and previews managed together.

Location: Prisma Compute

Prisma Compute is a hosting platform for TypeScript services. It runs your application next to [Prisma Postgres](https://www.prisma.io/docs/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](https://www.prisma.io/docs/v8) and [Prisma ORM](https://www.prisma.io/docs/orm) for data access, but neither is required.

> [!NOTE]
> Public Beta
> 
> Prisma Compute is in [Public Beta](https://www.prisma.io/docs/console/more/feature-maturity#public-beta). These docs use the Prisma 8 RC CLI, run as `npx prisma@next`. Deployments come from a git push, the [Console](https://pris.ly/pdp), or [Prisma Composer](https://www.prisma.io/docs/composer). See [Deployments](https://www.prisma.io/docs/compute/deployments) for details.

## Get started [#get-started]

- [Deploy your first service](https://www.prisma.io/docs/compute/getting-started): Sign in, write the compute config, connect GitHub, and deploy on push.

- [Deploy quickstart](https://www.prisma.io/docs/prisma-compute/deploy): The short path: declare a new app or bring one you have, then deploy it with Composer.

Building an application with several services that depend on each other or on databases? Use [Prisma Composer](https://www.prisma.io/docs/composer) to declare them in TypeScript and deploy them together.

## The model [#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 **deployment**. One deployment 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](https://www.prisma.io/docs/compute/environment-variables) for details. After you [connect a GitHub repository](https://www.prisma.io/docs/compute/github), pushing to a branch builds and deploys that branch automatically.

The animation below shows how a project, its branches, and their infrastructure fit together, and how each branch's variables resolve by scope:

<ConceptAnimation name="compute-model" />

For the full picture, see [Branching](https://www.prisma.io/docs/compute/branching).

## CLI and Console [#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](https://pris.ly/pdp)** to view and manage projects, branches, services, and deployments in a browser instead of running commands.

## What to read next [#what-to-read-next]

Once you have deployed something, read [Deployments](https://www.prisma.io/docs/compute/deployments) for logs, promoting, and rolling back, and [Environment variables](https://www.prisma.io/docs/compute/environment-variables) for configuration per scope. [Object storage](https://www.prisma.io/docs/compute/object-storage) covers S3-compatible Object Store buckets, next to your databases in the same project. [Configuration](https://www.prisma.io/docs/compute/configuration) documents every field of `prisma.compute.ts`, and the [CLI reference](https://www.prisma.io/docs/cli/v8) documents every command and flag. Before relying on the beta in production, read the [known limitations](https://www.prisma.io/docs/compute/limitations).

## Related pages

- [`Build faster with Prisma + AI`](https://www.prisma.io/docs/ai): Build faster with Prisma and AI coding tools like Cursor, Codex, and ChatGPT
- [`Console`](https://www.prisma.io/docs/console): Learn how to use the Console to manage and integrate Prisma products into your application.
- [`Deploy the full Prisma stack`](https://www.prisma.io/docs/full-stack-tutorial): A single tutorial from empty directory to live URL, with Prisma 8, Prisma Postgres, and Prisma Compute.
- [`Guides`](https://www.prisma.io/docs/guides): A collection of guides for various tasks and workflows
- [`Introduction to Prisma 8`](https://www.prisma.io/docs/v8): Prisma 8 is the next major version of Prisma ORM, available as a Release Candidate.