prisma-next-contract

安装量: 1.3K
排名: #8719

安装

npx skills add https://github.com/prisma/prisma-next --skill prisma-next-contract

Prisma Next — Contract Authoring Edit your data contract. Prisma handles the rest. The data contract is the single source of truth for your data layer. You edit a contract source — contract.prisma (PSL, the canonical surface) or contract.ts (TypeScript builder) — and the framework derives types, migrations, and runtime configuration from it. The three-step user model: You edit your data contract. The system plans the migrations for you. ( prisma-next-migrations ) If you need data migrations, you edit migration.ts and execute it. ( prisma-next-migrations ) Behind step 1 the agent runs prisma-next contract emit after every contract edit (or installs the Vite plugin so the bundler runs it on save — see prisma-next-build ). Emit reads the contract source through the provider the façade picks based on the file extension of contract: in prisma-next.config.ts , then writes two artefacts colocated with the source: contract.json — the canonical, content-hashed Contract IR. Read by the planner, the runtime, and db verify . contract.d.ts — the precise TypeScript types the runtime + lanes propagate when you import Contract from it. Both files are emitted artefacts . Edit the source; never the JSON or .d.ts . When to Use Show more Installs 877 Repository prisma/prisma-next GitHub Stars 418 First Seen May 17, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

返回排行榜