Prompt Buddy logoPrompt Buddy

prisma · Prisma Docs

Prisma SvelteKit (/docs/guides/frameworks/sveltekit)

A guide for integrating Prisma ORM with a Prisma Postgres database within a SvelteKit project, covering project scaffolding, dependency installation, and initial configuration.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Prisma SvelteKit (/docs/guides/frameworks/sveltekit)

A guide for integrating Prisma ORM with a Prisma Postgres database within a SvelteKit project, covering project scaffolding, dependency installation, and initial configuration.

When To Use

Use when you need to scaffold a SvelteKit project and manually configure Prisma ORM to connect to a Prisma Postgres database.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/prisma-sveltekit-docs-guides-frameworks-workflow-guide.mdA guide explaining how to integrate Prisma ORM with the SvelteKit framework for full-stack database access.Questions about a guide explaining how to integrate Prisma ORM with the SvelteKit framework for full-stack database access.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-project-initial.bashThe bash command used to scaffold a new SvelteKit project using the Prisma template.Exact payloads, commands, or snippets shown in The bash command used to scaffold a new SvelteKit project using the Prisma template.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-pnpm-create-tem.bashA bash command to initialize a new SvelteKit project using the Prisma template via pnpm.Exact payloads, commands, or snippets shown in A bash command to initialize a new SvelteKit project using the Prisma template via pnpm.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-project-initial-2.bashA bash command to create a new Prisma project using the SvelteKit template.Exact payloads, commands, or snippets shown in A bash command to create a new Prisma project using the SvelteKit template.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-bun-project-ini.bashA bash command to initialize a new SvelteKit project using the Prisma template via the Bun package manager.Exact payloads, commands, or snippets shown in A bash command to initialize a new SvelteKit project using the Prisma template via the Bun package manager.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-project-initial-3.bashThe bash command used to initialize a new SvelteKit project with Prisma using the sv create CLI tool.Exact payloads, commands, or snippets shown in The bash command used to initialize a new SvelteKit project with Prisma using the sv create CLI tool.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-project-initial-4.bashA bash command to initialize a new SvelteKit project with Prisma using the sv create CLI tool.Exact payloads, commands, or snippets shown in A bash command to initialize a new SvelteKit project with Prisma using the sv create CLI tool.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-project-initial-5.bashA bash command to initialize a new SvelteKit project with Prisma using the sv create CLI tool.Exact payloads, commands, or snippets shown in A bash command to initialize a new SvelteKit project with Prisma using the sv create CLI tool.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-bunx-project-in.bashA bash command to initialize a new SvelteKit project with Prisma using the bunx CLI.Exact payloads, commands, or snippets shown in A bash command to initialize a new SvelteKit project with Prisma using the bunx CLI.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-dev-setup-comma.bashBash commands to navigate to the sveltekit-prisma directory and start the development server using npm.Exact payloads, commands, or snippets shown in Bash commands to navigate to the sveltekit-prisma directory and start the development server using npm.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-dev-setup.bashBash commands to navigate to the sveltekit-prisma directory and start the development server using pnpm.Exact payloads, commands, or snippets shown in Bash commands to navigate to the sveltekit-prisma directory and start the development server using pnpm.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-dev-server-setu.bashBash commands to navigate to the sveltekit-prisma directory and start the development server using yarn.Exact payloads, commands, or snippets shown in Bash commands to navigate to the sveltekit-prisma directory and start the development server using yarn.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-dev-server-setu-2.bashCommands to navigate to the sveltekit-prisma directory and start the development server using bun.Exact payloads, commands, or snippets shown in Commands to navigate to the sveltekit-prisma directory and start the development server using bun.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-install-depende.bashBash command to install prisma, tsx, and postgres types as development dependencies for a SvelteKit project.Exact payloads, commands, or snippets shown in Bash command to install prisma, tsx, and postgres types as development dependencies for a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-pnpm-install-de.bashA bash command to install prisma, tsx, and postgres types as development dependencies using pnpm.Exact payloads, commands, or snippets shown in A bash command to install prisma, tsx, and postgres types as development dependencies using pnpm.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-installation-co.bashBash commands to install prisma, tsx, and postgres type definitions as development dependencies for a SvelteKit project.Exact payloads, commands, or snippets shown in Bash commands to install prisma, tsx, and postgres type definitions as development dependencies for a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-bun-dependency-.bashA bash command to install prisma, tsx, and postgres types using the bun package manager for a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command to install prisma, tsx, and postgres types using the bun package manager for a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-npm-install-dep.bashThe bash command to install Prisma client, PostgreSQL adapter, and dotenv dependencies for a SvelteKit project.Exact payloads, commands, or snippets shown in The bash command to install Prisma client, PostgreSQL adapter, and dotenv dependencies for a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-pnpm-install-de-2.bashA bash command to install Prisma client, PostgreSQL adapter, dotenv, and pg using pnpm for a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command to install Prisma client, PostgreSQL adapter, dotenv, and pg using pnpm for a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-installation-co-2.bashBash commands to install Prisma client, PostgreSQL adapter, and dotenv dependencies for a SvelteKit project.Exact payloads, commands, or snippets shown in Bash commands to install Prisma client, PostgreSQL adapter, and dotenv dependencies for a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-bun-dependency--2.bashA bash command to install Prisma client, PostgreSQL adapter, dotenv, and pg using the bun package manager for a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command to install Prisma client, PostgreSQL adapter, dotenv, and pg using the bun package manager for a Svelt...
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-init-command.bashThe bash command to initialize Prisma with a custom output directory for a SvelteKit project.Exact payloads, commands, or snippets shown in The bash command to initialize Prisma with a custom output directory for a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-init-command-2.bashA bash command to initialize Prisma within a SvelteKit project using a custom output directory.Exact payloads, commands, or snippets shown in A bash command to initialize Prisma within a SvelteKit project using a custom output directory.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-init-command-3.bashA bash command to initialize Prisma within a SvelteKit project and specify a custom output directory for the generated client.Exact payloads, commands, or snippets shown in A bash command to initialize Prisma within a SvelteKit project and specify a custom output directory for the generate...
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-bunx-init-comma.bashA bash command to initialize Prisma within a SvelteKit project using bunx and specifying a custom output directory.Exact payloads, commands, or snippets shown in A bash command to initialize Prisma within a SvelteKit project using bunx and specifying a custom output directory.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-setup-command.bashThe bash command used to initialize a new project with Prisma and SvelteKit.Exact payloads, commands, or snippets shown in The bash command used to initialize a new project with Prisma and SvelteKit.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-pnpm-create-db-.bashA bash command to initialize a database using pnpm dlx create-db within a Prisma SvelteKit project.Exact payloads, commands, or snippets shown in A bash command to initialize a database using pnpm dlx create-db within a Prisma SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-create-db-comma.bashA bash command using yarn dlx to execute the create-db utility for a Prisma SvelteKit project.Exact payloads, commands, or snippets shown in A bash command using yarn dlx to execute the create-db utility for a Prisma SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-bunx-create-db-.bashA bash command used to initialize a database within a Prisma SvelteKit project using bunx.Exact payloads, commands, or snippets shown in A bash command used to initialize a database within a Prisma SvelteKit project using bunx.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-definition.prismaA Prisma schema file defining User and Post models for use within a SvelteKit application.Exact payloads, commands, or snippets shown in A Prisma schema file defining User and Post models for use within a SvelteKit application.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-vite-config-typ.tsA TypeScript configuration file for Vite demonstrating how to integrate Prisma within a SvelteKit project environment.Exact payloads, commands, or snippets shown in A TypeScript configuration file for Vite demonstrating how to integrate Prisma within a SvelteKit project environment.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-init-migration-.bashA bash command to initialize a Prisma database migration within a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command to initialize a Prisma database migration within a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-pnpm-migrate-de.bashA bash command to initialize a Prisma database migration using pnpm in a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command to initialize a Prisma database migration using pnpm in a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-migrate-dev-ini.bashA bash command to initialize a Prisma database migration within a SvelteKit project using yarn dlx.Exact payloads, commands, or snippets shown in A bash command to initialize a Prisma database migration within a SvelteKit project using yarn dlx.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-bunx-migrate-de.bashA bash command using bunx to run a Prisma database migration within a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command using bunx to run a Prisma database migration within a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-generate-comman.bashThe bash command used to generate the Prisma client within a SvelteKit project.Exact payloads, commands, or snippets shown in The bash command used to generate the Prisma client within a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-pnpm-generate-c.bashA bash command to generate the Prisma client using pnpm dlx within a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command to generate the Prisma client using pnpm dlx within a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-generate-comman-2.bashThe bash command used to generate the Prisma client within a SvelteKit project using yarn dlx.Exact payloads, commands, or snippets shown in The bash command used to generate the Prisma client within a SvelteKit project using yarn dlx.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-bunx-generate-c.bashA bash command to generate the Prisma client using bunx within a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command to generate the Prisma client using bunx within a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-typescript-clie.typescriptA TypeScript code example demonstrating how to initialize the PrismaClient and define user data types within a SvelteKit application.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize the PrismaClient and define user data types within a Svelte...
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-config-setup.tsA TypeScript configuration file demonstrating the setup of Prisma within a SvelteKit project environment.Exact payloads, commands, or snippets shown in A TypeScript configuration file demonstrating the setup of Prisma within a SvelteKit project environment.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-db-seed-command.bashA bash command used to execute the Prisma database seeding process within a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command used to execute the Prisma database seeding process within a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-db-seed-command-2.bashA bash command to execute the Prisma database seeding process within a SvelteKit project using pnpm.Exact payloads, commands, or snippets shown in A bash command to execute the Prisma database seeding process within a SvelteKit project using pnpm.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-db-seed-command-3.bashA bash command to execute the Prisma database seeding process within a SvelteKit project using yarn dlx.Exact payloads, commands, or snippets shown in A bash command to execute the Prisma database seeding process within a SvelteKit project using yarn dlx.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-bun-db-seed-com.bashA bash command used to execute the Prisma database seeding process using the Bun runtime within a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command used to execute the Prisma database seeding process using the Bun runtime within a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-studio-launch-c.bashA bash command to launch Prisma Studio within a SvelteKit project environment.Exact payloads, commands, or snippets shown in A bash command to launch Prisma Studio within a SvelteKit project environment.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-studio-launch-c-2.bashA bash command to launch Prisma Studio using pnpm dlx within a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command to launch Prisma Studio using pnpm dlx within a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-studio-launch-c-3.bashA bash command to launch Prisma Studio using the yarn dlx runner within a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command to launch Prisma Studio using the yarn dlx runner within a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-bunx-prisma-stu.bashA bash command to run Prisma Studio using the Bun runtime within a SvelteKit project.Exact payloads, commands, or snippets shown in A bash command to run Prisma Studio using the Bun runtime within a SvelteKit project.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-database-adapte.tsxA TypeScript implementation demonstrating how to initialize the PrismaClient with a PostgreSQL adapter within a SvelteKit application.Exact payloads, commands, or snippets shown in A TypeScript implementation demonstrating how to initialize the PrismaClient with a PostgreSQL adapter within a Svelt...
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-typescript-load.typescriptA TypeScript code example demonstrating how to use a Prisma client instance within a SvelteKit load function to fetch data.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use a Prisma client instance within a SvelteKit load function to fetch...
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-typescript-load-2.typescriptA TypeScript example demonstrating how to use a Prisma client instance within a SvelteKit load function to fetch users with included posts.Exact payloads, commands, or snippets shown in A TypeScript example demonstrating how to use a Prisma client instance within a SvelteKit load function to fetch user...
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-setup-guide.htmlAn HTML document demonstrating the integration and configuration of Prisma within a SvelteKit application framework.Exact payloads, commands, or snippets shown in An HTML document demonstrating the integration and configuration of Prisma within a SvelteKit application framework.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-setup.htmlAn HTML example demonstrating the integration of Prisma with SvelteKit using TypeScript and the $props rune.Exact payloads, commands, or snippets shown in An HTML example demonstrating the integration of Prisma with SvelteKit using TypeScript and the $props rune.
examples/prisma-sveltekit-docs-guides-frameworks-prisma-sveltekit-data-fetching-t.htmlAn HTML template demonstrating how to iterate over Prisma data objects within a SvelteKit component using the $props rune.Exact payloads, commands, or snippets shown in An HTML template demonstrating how to iterate over Prisma data objects within a SvelteKit component using the $props...

What This Skill Covers

  • SvelteKit (/docs/guides/frameworks/sveltekit)
  • Main sections: npm, pnpm, yarn, bun, npm.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://www.prisma.io/docs/guides/frameworks/sveltekit