项目 / prisma/prisma-examples

prisma/prisma-examples

行业推荐
语言 TypeScript标签 prismaexamplesboilerplategraphqltypescriptnodejsprisma-client数据更新 2026-11-25 06:49:28 · 仓库 2026-11-23

一段话介绍

🚀 Ready-to-run Prisma example projects

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
🚀 Ready-to-run Prisma example projects
6,651累计星
1,469Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

智能题库与自动阅卷

适配系统:考试系统、题库系统 · 得分 1.3

提供组卷、作答与自动评分链路,可嵌入考试系统降低教师批改成本。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
安装或使用说明见 https://www.prisma.io/docs/orm/prisma-schema/overview/generators#prisma-client-early-access。
特点或设计要点
示例按主题分组,主要包括:Prisma ORM 的全栈与仅后端示例(如 Next.js、Nuxt、SvelteKit、Remix 以及 GraphQL、tRPC、REST 等组合);数据库相关示例;Prisma Accelerate、Prisma Compute;以及部署平台示例。此外还列出可用于参考的实际项目和 Starter kits。默认分支为 `latest`。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-10-27 · 语言 TypeScript · 贡献者 —
typescript

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,正文较长,已截断:保留前 20000 字符(原始 25,388 字节),完整内容见 GitHub 仓库。

<br />

<div align="center">
  <h1>Prisma Examples</h1>
  <p><h3 align="center">Ready-to-run Prisma example projects 🚀</h3></p>
  <a href="https://www.prisma.io/">Website</a>
  <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
  <a href="https://www.prisma.io/docs/">Docs</a>
  <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
  <a href="https://www.prisma.io/blog">Blog</a>
  <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
  <a href="https://pris.ly/discord?utm_source=github&utm_medium=prisma_examples&utm_content=repo_readme">Discord</a>
  <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
  <a href="https://pris.ly/x?utm_source=github&utm_medium=prisma_examples&utm_content=repo_readme">Twitter</a>
  <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
  <a href="https://pris.ly/youtube?utm_source=github&utm_medium=prisma_examples&utm_content=repo_readme">Demo videos</a>
</div>

<hr>

<div align="center">

