百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
Prisma

Prisma

> 数据库
开源

下一代 Node.js/TypeScript ORM

47.6K stars0 点赞6 次浏览
访问官网GitHub

工具介绍

下一代 Node.js/TypeScript ORM

Discord | X | Blog Post | Architecture


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):

bash
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:

bash
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.

  • Discord: Talk to us in Discord in the prisma-next channel
  • X: @prisma
  • Blog: prisma.io/blog

License

Apache 2.0. See LICENSE.

Issues· 2707 开放

查看全部 Issues在 GitHub 打开
  • #30492

    SQL 构建器: 在枚举列上的 `where` 比较接受任何字符串

    kind/bug更新于 2026年9月29日
  • #30491

    SQL 构建器: 子查询中使用外部查询的列不会显示其表,而是绑定到内部表

    kind/bug更新于 2026年9月29日
  • #30490

    在迁移的 dataTransform 中的 uuid(7) 默认值在发布时生成,因此每次自发布都会更改迁移的哈希值

    kind/bug更新于 2026年9月29日
  • #30489

    SQL 构建器: 更新无法从子查询或联接表中设置列,因此在数据迁移中填充外键必须使用原始 SQL

    kind/bug更新于 2026年9月29日
  • #30488

    SQL 构建器:没有来自 select 的插入语句,因此要导出行的数据迁移必须是原始 SQL

    kind/bug更新于 2026年9月29日
  • #30487

    当 $transaction([...]) 批次的形状不同时,内存的增长是无限的

    bug/1-unconfirmedkind/bug更新于 2026年9月29日
  • #11778

    迁移失败,错误表不存在,但表存在

    bug/1-unconfirmedkind/bugtopic: migratetech/enginestopic: prisma migrate dev更新于 2026年9月29日
  • #11245

    在修复重复的枚举 `@map` 值后,迁移无法清洁地应用到阴影数据库 - 错误: P3006

    bug/2-confirmedkind/bugtech/enginestopic: enum更新于 2026年9月29日
  • #25325

    在 Microsoft SQL Server 中删除具有默认值的列时发生迁移失败

    bug/1-unconfirmedkind/bugtopic: sql servertopic: prisma migrate dev更新于 2026年9月29日
  • #7251

    Prisma 迁移 - 在 Postgres 数据库中无法为枚举添加值

    bug/2-confirmedkind/bugtech/enginestopic: enumtopic: postgresql更新于 2026年9月29日

> 标签

ORMTypeScript数据库

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月29日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库