{"id":13406602,"url":"https://github.com/prisma/prisma-examples","last_synced_at":"2025-05-12T13:29:17.467Z","repository":{"id":37457681,"uuid":"144873815","full_name":"prisma/prisma-examples","owner":"prisma","description":" 🚀 Ready-to-run Prisma example projects","archived":false,"fork":false,"pushed_at":"2025-05-07T22:25:47.000Z","size":110573,"stargazers_count":6371,"open_issues_count":34,"forks_count":1441,"subscribers_count":46,"default_branch":"latest","last_synced_at":"2025-05-07T23:27:20.409Z","etag":null,"topics":["boilerplate","examples","graphql","nodejs","prisma","prisma-client","typescript"],"latest_commit_sha":null,"homepage":"https://www.prisma.io/docs/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prisma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-08-15T15:56:33.000Z","updated_at":"2025-05-07T19:31:23.000Z","dependencies_parsed_at":"2024-03-24T18:32:14.562Z","dependency_job_id":"56fa92a7-9236-4117-bb27-79577ca733c4","html_url":"https://github.com/prisma/prisma-examples","commit_stats":{"total_commits":7082,"total_committers":119,"mean_commits":59.51260504201681,"dds":0.5641061846935893,"last_synced_commit":"d88a384142fcda149a77da5087f32c01733b18ce"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma","download_url":"https://codeload.github.com/prisma/prisma-examples/tar.gz/refs/heads/latest","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253747445,"owners_count":21957758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boilerplate","examples","graphql","nodejs","prisma","prisma-client","typescript"],"created_at":"2024-07-30T19:02:34.541Z","updated_at":"2025-05-12T13:29:12.450Z","avatar_url":"https://github.com/prisma.png","language":"TypeScript","readme":"\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003ePrisma Examples\u003c/h1\u003e\n  \u003cp\u003e\u003ch3 align=\"center\"\u003eReady-to-run Prisma example projects 🚀\u003c/h3\u003e\u003c/p\u003e\n  \u003ca href=\"https://www.prisma.io/\"\u003eWebsite\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://www.prisma.io/docs/\"\u003eDocs\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://www.prisma.io/blog\"\u003eBlog\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://pris.ly/discord?utm_source=github\u0026utm_medium=prisma_examples\u0026utm_content=repo_readme\"\u003eDiscord\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://pris.ly/x?utm_source=github\u0026utm_medium=prisma_examples\u0026utm_content=repo_readme\"\u003eTwitter\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://pris.ly/youtube?utm_source=github\u0026utm_medium=prisma_examples\u0026utm_content=repo_readme\"\u003eDemo videos\u003c/a\u003e\n\u003c/div\u003e\n\n\u003chr\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![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)\n\n[View full CI status](#ci-status)\n\n\u003c/div\u003e\n\n\u003chr\u003e\n\nThis 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.\n\nYou can also find links to [real-world and production ready examples](#real-world--production-ready-example-projects-with-prisma) further below in this README.\n\nAre 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).\n\n\u003c!-- Please keep the absolute URLs so it's easier to copy\u0026paste to prisma/prisma/README.md  --\u003e\n\n## Prisma Accelerate\n\nThe [`accelerate`](./accelerate) folder contains examples of projects using [Prisma Accelerate](https://www.prisma.io/data-platform/accelerate) for connection pooling and global caching.\n\n| Demo                                            | Description                                                                |\n| ----------------------------------------------- | -------------------------------------------------------------------------- |\n| [`starter`](./accelerate/starter) | A simple starter project using Prisma Accelerate's caching and connection pooling |\n| [`nextjs-starter`](./accelerate/nextjs-starter) | A Next.js project using Prisma Accelerate's caching and connection pooling |\n| [`svelte-starter`](./accelerate/svelte-starter/) | A SvelteKit project using Prisma Accelerate's caching and connection pooling |\n| [`solidstart-starter`](./accelerate/solidstart-starter/) | A Solidstart project using Prisma Accelerate's caching and connection pooling |\n| [`remix-starter`](./accelerate/remix-starter/) | A Remix project using Prisma Accelerate's caching and connection pooling |\n| [`nuxt-starter`](./accelerate/nuxtjs-starter/) | A Nuxt.js project using Prisma Accelerate's caching and connection pooling |\n| [`astro-starter`](./accelerate/astro-starter/) | An Astro project using Prisma Accelerate's caching and connection pooling |\n\n## Prisma Optimize\n\nThe [`optimize`](./optimize) folder contains examples of projects using [Prisma Optimize](https://www.prisma.io/data-platform/optimize) to identify and improve the performance of slow queries.\n\n| Demo                                                                     | Description                                                              |\n| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |\n| [`starter`](./optimize/starter)                                             | A Prisma Optimize starter app                                               |\n| [`optimize-excessive-rows`](./optimize/optimize-excessive-rows)                         | An example app demonstrating the \"Excessive number of rows returned\" recommendation provided by Optimize. |\n| [`optimize-full-table-scan`](./optimize/optimize-full-table-scan)                 | An example app demonstrating the \"Full table scans caused by `LIKE` operations\" recommendation provided by Optimize.                                |\n| [`optimize-unindexed-column`](./optimize/optimize-unindexed-column)                 | An example app demonstrating the \"Query filtering on an unindexed column\" recommendation provided by Optimize.                     |\n\n## Prisma ORM\n\n### Fullstack\n\n| Demo                                                                   | Description                                                              |\n| ---------------------------------------------------------------------- | ------------------------------------------------------------------------ |\n| [`nextjs-api-routes`](https://github.com/prisma/prisma-examples/tree/latest/orm/nextjs-api-routes)           | [Next.js](https://nextjs.org/) app with a REST API (using [Next.js API routes](https://nextjs.org/docs/api-routes/introduction))                                                                     |\n| [`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))            |                                                                                                                                       |\n| [`nextjs-trpc`](https://github.com/prisma/prisma-examples/tree/latest/orm/nextjs-trpc)                                 | [Next.js](https://nextjs.org/) app with [tRPC ](https://trpc.io/)                                                                                                                                    |\n| [`nuxt`](https://github.com/prisma/prisma-examples/tree/latest/orm/nuxt)                                 | [Nuxt.js](https://nuxt.com/) app with a REST API                                                                                                                                                     |\n| [`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           |     | [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 |\n| [`remix`](https://github.com/prisma/prisma-examples/tree/latest/orm/remix)                                             | [Remix](https://remix.run/) app                                                                                                                                                                      |\n| [`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)                                                                                                                                                                     |\n\n### Backend only\n\n| Demo                                                                                                                      | Description                                                                                                                                                                                       |\n| :------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| [`graphql-auth`](https://github.com/prisma/prisma-examples/tree/latest/orm/graphql-auth)                           | GraphQL server with email-password authentication \u0026 permissions                                                                                                                                   |\n| [`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)                                                                                                                 |\n| [`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)              |\n| [`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)                                       |\n| [`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)                                     |\n| [`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/) |\n| [`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/) |\n| [`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)                                                                                     |\n| [`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)                         |\n| [`nest-graphql`](https://github.com/prisma/prisma-examples/tree/latest/orm/nest-graphql)                       | GraphQL server based on [NestJS](https://nestjs.com/) (code-first)                                                                                                                                |\n| [`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/)                                          |\n| [`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/)                                                                       |\n| [`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)                                          |\n| [`grpc`](https://github.com/prisma/prisma-examples/tree/latest/orm/grpc)                                           | gRPC API including runnable client scripts for testing                                                                                                                                            |\n| [`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/)                                                                                                |\n| [`express`](https://github.com/prisma/prisma-examples/tree/latest/orm/express)                           | REST API with [Express](https://expressjs.com/)                                                                                                                                                   |\n| [`fastify`](https://github.com/prisma/prisma-examples/tree/latest/orm/fastify)                           | REST API with [Fastify](https://www.fastify.io/)                                                                                                                                                  |\n| [`koa`](https://github.com/prisma/prisma-examples/tree/latest/orm/koa)                                   | REST API with [Koa](https://koajs.com/)                                                                                                                                                           |\n| [`hapi`](https://github.com/prisma/prisma-examples/tree/latest/orm/hapi)                                 | REST API with [hapi](https://hapi.dev/)                                                                                                                                                           |\n| [`nest`](https://github.com/prisma/prisma-examples/tree/latest/orm/nest)     | REST API with [NestJS](https://docs.nestjs.com/)                                                                                                                                                  |\n| [`script`](https://github.com/prisma/prisma-examples/tree/latest/orm/script)                                       | Usage of Prisma Client JS in a TypeScript script                                                                                                                                                  |\n| [`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/)                                            |                                              |\n\n## Deployment platforms\n\nThe 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.\n\n## Real-world \u0026 production-ready example projects with Prisma\n\n- [Inbox Zero](https://github.com/elie222/inbox-zero): Open source email management tools to reach inbox zero fast\n- [NextCRM](https://github.com/pdovhomilja/nextcrm-app): An open-source Customer Relationship Management system (CRM)\n- [Papermark](https://github.com/mfts/papermark/): An open-source DocSend alternative with built-in analytics and custom domains\n- [Hoppscotch](https://github.com/hoppscotch/hoppscotch): An open-source API development ecosystem\n- [FeastQR](https://github.com/jakubczarnowski/FeastQR): An open-source SaaS online menu system for restaurants\n- [Formbricks](https://github.com/formbricks/formbricks): An open-source survey and experience management tool\n- [OpenformStack](https://github.com/naveennaidu/OpenformStack): An open-source form backend that allows you to collect form submissions without writing any backend code\n- [Documenso](https://documenso.com/): An open-source alternative to Docusign\n- [abby](https://github.com/tryabby/abby): An open-source feature flag, remote config and A/B testing platform for developers\n- [ghostfolio](https://ghostfol.io/en/start): An open-source dashboard for your personal finances\n- [revert](https://www.revert.dev/): An open-source unified API to build B2B product integrations\n- [Scholarsome](https://scholarsome.com/): An interactive, studying system\n- [Dittofeed](https://www.dittofeed.com): An open-source customer engagement; intuitive marketing tools that scale\n- [Trigger.dev](https://trigger.dev/): Effortless automation built for developers (Zapier alternative)\n- [Webstudio](https://github.com/webstudio-is/webstudio-designer): A NoCode visual design tool for building apps and websites\n- [Dyrector](https://github.com/dyrector-io/dyrectorio): A self-hosted container management platform\n- [reduced.to](https://github.com/origranot/reduced.to): An open-source link shortener\n- [Linen](https://github.com/Linen-dev/linen.dev): An open-source alternative to Slack and Discord with lots of great features\n- [Coolify](https://github.com/coollabsio/coolify): An open-source \u0026 self-hostable Heroku / Netlify alternative\n- [Dub.co](https://dub.co): An open-source link management platform for modern marketing teams\n- [Umami](https://github.com/mikecao/umami): A simple, fast, privacy-focused alternative to Google Analytics\n- [Rallly](https://github.com/lukevella/rallly): A self-hostable doodle poll alternative (based on Next.js, tRPC, and TailwindCSS)\n- [Typebot](https://github.com/baptisteArno/typebot.io): A conversational form builder that you can self-host\n- [Cal.com](https://github.com/calcom/cal.com): An open-source alternative to Calendly (calender-based event scheduling service)\n- [Beam](https://github.com/planetscale/beam): A simple tool that allows members to write posts to share across your organization (based on Next.js)\n- [Dundring](https://github.com/sivertschou/dundring): An in-browser training application created to control and track you training with a smart bike trainer\n- [Expense.fyi](https://github.com/gokulkrishh/expense.fyi): A tool for tracking and managing expenses\n- [Letterpad](https://github.com/letterpad/letterpad): A publishing platform for creatives\n- [Teable](https://github.com/teableio/teable): A no-code real-time database built on Postgres with a simple interface for enterprise-level app development.\n\u003chr\u003e\n\n## Starter kits\n\n- [T3 Stack](https://create.t3.gg/): Starter kit based on Next.js, TypeScript, tRPC, Prisma, Tailwind CSS, and NextAuth.js.\n- [Indie Stack](https://github.com/remix-run/indie-stack): Remix Stack for deploying to Fly with SQLite, authentication, testing, linting, and formatting.\n- [Blues Stack](https://github.com/remix-run/blues-stack): Remix Stack for deploying to Fly with PostgreSQL, authentication, testing, linting, and formatting.\n- [NestJS Prisma Starter](https://github.com/notiz-dev/nestjs-prisma-starter): NestJS, Prisma, and authentication starter template.\n- [Supastarter](https://supastarter.dev/): Full-stack SaaS starter kit using Next.js/Nuxt.js/SvelteKit and Prisma with authentication, emails, payment, testing, linting, and formatting.\n- [Saas Kit Prisma](https://github.com/Saas-Starter-Kit/Saas-Kit-prisma): Full-stack SaaS starter kit using React.js, Next.js, TypeScript, Tailwind, Shadcn, Stripe, NextAuth, Prisma, Postgres, and Playwright.\n- [Saas Kit Prisma by BoxyHQ](https://github.com/boxyhq/saas-starter-kit): An open-source enterprise SaaS starter kit using Prisma ORM.\n- [NextReady](https://nextready.dev): A ready-to-use Next.js boilerplate with Prisma, TypeScript, Tailwind CSS, and more.\n\n## Badges\n\n[![Made with Prisma](http://made-with.prisma.io/dark.svg)](https://prisma.io) [![Made with Prisma](http://made-with.prisma.io/indigo.svg)](https://prisma.io)\n\nBuilt something awesome with Prisma? 🌟 Show it off with these [badges](https://github.com/prisma/presskit?tab=readme-ov-file#badges), perfect for your readme or website.\n\n```\n[![Made with Prisma](http://made-with.prisma.io/dark.svg)](https://prisma.io)\n```\n\n```\n[![Made with Prisma](http://made-with.prisma.io/indigo.svg)](https://prisma.io)\n```\n\n## Security\n\nIf you have a security issue to report, please contact us at [security@prisma.io](mailto:security@prisma.io?subject=[GitHub]%20Prisma%202%20Security%20Report%20Examples)\n","funding_links":[],"categories":["TypeScript","⚙️ Backend \u0026 APIs","graphql","boilerplate",":books: Docs"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fprisma-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma%2Fprisma-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fprisma-examples/lists"}