[![test](https://github.com/prisma/prisma-examples/workflows/test/badge.svg?branch=latest)](https://github.com/prisma/prisma-examples/actions?query=workflow%3Atest+branch%3Alatest)

[View full CI status](#ci-status)

</div>

<hr>

This repository contains a number of ready-to-run example projects demonstrating various use cases of Prisma. Pick an example and follow the instructions in the corresponding README.

You can also find links to [real-world and production ready examples](#real-world--production-ready-example-projects-with-prisma) further below in this README.

Are you missing an example? Please feel free to [open an issue](https://github.com/prisma/prisma-examples/issues/new) (read the [contribution guidelines](./CONTRIBUTING.md) for more info).

<!-- Please keep the absolute URLs so it's easier to copy&paste to prisma/prisma/README.md  -->

## Prisma ORM

### Fullstack

| Demo                                                                                                 | Description                                                                                                                                                                                |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [`nextjs`](https://github.com/prisma/prisma-examples/tree/latest/orm/nextjs)                          | [Next.js](https://nextjs.org/) 15 app using the App Router with Prisma Postgres                                                                                                            |
| [`nextjs-graphql`](https://github.com/prisma/prisma-examples/tree/latest/orm/nextjs-graphql)         | [Next.js](https://nextjs.org/) app with a GraphQL API (using [Apollo Server](https://github.com/apollographql/apollo-server) and [GraphQL Nexus](https://github.com/graphql-nexus/nexus))  |
| [`nextjs-trpc`](https://github.com/prisma/prisma-examples/tree/latest/orm/nextjs-trpc)               | [Next.js](https://nextjs.org/) app with [tRPC ](https://trpc.io/)                                                                                                                          |
| [`nuxt`](https://github.com/prisma/prisma-examples/tree/latest/orm/nuxt)                             | [Nuxt.js](https://nuxt.com/) app with a REST API                                                                                                                                           |
| [`sveltekit`](https://github.com/prisma/prisma-examples/tree/latest/orm/sveltekit)                   | [SvelteKit](https://kit.svelte.dev/) app using SvelteKit's [actions](https://kit.svelte.dev/docs/form-actions) and [load](https://kit.svelte.dev/docs/form-actions#loading-data) functions |
| [`remix`](https://github.com/prisma/prisma-examples/tree/latest/orm/remix)                           | [Remix](https://remix.run/) app                                                                                                                                                            |
| [`nuxt-prisma-module`](https://github.com/prisma/prisma-examples/tree/latest/orm/nuxt-prisma-module) | A nuxt example app using the [Prisma Nuxt module](https://github.com/prisma/nuxt-prisma)                                                                                                   |

### Backend only

| Demo                                                                                                               | Description                                                                                                                                                                                       |
| :----------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [`graphql-auth`](https://github.com/prisma/prisma-examples/tree/latest/orm/graphql-auth)                           | GraphQL server with email-password authentication & permissions                                                                                                                                   |
| [`graphql-sdl-first`](https://github.com/prisma/prisma-examples/tree/latest/orm/graphql-sdl-first)                 | GraphQL server based on [GraphQL Yoga](https://the-guild.dev/graphql/yoga-server)                                                                                                                 |
| [`graphql-subscriptions`](https://github.com/prisma/prisma-examples/tree/latest/orm/graphql-subscriptions)         | GraphQL server with realtime subscriptions based on [`apollo-server`](https://www.apollographql.com/docs/apollo-server/) and [Nexus Schema](https://github.com/graphql-nexus/schema)              |
| [`graphql-typegraphql`](https://github.com/prisma/prisma-examples/tree/latest/orm/graphql-typegraphql)             | GraphQL server based on [`@apollo/server`](https://www.apollographql.com/docs/apollo-server) and [TypeGraphQL](https://github.com/MichalLytek/type-graphql)                                       |
| [`graphql-typegraphql-crud`](https://github.com/prisma/prisma-examples/tree/latest/orm/graphql-typegraphql-crud)   | CRUD GraphQL API based on [`@apollo/server`](https://www.apollographql.com/docs/apollo-server) and [TypeGraphQL](https://github.com/MichalLytek/type-graphql)                                     |
| [`fastify-graphql`](https://github.com/prisma/prisma-examples/tree/latest/orm/fastify-graphql)                     | GraphQL server based on [Fastify](https://fastify.io/), [Mercurius](https://mercurius.dev/), and the SDL-first approach of [`graphql-tools`](https://www.graphql-tools.com/docs/generate-schema/) |
| [`fastify-graphql-sdl-first`](https://github.com/prisma/prisma-examples/tree/latest/orm/fastify-graphql-sdl-first) | GraphQL server based on [Fastify](https://fastify.io/), [Mercurius](https://mercurius.dev/), and the SDL-first approach of [`graphql-tools`](https://www.graphql-tools.com/docs/generate-schema/) |
| [`hapi-graphql`](https://github.com/prisma/prisma-examples/tree/latest/orm/hapi-graphql)                           | GraphQL server based on [Hapi](https://hapi.dev/) and [Nexus Schema](https://github.com/graphql-nexus/schema)                                                                                     |
| [`hapi-graphql-sdl-first`](https://github.com/prisma/prisma-examples/tree/latest/orm/hapi-graphql-sdl-first)       | GraphQL server based on [Hapi](https://hapi.dev/) and the SDL-first approach of [Apollo Server Integration for Hapi](https://www.npmjs.com/package/@as-integrations/hapi)                         |
| [`nest-graphql`](https://github.com/prisma/prisma-examples/tree/latest/orm/nest-graphql)                           | GraphQL server based on [NestJS](https://nestjs.com/) (code-first)                                                                                                                                |
| [`nest-graphql-sdl-first`](https://github.com/prisma/prisma-examples/tree/latest/orm/nest-graphql-sdl-first)       | GraphQL server based on [NestJS](https://nestjs.com/) and the SDL-first approach of [`graphql-tools`](https://www.apollographql.com/docs/graphql-tools/)                                          |
| [`graphql`](https://github.com/prisma/prisma-examples/tree/latest/orm/graphql)                                     | GraphQL server based on [GraphQL Yoga](https://the-guild.dev/graphql/yoga-server) and [Pothos](https://pothos-graphql.dev/)                                                                       |
| [`graphql-nexus`](https://github.com/prisma/prisma-examples/tree/latest/orm/graphql-nexus)                         | GraphQL server based on [`@apollo/server`](https://www.apollographql.com/docs/apollo-server) and [Nexus Schema](https://github.com/graphql-nexus/schema)                                          |
| [`grpc`](https://github.com/prisma/prisma-examples/tree/latest/orm/grpc)                                           | gRPC API including runnable client scripts for testing                                                                                                                                            |
| [`postgis-express`](https://github.com/prisma/prisma-examples/tree/latest/orm/postgis-express)                     | Demo of spatial queries using [Postgis](http://postgis.net/) and [Express](https://expressjs.com/)                                                                                                |
| [`express`](https://github.com/prisma/prisma-examples/tree/latest/orm/express)                                     | REST API with [Express](https://expressjs.com/)                                                                                                                                                   |
| [`fastify`](https://github.com/prisma/prisma-examples/tree/latest/orm/fastify)                                     | REST API with [Fastify](https://www.fastify.io/)                                                                                                                                                  |
| [`koa`](https://github.com/prisma/prisma-examples/tree/latest/orm/koa)                                             | REST API with [Koa](https://koajs.com/)                                                                                                                                                           |
| [`hapi`](https://github.com/prisma/prisma-examples/tree/latest/orm/hapi)                                           | REST API with [hapi](https://hapi.dev/)                                                                                                                                                           |
| [`nest`](https://github.com/prisma/prisma-examples/tree/latest/orm/nest)                                           | REST API with [NestJS](https://docs.nestjs.com/)                                                                                                                                                  |
| [`script`](https://github.com/prisma/prisma-examples/tree/latest/orm/script)                                       | Usage of Prisma Client JS in a TypeScript script                                                                                                                                                  |
| [`testing-express`](https://github.com/prisma/prisma-examples/tree/latest/orm/testing-express)                     | Demo of integration tests with [Jest](https://jestjs.io/), [Supertest](https://github.com/visionmedia/supertest) and [Express](https://expressjs.com/)                                            |

### New `prisma-client` generator

The following examples are fullstack examples using the new [`prisma-client`](https://www.prisma.io/docs/orm/prisma-schema/overview/generators#prisma-client-early-access) generator:
| Demo                                                                                                                                                             | Description                                                                                                  |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| [`nextjs-starter-webpack`](https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/nextjs-starter-webpack)                                 | A Next.js 15 starter that uses Webpack 5 as the bundler and runs on Node.js.                                 |
| [`nextjs-starter-turbopack`](https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/nextjs-starter-turbopack)                             | A Next.js 15 starter powered by Turbopack (alpha) for bundling, running on Node.js.                          |
| [`nextjs-starter-webpack-monorepo`](https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/nextjs-starter-webpack-monorepo)               | A monorepo-based Next.js 15 starter using Webpack 5 and Node.js, managed with `pnpm`.                        |
| [`nextjs-starter-webpack-with-middleware`](https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/nextjs-starter-webpack-with-middleware) | A Next.js 15 starter with Webpack 5, running on Node.js for main pages and Vercel Edge Light for middleware. |


## Database examples

The [`databases`](./databases) folder contains examples focused on specific databases and Prisma Postgres integrations.

| Demo                                                                                                                       | Description                                                                                                                |
| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [`cockroachdb`](https://github.com/prisma/prisma-examples/tree/latest/databases/cockroachdb)                             | [Prisma ORM](https://www.prisma.io/orm) with [CockroachDB](https://www.cockroachlabs.com/) in a script and test setup.  |
| [`mongodb`](https://github.com/prisma/prisma-examples/tree/latest/databases/mongodb)                                     | [Prisma ORM](https://www.prisma.io/orm) with [MongoDB](https://www.mongodb.com/) in script and test examples.            |
| [`postgresql-supabase`](https://github.com/prisma/prisma-examples/tree/latest/databases/postgresql-supabase)             | [Prisma ORM](https://www.prisma.io/orm) with [Supabase Postgres](https://supabase.com/).                                 |
| [`prisma-postgres`](https://github.com/prisma/prisma-examples/tree/latest/databases/prisma-postgres)                     | [Prisma ORM](https://www.prisma.io/orm) with [Prisma Postgres](https://www.prisma.io/postgres).                          |
| [`sql-server`](https://github.com/prisma/prisma-examples/tree/latest/databases/sql-server)                               | [Prisma ORM](https://www.prisma.io/orm) with [Microsoft SQL Server](https://www.microsoft.com/sql-server).               |
| [`turso`](https://github.com/prisma/prisma-examples/tree/latest/databases/turso)                                         | [Prisma ORM](https://www.prisma.io/orm) with [Turso](https://turso.tech/).                                                |
| [`typeorm-prisma-postgres`](https://github.com/prisma/prisma-examples/tree/latest/databases/typeorm-prisma-postgres)     | [TypeORM](https://typeorm.io/) with [Prisma Postgres](https://www.prisma.io/postgres).                                   |
| [`drizzle-prisma-postgres`](https://github.com/prisma/prisma-examples/tree/latest/databases/drizzle-prisma-postgres)     | [Drizzle ORM](https://orm.drizzle.team/) with [Prisma Postgres](https://www.prisma.io/postgres).                         |
| [`kysely-prisma-postgres`](https://github.com/prisma/prisma-examples/tree/latest/databases/kysely-prisma-postgres)       | [Kysely](https://kysely.dev/) with [Prisma Postgres](https://www.prisma.io/postgres).                                    |

## Prisma Accelerate

The [`accelerate`](./accelerate) folder contains examples of projects using [Prisma Accelerate](https://www.prisma.io/data-platform/accelerate) for connection pooling and global caching.

| Demo                                                     | Description                                                                       |
| -------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [`starter`](./accelerate/starter)                        | A simple starter project using Prisma Accelerate's caching and connection pooling |
| [`nextjs-starter`](./accelerate/nextjs-starter)          | A Next.js project using Prisma Accelerate's caching and connection pooling        |
| [`svelte-starter`](./accelerate/svelte-starter/)         | A SvelteKit project using Prisma Accelerate's caching and connection pooling      |
| [`solidstart-starter`](./accelerate/solidstart-starter/) | A Solidstart project using Prisma Accelerate's caching and connection pooling     |
| [`remix-starter`](./accelerate/remix-starter/)           | A Remix project using Prisma Accelerate's caching and connection pooling          |
| [`nuxt-starter`](./accelerate/nuxtjs-starter/)           | A Nuxt.js project using Prisma Accelerate's caching and connection pooling        |
| [`astro-starter`](./accelerate/astro-starter/)           | An Astro project using Prisma Accelerate's caching and connection pooling         |

## Prisma Compute

The [`compute`](./compute) directory contains applications ready to deploy to Prisma Compute.

| Demo                                                                                                    | Description                                                                                          |
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [`compute/hono`](https://github.com/prisma/prisma-examples/tree/latest/compute/hono)                     | [Hono](https://hono.dev/) API deployed to Prisma Compute with `@prisma/cli`.                         |
| [`compute/nextjs`](https://github.com/prisma/prisma-examples/tree/latest/compute/nextjs)                 | [Next.js](https://nextjs.org/) App Router app using standalone output for Prisma Compute.            |
| [`compute/tanstack-start`](https://github.com/prisma/prisma-examples/tree/latest/compute/tanstack-start) | [TanStack Start](https://tanstack.com/start) app using the Nitro output supported by Prisma Compute. |

## Deployment platforms

The projects in the [`deployment-platforms`](./deployment-platforms) directory show what "Prisma Client"-based deployment setups look like for various deployment providers. Learn more about [deployment](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/deployment) in the Prisma documentation.

## Real-world & production-ready example projects with Prisma

- [Inbox Zero](https://github.com/elie222/inbox-zero): Open source email management tools to reach inbox zero fast
- [NextCRM](https://github.com/pdovhomilja/nextcrm-app
↑