prisma/orm

Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

48kStars on the repository
60Mods indexed here, across every type
todayLast push, which is what freshness is scored on
Apache-2.0Licence, which decides whether bodies are shown

import-validation

25

prisma/orm

Cursor rule Codex

Import validation and package layering rules.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Interface-based design with factory functions (keep classes private).

48k +7 today A 0 tokens original Apache-2.0

jsdoc-line-width

27

prisma/orm

Cursor rule Codex

Wrap JSDoc / block-comment prose at the same line width as the biome formatter (currently 100). Markdown is exempt — see the markdown-no-artificial-line-wraps skill.

48k +7 today A 37 tokens original Apache-2.0

mermaid-compat

28

prisma/orm

Cursor rule Codex

Mermaid diagram compatibility guidelines for docs.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Patterns for refactoring large monolithic files into modular structures.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Use MongoDB aggregate instead of the obsolete find/findOne commands.

48k +7 today A 20 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

When adding mongodb-memory-server (MMS) to a package or writing tests that use it, follow these rules to prevent CI failures.

48k +7 today A 28 tokens original Apache-2.0

moving-packages

32

prisma/orm

Cursor rule Codex

Guidelines for moving packages and updating relative paths.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Single package exposing migration/runtime/shared entrypoints via subpaths.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Guidelines for packages that span multiple planes.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Forbid hand-editing emitted contract fixtures (contract.json, contract.d.ts, expected.contract.json) — always regenerate via pnpm fixtures:emit.

48k +7 today A 763 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Do not add backward-compatibility shims or migration scaffolding.

48k +7 today A 0 tokens original Apache-2.0

no-bare-casts

38

prisma/orm

Cursor rule Codex

No bare as casts in production TypeScript. Use blindCast (value) from @internal/utils/casts as the auditable escape hatch, castAs (value) for declarative-only assertions, or rewrite to eliminate the cast. as const is exempt. Test files are exempt.

48k +7 today A 0 tokens original Apache-2.0

no-barrel-files

39

prisma/orm

Cursor rule Codex

Avoid barrel files and unnecessary re-exports.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Never patch raw contract data in tests; use real emitted fixtures or a user-facing authoring surface.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Never edit the pnpm lockfile manually; use pnpm install.

48k +7 today A 91 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

The framework domain (packages/1-framework) carries no family- or target-specific vocabulary — types, fields, hooks, or strategy values. Enforced by the no-family-vocabulary Biome plugin plus lint:framework-vocabulary.

48k +7 today A 0 tokens original Apache-2.0

no-inline-imports

43

prisma/orm

Cursor rule Codex

Prohibit inline type imports in source files.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Never use Linear's sub-issue (parentId) feature; use standalone issues with projects, milestones, relations, and labels instead.

48k +7 today A 27 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Never add pullrequesttarget to GitHub Actions workflows; CI lint enforces it via scripts/lint-workflow-triggers.mjs.

48k +7 today A 27 tokens original Apache-2.0

no-target-branches

46

prisma/orm

Cursor rule Codex

Never branch on target - use adapters instead.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Avoid tautological tests that only restate fixture input.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Forbid encoding transient project planning IDs (T1.1, TC-7, AC4, P3 R2, CKPT-2, etc.) in source code, comments, test names, identifiers, or hash fixtures.

48k +7 today A 650 tokens original Apache-2.0