prisma/orm

TypeScriptprisma.io

Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

prismaormdatabasetypescriptjavascriptnodejsmariadbmysqlpostgresqlsqlserversql-servermssql
スター成長
スター
47.6k
フォーク
2.5k
週間成長
+38
Issue
2.5k
20k40k
2019年6月2021年11月2024年4月2026年9月
成果物npm
README

Prisma Next

Discord | X | Blog Post | Architecture

License: Apache-2.0 npm CI


Looking for Prisma ORM 7? It lives on the v7 branch of this repository, and the prisma and @prisma/* packages on npm continue to be published from there.

Prisma Next is currently in Early Access and we're building it in the open with the community. APIs will still evolve as your feedback shapes them, so we don't recommend it for production workloads yet. Come along for the ride: star the repo, follow @prisma on X, or read along on the Prisma blog.

Prisma Next is a TypeScript rewrite of Prisma ORM, designed to be extensible, composable, and AI-agent friendly by default. Read the full announcement: The Next Evolution of Prisma ORM.

Prerequisites

  • Node.js 24 or newer
  • A package manager (npm, pnpm, or yarn)

Getting started

1. Scaffold a new project

The interactive scaffolder picks a JavaScript framework (Next.js, Vite, Hono, and others) and wires Prisma Next in with your chosen database (PostgreSQL or MongoDB):

npm create prisma@next

You finish with a runnable app, a starter contract, and the agent skills already registered.

2. Or, add Prisma Next to an existing project

Run this from your repo root:

npx @prisma/cli@next orm init

prisma orm init writes prisma.config.ts, scaffolds a starter contract and db.ts under src/prisma/, installs the runtime, emits the contract, and registers the agent skills. It does not touch your framework or build setup.

3. Use your AI agent for everything Prisma Next

Both installers leave a top-level prisma-next.md primer at your project root for any agent to read first. init additionally materialises one SKILL.md per workflow in two places, so different agent runtimes can find them at their expected paths:

  • .claude/skills/<skill-name>/SKILL.md — picked up by Claude Code
  • .agents/skills/<skill-name>/SKILL.md — universal location for Cursor, Copilot Agent, and other runtimes

A skills-lock.json at the project root tracks which skill versions are installed. Your editor's AI assistant auto-loads the right skill when your prompt matches.

Just describe what you want. For example:

"Add a posts model with a relation to users, then write a query that loads each user's three most recent posts."

The agent loads the prisma-8 skill, opens its contract and queries references, then drives the change end-to-end.

For the full catalogue and what each skill covers, see skills/README.md.

Found a bug, missing a feature, or have a question for the team?

Ask your agent. The prisma-8 skill's feedback flow drafts a structured GitHub issue or hands you a Prisma Discord link for live Q&A. You can review and confirm before anything is submitted.

For extension authors

Prisma Next has a minimal core. Everything around it, including Postgres support itself, is built on the same public SPI that's available to any author. If you've wanted to integrate your tool, your database, or your library with Prisma, this is the way in.

A few extensions already shipping:

  • @internal/extension-pgvector: vector columns and similarity operators for semantic search.
  • @internal/extension-paradedb: typed BM25 indexes with multiple tokenizers for full-text search.
  • @internal/extension-postgis: geospatial types and queries.
  • @cipherstash/prisma-next: searchable encryption and data-level access control.

Want to ship your own? The Authoring Prisma Next Extensions blog walks through the SPI, the layers your extension can hook into, and how the team features new extensions in the Prisma Next directory.

Supported databases

Prisma 8 carries PostgreSQL to general availability — and that is all at this stage:

  • PostgreSQL — the primary target; general availability at Prisma 8
  • MongoDB — early access; proves the framework works beyond SQL
  • SQLite — a proof of concept today

MySQL follows later. See the roadmap for what must happen before the 8.0.0-rc.1 release.

Contributing

See CONTRIBUTING.md for setup, commands, DCO signoff, and PR expectations. For substantive changes, please open an issue first so we can give direction-fit feedback before you invest implementation time.

Security issues: follow the Private Vulnerability Reporting flow in SECURITY.md. Please do not file them as public issues.

Community

Built something with Prisma Next? Tag @prisma on X. The best community builds get a shout-out and a link here.

License

Apache 2.0. See LICENSE.

関連リポジトリ
calcom/cal.diy

Scheduling infrastructure for absolutely everyone.

TypeScriptnpmMIT Licenseopen-sourcetypescript
cal.diy
48.3k15k
trpc/trpc

🧙‍♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.

TypeScriptnpmlibraryMIT Licensetypescriptapi
trpc.io
40.6k1.7k
t3-oss/create-t3-app

The best way to start a full-stack, typesafe Next.js app

TypeScriptnpmcliMIT Licenseclinext-auth
create.t3.gg
29.1k1.5k
dubinc/dub

The modern link attribution platform. Loved by world-class marketing teams like Framer, Perplexity, Superhuman, Twilio, Buffer and more.

TypeScriptnpmOthervercelnextjs
dub.co
24.7k3.3k
shadcn-ui/taxonomy

An open source application built using the new router, server components and everything new in Next.js 13.

TypeScriptnpmMIT Licensenextauthjsnextjs
19.3k2.7k
wasp-lang/wasp

The batteries-included full-stack framework for the AI era. Develop JS/TS web apps (React, Node.js, and Prisma) using declarative code that abstracts away complex full-stack features like auth, background jobs, RPC, email sending, end-to-end type safety, single-command deployment, and more.

TypeScriptnpmMIT Licensewaspweb-app
wasp.sh
18.7k1.5k
redwoodjs/graphql

RedwoodGraphQL

TypeScriptnpmMIT Licensejamstackgraphql
redwoodjs.com
17.6k995
amplication/amplication

Amplication brings order to the chaos of large-scale software development by creating Golden Paths for developers - streamlined workflows that drive consistency, enable high-quality code practices, simplify onboarding, and accelerate standardized delivery across teams.

TypeScriptnpmOthernodejsnestjs
amplication.com
16k1.5k
wasp-lang/open-saas

A 100% free modern JS SaaS boilerplate (React, NodeJS, Prisma). Full-featured: Auth (email, google, github, slack, MS), Email sending, Background jobs, Landing page, Payments (Stripe, Polar.sh), Shadcn UI, S3 file upload. AI-ready with tailored AGENTS.md, skills, and Claude Code plugin. One cmd deploy. Powered by Wasp full-stack framework.

MDXMIT Licensefull-stackopen-source
opensaas.sh
15.8k1.9k
documenso/documenso

The Open Source DocuSign Alternative.

TypeScriptnpmGNU Affero General Public License v3.0document-signingnext-auth
documenso.com
14.9k3.2k
blitz-js/blitz

⚡️ The Missing Fullstack Toolkit for Next.js

TypeScriptnpmlibraryMIT Licensereactreactjs
blitzjs.com
14.1k804
elie222/inbox-zero

The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.

TypeScriptnpmappOtheraiemail
getinboxzero.com
12.2k1.5k