orm README

README проекта с github.com/prisma/orm. Одним файлом markdown: README.md.

Prisma 8

Docs | Discord | X | Blog Post | Architecture

License: Apache-2.0 npm CI


Using Prisma 7? It is maintained for eighteen months after release 8.0; 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. Release 8.0 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 release 8.0. 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

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

You finish with a runnable app, a starter contract, and the agent skills already installed. See the create-prisma reference for every template and flag, or follow the PostgreSQL and MongoDB quickstarts.

2. Or, add Prisma 8 to an existing project

Run this from your repo root:

npx prisma orm init

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

npx prisma skills sync

See the orm init and skills CLI references, or the guides for adding Prisma 8 to an existing PostgreSQL or MongoDB app.

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.

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

Extensions already shipping:

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.

Supported databases

From release 8.0, every package has a maturity level, which tells you how far you can rely on it. Until then, every package is a release candidate.

See the feature scoreboard for what PostgreSQL, SQLite and MongoDB support today; it does not yet cover MySQL or MariaDB.

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. The vision says where Prisma 8 is going, and the steering list names requests we have already answered, with what to use instead.

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

Community

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

License

Apache 2.0. See LICENSE.

orm (prisma/orm)

Ищем в базе…

47.7K ·GitHub
Что это такое?Prisma ORM — ORM нового поколения для Node.js и TypeScript, с поддержкой PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB и CockroachDB. Сейчас этот репозиторий демонстрирует «Prisma Next» — переписанную на TypeScript версию, которая рассчитана на расширяемость, возможность сочетать отдельные части и удобство для ИИ-агентов.
Это библиотека или самостоятельный инструмент?Это библиотека/ORM, которую вы добавляете в проект на Node.js/TypeScript, а также инструмент командной строки для создания каркаса (prisma orm init), который подключает её к вашему приложению.
Как мне запустить всё в проекте?Используйте интерактивный генератор каркаса, чтобы создать новый проект на выбранном вами фреймворке, или выполните 'prisma orm init' из корня репозитория, чтобы добавить его в существующий проект.
Нужна ли мне конкретная версия Node.js или менеджер пакетов?Нужен Node.js версии 24 или новее, а также менеджер пакетов, например npm, pnpm или yarn.
Можно ли использовать это в продакшене?Нет — Prisma Next находится в раннем доступе, API ещё меняются, и команда прямо говорит, что пока не стоит использовать его для продакшн-нагрузок.
Какие базы данных сейчас реально полностью поддерживаются?PostgreSQL недавно стал общедоступным в Prisma 8; MongoDB находится в раннем доступе, а SQLite пока лишь прототип. Поддержка MySQL запланирована позже.
Как на самом деле работает поддержка ИИ-агентов?Команда init создаёт файлы SKILL.md для каждого рабочего процесса в папках .claude/skills/ и .agents/skills/, а также вводный файл prisma-next.md в корне. Поэтому ИИ-ассистенты в редакторах (Claude Code, Cursor, Copilot Agent) автоматически подгружают подходящий навык по вашему запросу.
Могу ли я расширить Prisma Next собственным функционалом?Да, у Prisma Next минимальное ядро и публичный SPI, которым пользуются официальные расширения: pgvector, ParadeDB (полнотекстовый поиск), PostGIS и шифрование CipherStash. Поэтому любой может создать собственную интеграцию с базой данных или инструментом.
Какие есть похожие проекты?typeorm, beekeeper-studio, sequelize, flyway, TablePro, anythingmcp, kysely, efcore
Автор
prisma
Размер
293.6 MB
Звёзды
47.7K
Возраст
7 г
Коммиты · 90 дней