Website • Docs • Blog • Discord • Twitter • Demo videos
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 further below in this README.
Are you missing an example? Please feel free to open an issue (read the contribution guidelines for more info).
| Demo | Description |
|---|---|
nextjs |
Next.js 15 app using the App Router with Prisma Postgres |
nextjs-graphql |
Next.js app with a GraphQL API (using Apollo Server and GraphQL Nexus) |
nextjs-trpc |
Next.js app with tRPC |
nuxt |
Nuxt.js app with a REST API |
sveltekit |
SvelteKit app using SvelteKit's actions and load functions |
remix |
Remix app |
nuxt-prisma-module |
A nuxt example app using the Prisma Nuxt module |
| Demo | Description |
|---|---|
graphql-auth |
GraphQL server with email-password authentication & permissions |
graphql-sdl-first |
GraphQL server based on GraphQL Yoga |
graphql-subscriptions |
GraphQL server with realtime subscriptions based on apollo-server and Nexus Schema |
graphql-typegraphql |
GraphQL server based on @apollo/server and TypeGraphQL |
graphql-typegraphql-crud |
CRUD GraphQL API based on @apollo/server and TypeGraphQL |
fastify-graphql |
GraphQL server based on Fastify, Mercurius, and the SDL-first approach of graphql-tools |
fastify-graphql-sdl-first |
GraphQL server based on Fastify, Mercurius, and the SDL-first approach of graphql-tools |
hapi-graphql |
GraphQL server based on Hapi and Nexus Schema |
hapi-graphql-sdl-first |
GraphQL server based on Hapi and the SDL-first approach of Apollo Server Integration for Hapi |
nest-graphql |
GraphQL server based on NestJS (code-first) |
nest-graphql-sdl-first |
GraphQL server based on NestJS and the SDL-first approach of graphql-tools |
graphql |
GraphQL server based on GraphQL Yoga and Pothos |
graphql-nexus |
GraphQL server based on @apollo/server and Nexus Schema |
grpc |
gRPC API including runnable client scripts for testing |
postgis-express |
Demo of spatial queries using Postgis and Express |
express |
REST API with Express |
fastify |
REST API with Fastify |
koa |
REST API with Koa |
hapi |
REST API with hapi |
nest |
REST API with NestJS |
script |
Usage of Prisma Client JS in a TypeScript script |
testing-express |
Demo of integration tests with Jest, Supertest and Express |
prisma-client generatorThe following examples are fullstack examples using the new prisma-client generator:
| Demo | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| nextjs-starter-webpack | A Next.js 15 starter that uses Webpack 5 as the bundler and runs on Node.js. |
| nextjs-starter-turbopack | A Next.js 15 starter powered by Turbopack (alpha) for bundling, running on Node.js. |
| 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 | A Next.js 15 starter with Webpack 5, running on Node.js for main pages and Vercel Edge Light for middleware. |
The databases folder contains examples focused on specific databases and Prisma Postgres integrations.
$ claude mcp add prisma-examples \
-- python -m otcore.mcp_server <graph>