最近推送 2026-10-28 23:47(0 天前),属于活跃维护
prisma/orm
GITHUB中文整理主语言 TypeScript · 47,672 星 · Apache-2.0 · 创建于 2019-06-20
一个 TypeScript 优先的 ORM 工具,让开发者用可读的 TypeScript 查询操作数据库,替代手写 SQL,并配套脚手架和 AI 代理技能。
仓库健康度
5 个维度开放 Issue 2,803 个 · Fork 2,560 个
star 记录还不够天数,增量算不出来
许可证 Apache-2.0 · 8 个 topics
这一项暂无数据,不代表项目没有发布
「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。
Star 趋势
6 天记录横轴 2026-10-23 → 2026-10-28,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。
它解决什么问题
据 README 归纳直接写 SQL 或使用传统 ORM 时,查询语句可读性差、类型安全弱,且难以与 AI 辅助开发流程结合。没有它,开发者需要手动维护数据库访问层,容易出错且效率低。
核心能力
6 条- 1用 TypeScript 编写可读查询,避免手写 SQL
- 2提供交互式脚手架,快速生成带数据库连接的应用模板
- 3向现有项目注入配置文件和初始契约,不侵入框架
- 4内置 AI 代理技能,可自动处理 Prisma 相关任务
- 5通过公共 SPI 支持扩展,可集成自定义数据库或工具
- 6附带多个官方扩展,如向量搜索、地理查询、全文检索等
项目画像
6 个角度项目定位
一个 TypeScript 优先的 ORM 工具,让开发者用可读的 TypeScript 查询操作数据库,替代手写 SQL,并配套脚手架和 AI 代理技能。
适合谁
使用 TypeScript 开发应用、需要操作 PostgreSQL 或 MongoDB 的开发者;也适合希望让 AI 代理自动处理数据库层工作的团队。
典型场景
新建项目时,通过脚手架选择前端框架和数据库,快速获得可运行的应用骨架。;在已有项目中运行初始化命令,添加 Prisma 配置和数据库访问层,不影响现有构建。;让 AI 代理读取项目中的技能文件,自动完成查询编写、契约修改等任务。;通过扩展机制集成向量搜索、地理查询或全文检索等特殊数据库能力。
部署难度
需要先安装 Node.js 24+ 和包管理器。新建项目可用交互式脚手架几步完成;已有项目运行初始化命令并安装技能即可,无需改动框架配置。
风险限制
需要 Node.js 24 或更高版本,以及 npm、pnpm 或 yarn 包管理器。SQLite 尚在概念验证阶段,MySQL 排在 SQLite 之后。
最近维护
最近一次推送是 2026-10-28 23:47。 实现方式:核心保持精简,数据库支持等能力通过扩展实现。安装后生成配置文件和契约,运行时根据契约执行查询。AI 技能随包分发,代理读取技能文件后按工作流驱动变更。
README 原文细节
3 个板块核心功能README 里列出来的能力清单
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.
环境与依赖跑它之前要准备什么
Prerequisites
- Node.js 24 or newer
- A package manager (npm, pnpm, or yarn)
其它说明README 里剩下的内容
3. Use your AI agent for everything Prisma 8
Both installers leave a top-level prisma-8.md primer at your project root for any agent to read first, and install one SKILL.md per workflow into the directories agent runtimes read:
Skills ship inside the Prisma packages your project installs, so they always describe the version in use. Your editor's AI assistant auto-loads the right skill when your prompt matches.
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.
- .claude/skills//SKILL.md — Claude Code
- .cursor/skills//SKILL.md — Cursor
- .agents/skills//SKILL.md — universal location for Copilot Agent and other runtimes
- .devin/skills//SKILL.md — Devin
For extension authors
Prisma 8 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.
See Using extensions for how to install and register one. Want to ship your own? The call for extension authors walks through the SPI, the layers your extension can hook into, and how the team features new extensions.
- @prisma/orm-extension-pgvector: vector columns and similarity search.
- @prisma/orm-extension-postgis: geometry columns and geo queries.
- @prisma/orm-extension-paradedb: BM25 full-text search indexes (experimental).
- @prisma/orm-extension-supabase: Supabase auth and storage tables, role-bound clients (experimental).
- @prisma/orm-extension-arktype-json: JSON columns validated by an arktype schema.
- @cipherstash/prisma-next: searchable encryption and data-level access control.
Supported databases
MySQL follows after SQLite. See the feature scoreboard for what each database supports today.
- PostgreSQL — the primary target, first-class support
- MongoDB — first-class support
- SQLite — planned next, a proof of concept today
关于 orm 的常见问题
6 个问题orm 是做什么的?
一个 TypeScript 优先的 ORM 工具,让开发者用可读的 TypeScript 查询操作数据库,替代手写 SQL,并配套脚手架和 AI 代理技能。 直接写 SQL 或使用传统 ORM 时,查询语句可读性差、类型安全弱,且难以与 AI 辅助开发流程结合。没有它,开发者需要手动维护数据库访问层,容易出错且效率低。
orm 有哪些功能?
核心能力:用 TypeScript 编写可读查询,避免手写 SQL;提供交互式脚手架,快速生成带数据库连接的应用模板;向现有项目注入配置文件和初始契约,不侵入框架;内置 AI 代理技能,可自动处理 Prisma 相关任务;通过公共 SPI 支持扩展,可集成自定义数据库或工具;附带多个官方扩展,如向量搜索、地理查询、全文检索等。
orm 适合谁用?
使用 TypeScript 开发应用、需要操作 PostgreSQL 或 MongoDB 的开发者;也适合希望让 AI 代理自动处理数据库层工作的团队。
orm 是怎么工作的?
核心保持精简,数据库支持等能力通过扩展实现。安装后生成配置文件和契约,运行时根据契约执行查询。AI 技能随包分发,代理读取技能文件后按工作流驱动变更。
用 orm 有什么门槛或限制?
需要 Node.js 24 或更高版本,以及 npm、pnpm 或 yarn 包管理器。SQLite 尚在概念验证阶段,MySQL 排在 SQLite 之后。
orm 现在还在维护吗?数据怎么样?
目前 47,672 星,2,560 个 Fork,主语言 TypeScript,创建于 2019-06-20,最近一次推送 2026-10-28 23:47,许可证 Apache-2.0。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。
这些内容来自哪
读法说明项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-10-23 17:58。
