PP

prisma/prisma

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

4.8万 stars 质量 78 趋势 55Apache-2.0

下一代Node.js 和 TypeScript ORM |PostgreSQL、MySQL、MariaDB、SQL Server、SQLite、MongoDB 和 CockroachDB

概览

它存在于该仓库的 v7 分支上,ppm 上的 prisma 和 @prisma/* 包继续从那里发布。 我们正在与社区公开合作开发它。API会随着你的反馈不断演变,所以我们暂时不推荐用于生产工作负载。欢迎一同体验:给仓库加星号,关注@prisma X,或者阅读Prisma博客。 是 Prisma ORM 的 TypeScript 重写版本,设计为 ,默认为 。阅读完整公告:Prisma ORM的下一个进化。 - Node.js 24及以上 - 一个包管理器(npm、pnpm 或纱线) 交互式支架选定一个JavaScript框架(Next.js、Vite、Hono等),并将Prisma Next与你选择的数据库(PostgreSQL或MongoDB)连接起来: 你最终会有一个可运行的应用、一份入门合同,并且已经注册了特工技能。 Prisma-next@latest init 写入prisma-next.config.ts,搭建起始合约和数据库。

概述(AI 翻译)

文档 |Discord |X |博客文章 |建筑


使用 Prisma 7 吗? 它仍然得到完全支持。它的源代码位于该仓库的 v7 分支及其文档中,地址为 prisma.io/docs/orm/v7。

Prisma 8 是一个发布候选版本。 8.0.0 最终版本预计将在未来四到八周内发布。在此之前,发布候选版本可能包含破坏性变更,每个版本都会附带一个升级配方,该升级方案适用于 prisma-8。候选方案是我们支持的完整实现:我们将其中的错误视为紧急,你承担的风险是尚未开发而非不断更新的功能。功能记分板会标明每一个空白。新项目应从这里开始。现有的 Prisma 7 应用可以逐步迁移,Prisma 7 在 [8.0.0 最终版后,会停留在 [v7 分支,修复漏洞并更新安全,持续十八个月。给仓库加星号,关注 @prisma X,或在 Prisma 博客上阅读相关内容。

Prisma 8 是 Prisma ORM 的 TypeScript 重写版,设计为可扩展、可组合且默认支持 AI 代理友好。阅读公告或从文档开始。

先修条件

  • Node.js 24 或更新

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Docs | Discord | X | Blog Post | Architecture


Using Prisma 7? It is maintained for eighteen months after 8.0.0 final; supported versions says what that covers. Its source lives on the v7 branch of this repository and its docs at prisma.io/docs/orm/v7.

Prisma 8 is a release candidate. 8.0.0 final is expected in the next four to eight weeks. Until then a release candidate may include breaking changes, and every release ships with an upgrade recipe that the prisma-8 skill applies for you. The candidate is a complete implementation we stand behind: we treat bugs in it as urgent, and the risk you take on is a feature that is not built yet rather than churn. The feature scoreboard names every gap. New projects should start here. Existing Prisma 7 applications can migrate incrementally, and Prisma 7 stays maintained on the v7 branch for eighteen months after 8.0.0 final. Star the repo, follow @prisma on X, or read along on the Prisma blog.

Prisma 8 is a TypeScript rewrite of Prisma ORM, designed to be extensible, composable, and AI-agent friendly by default. Read the announcement or start with the docs.

Prerequisites

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

Getting started

1. Scaffold a new project

The interactive scaffolder picks an app template (Next.js, Hono, Nuxt, Astro, NestJS, SvelteKit, TanStack Start, or Elysia) and wires Prisma 8 in with your chosen database (PostgreSQL or MongoDB):

npm create prisma
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add prisma/prisma
新手?先看 mcpskill.org 教程 →