prisma/orm

The Prisma ORM: write your application in TypeScript with human-readable queries instead of SQL. Host your database on Prisma Postgres and your app on Prisma Compute.

About the project

Prisma ORM is a Node.js and TypeScript database toolkit that lets applications work with databases through a programming interface instead of writing every query directly in SQL. Developers use it with databases including PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB, and CockroachDB. The catalogue add-ons provide agent rules, skills, hooks, agents, and other workflows for using Prisma.

This repository also configures its own agents. See what orm tells them →

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

prisma/orm

Cursor rule Cursor ✓ vendor

Test-only type assertions and mocking patterns (avoid brittle mocks).

not rated 48k +99 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Cursor ✓ vendor

Use tsdown dist root paths in TS test mappings.

not rated 48k +99 today A 10 tokens original Apache-2.0

prisma/orm

Cursor rule Cursor ✓ vendor

Extract TypeScript types from contract.d.ts and helpers.

not rated 48k +99 today A 0 tokens original Apache-2.0

type-predicates

77

prisma/orm

Cursor rule Cursor ✓ vendor

Replace blind casts with type predicates (type guards).

not rated 48k +99 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Cursor ✓ vendor

Use typed Contract from fixtures in integration tests.

not rated 48k +99 changed 1mo ago A 0 tokens original Apache-2.0

typescript-patterns

79

prisma/orm

Cursor rule Cursor ✓ vendor

TypeScript and architecture patterns for this codebase.

not rated 48k +99 today A 0 tokens original Apache-2.0

use-ast-factories

80

prisma/orm

Cursor rule Cursor ✓ vendor

Use factory functions for creating AST nodes instead of manual object creation.

not rated 48k +99 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Cursor ✓ vendor

Use factory functions for creating ContractIR objects instead of manual object creation.

not rated 48k +99 changed yesterday A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Cursor ✓ vendor

Use coreHash() and profileHash() constructors instead of 'as never' casts for branded hash types.

not rated 48k +99 today A 0 tokens original Apache-2.0

use-if-defined

83

prisma/orm

Cursor rule Cursor ✓ vendor

Use ifDefined() for conditional object spreads.

not rated 48k +99 today A 0 tokens original Apache-2.0

use-pathe-for-paths

84

prisma/orm

Cursor rule Cursor ✓ vendor

Prefer pathe over node:path in TypeScript files.

not rated 48k +99 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Cursor ✓ vendor

Use shared timeout helpers in tests.

not rated 48k +99 changed 4d ago A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Cursor ✓ vendor

The toMatchTypeOf() matcher has been deprecated in Vitest's expectTypeOf API.

not rated 48k +99 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Cursor ✓ vendor

Cannot find module '@internal/' (ERRMODULENOTFOUND) is a build/install-state issue, not a code bug — verify with require.resolve (pnpm links per-consumer, not repo root), then pnpm build (stale dist) / pnpm install (new dep).

not rated 48k +99 today A 254 tokens original Apache-2.0

build

88

prisma/orm

Cursor rule Cursor ✓ vendor

Build all packages via Turbo.

not rated 48k +99 today A 5 tokens original Apache-2.0

coverage-packages

89

prisma/orm

Cursor rule Cursor ✓ vendor

Run coverage for packages only.

not rated 48k +99 today A 5 tokens original Apache-2.0

demo

90

prisma/orm

Cursor rule Cursor ✓ vendor

Run the Todo example end-to-end demo.

not rated 48k +99 today A 8 tokens original Apache-2.0

lint-deps

91

prisma/orm

Cursor rule Cursor ✓ vendor

Validate package layering and import rules.

not rated 48k +99 today A 6 tokens original Apache-2.0

test-packages

92

prisma/orm

Cursor rule Cursor ✓ vendor

Run tests for packages only.

not rated 48k +99 today A 5 tokens original Apache-2.0

prisma/orm

Cursor rule Cursor ✓ vendor

Work never adds to or reshapes the framework domain in packages/1-framework. A design that needs to is almost certainly wrong — stop and tell the operator at once.

not rated 48k +99 today A 383 tokens original Apache-2.0

prisma/orm

Cursor rule Cursor ✓ vendor

A doc change that teaches or claims something is reviewed by fresh agents, for clarity and for facts, before it is done.

not rated 48k +99 today A 0 tokens original Apache-2.0

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: