Skip to content

docs: Prisma ORM 8 docs audit, personas, journeys, and proposed IA (for discussion) - #8243

Draft
wmadden-electric wants to merge 43 commits into
mainfrom
docs/orm8-docs-audit-design
Draft

wmadden-electric wants to merge 43 commits into
mainfrom
docs/orm8-docs-audit-design

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Most complaints about the Prisma ORM 8 docs come from two kinds of reader, and the site's entry points are built for a third:

The Newcomer   has an app already, wants typed queries; lands on pages that scaffold a new app for them
The Upgrader   has a Prisma ORM 7 app and a database with data; finds no page that says what moved or whether to move
The Builder    wants to ship on the platform with an agent's help; the root page, the agent prompts, and the tutorial are theirs

What this PR is

Draft, for discussion, not for merge as-is: the design documents behind the Prisma ORM 8 docs work, added under docs/orm-docs-audit/ so they can be read and commented in one place. They describe readers, the jobs those readers come to do, the mental model pages should be written from, the proposed information architecture, and the reasoning. They are design documents, not status: they describe the target and why, and do not track progress.

The decision they build up to

Serve the Newcomer and the Upgrader before the Builder at the ORM entry points, and organise the Getting Started > Prisma ORM subtree by the reader's starting state rather than by which tool runs:

  1. New app from scratch
  2. App already started, empty database
  3. Existing database with data
  4. Existing Prisma ORM 7 app

Each door is one page that carries the whole path. Two pages the Upgrader needs are added at the top level: "Coming from Prisma ORM 7" and "Release status". The /orm page shows the product (a contract, the query it enables, the typed result) instead of arguing for the design against Prisma ORM 7. Everything below the entry points (Data Modeling, Contract Authoring, Fundamentals, Migrations, Middleware, Extensions, Reference) stays where it is.

Reading order

  1. README.md, then personas.md: the four readers.
  2. journeys.md: ten jobs, each with what done looks like, what the docs must provide, and where the structure fails it.
  3. mental-model.md: the first-principles explanation (contract versus schema, emit, signature, plans, migrations and refs) that pages get written from.
  4. ia.md: the proposed sidebar trees and /orm page, then the current state and the reasons.
  5. changes.md: every proposed change by kind, with the recommended order and the decisions that need an owner.
  6. naming.md, the three briefs handed to ORM-side agents, and audit/, the page-by-page findings with a source citation for every claim.

What is already settled, and what is open

Settled: the readers and their order of priority; the naming rule (the product is Prisma ORM; a version number only when contrasting versions); the mental model as the source pages are written from; correcting the published pages before restructuring (done in #8236, #8237, #8238).

Open, and the reason this PR exists: the four-door structure of the ORM entry, the rewritten /orm page, and where the Prisma ORM 8 guides tree goes once the Prisma 7 guides have moved.

Alternatives considered

  • Restructure first, correct pages after. Rejected: readers were copying broken samples every day; corrections were mechanical and did not depend on the structure.
  • Organise the entry by database (PostgreSQL, MongoDB) at the top level. Rejected: the reader knows their starting state before they know which tool runs; the database split stays inside each door.
  • Keep the design in a shared document outside the repo. Rejected: the documents cite file paths and source lines, and reviewers are engineers who will read them next to the pages.

🤖 Generated with Claude Code

Personas, reader journeys, the mental model, the proposed information
architecture, the change list, the naming rule, the corrections slice
plan, two ORM briefs, and the page-by-page audit findings behind
#8236, #8237, and #8238. Shared for discussion; not site content.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
blog Ready Ready Preview Sep 23, 2026 7:08am UTC
docs Ready Ready Preview Sep 23, 2026 7:08am UTC
eclipse Ready Ready Preview Sep 23, 2026 7:08am UTC
site Ready Ready Preview Sep 23, 2026 7:08am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Comment @coderabbitai help to get the list of available commands.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
…text

Status first, open work only in the recommended order, decisions with
owners, the shipped corrections collapsed to a summary, new pages grouped
by where they live, ORM changes grouped by owner, process residue removed.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
… audit

The audit's citations use the worktree layout it was run in (wip/prisma-src,
wip/create-prisma-src, wip/web); README now says what each prefix maps to.
The db-ref brief named the monorepo prisma/prisma and said PRs go to
prisma/orm; it is one repository, renamed, so name it once. The "shipped"
wording for section B overstated PR 3: #8238 is still open. The model and
result type work is no longer "in open PRs": prisma/orm#30158 is in rc.9,
and #30231 / #30236 merged to main on 2026-09-10 and await a tagged release.
Comment thread docs/orm-docs-audit/ia.md
```
Introduction
Prisma 8
+ Coming from Prisma 7 the mapping page: schema and types, CLI, client API, not-yet list

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love this!

personas, journeys, mental-model, ia, naming, and the briefs describe
readers, jobs, the target structure, and the reasoning; they carry no
done/in-progress markers, so they do not go stale as work lands.
journeys: per job, what the docs must provide and where the structure
fails, with the IA node that serves it. mental-model: naming, the plan
origin rule, whole-query raw SQL, the db ref rules and the adoption
design. Keeps the repo-name and tagged-release facts from the previous
commit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
wmadden-electric and others added 12 commits September 14, 2026 16:27
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
…sions

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Models, Scalars, Shape and the db-sign-sets-the-db-ref change shipped
in rc.10 (2026-09-12) and are on the site since #8261 and #8291, so the
mental model, journeys J2 and J9, ia.md and changes.md (C3, C6, D1, D4)
no longer say they are pending. #8238 merged 2026-09-11 (changes.md A4
and section B, slice-corrections). The naming pass landed as #8246 and
#8275. prisma@latest is rc.15 and create-prisma 0.13.1 pins rc.11 (D6,
D11). journeys.md now has twelve jobs, so README and changes.md say so,
ia.md maps J11 and J12, and journeys.md dates its paths and verdicts.
@prisma-robot

prisma-robot Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Reviewed ff231f8 cold: all twenty-two files (the two new ones, plain-language.md and brief-intermediate-contracts.md, included), the ten commits since 5dce14b, and every dated claim re-checked against main today (6baf4da), npm, prisma/orm, and create-prisma. No gate in this repo touches top-level docs/, so there was nothing to run. Verified and holding: A1 (four doors on /prisma-orm), A2 (coming-from-prisma-orm-7 in the ORM Introduction group), A3 and A5 (the agent prompt still leads /prisma-orm, the root page still has the one-line "Here for the ORM?"), C4 (release-status says October 2026 and 18 months), C5 (editor-support.mdx), C18 (release-status states Node and TypeScript floors only), C25 in #8281, D1 in prisma/orm#30251, D3 in create-prisma#96, D14 in #30250/#30264/#30283, all merged.

Found and fixed in 02dbe81:

  • The Models / Shape<> types are not "awaiting a tagged release". They shipped in rc.10 (2026-09-12, #30231) and docs(docs): update the Prisma ORM 8 pages for 8.0.0-rc.10 #8261 documents them as the "Model and result types" section of the client reference plus a row on Coming from Prisma 7. journeys.md J9, mental-model.md's mapping table, and changes.md C6 and D4 said otherwise; C6 moves from "not started" to "partly done" with what is left (the page with the Prisma 7 name beside each type).
  • db sign does set the db ref now. mental-model.md (the file pages are written from) still said "db sign does not today", taught the baseline-plus-migration ref set workaround as the current fix, and listed db sign as writing only the signature; journeys.md J2 and changes.md C3 ("waits on D1") and ia.md's "adds baseline, ref" line said the same. Rewritten to the rc.10 behaviour, with --no-advance-ref and the D2 notice.
  • changes.md contradicted itself on docs: correct the facts on the Prisma ORM 8 getting-started pages and guides #8238 and the naming pass. "Where things stand" says all three B PRs and the naming pass shipped; A4, the section B heading and intro still said "docs: correct the facts on the Prisma ORM 8 getting-started pages and guides #8238 open as of 2026-09-11", and the Naming section said "Not started". slice-corrections.md had the same "open" cell. docs: correct the facts on the Prisma ORM 8 getting-started pages and guides #8238 merged 2026-09-11 17:00.
  • Twelve jobs, not ten. The new J11 and J12 left README.md saying "ten jobs", changes.md saying "J1 to J10", and ia.md's two job tables without rows for them. Fixed all three; J11/J12 now cite C22/C23 in their verdicts like the other jobs; journeys.md says its paths and verdicts describe the 2026-09-10 site, matching ia.md and the README's note on audit/.
  • Stale numbers. D6 said prisma@latest is rc.13 (it is rc.15); D11 said create-prisma pins rc.8 at 0.11.7 (0.13.1, 2026-09-17, pins rc.11, current today; the item stays as the process point).
  • README item 8 had its explanatory parenthetical after the brief-intermediate-contracts.md mention, so it read as describing C25; reordered, with the landed status.

Also merged main into the branch (clean; the branch was 57 commits behind, no overlap with docs/).

Left alone on purpose: the audit/ files, naming.md's 2026-09-10 counts, the three briefs, and ia.md's current-state section are dated snapshots and still say so.

This is the fourth reviewer fix round on this pull request overall (three on 2026-09-11 before the author's ten new commits) and the first on this head. Will re-read the new head cold in a few minutes; if that read finds more, I will hand it back rather than patch again.

— reviewer

wmadden-electric and others added 3 commits September 21, 2026 17:05
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
@prisma-robot

prisma-robot Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Reviewed 9f14bb8 cold (the head moved from a7812c3 to this while the run started): all twenty-two files, the two commits since 02dbe81, and every dated claim re-checked against main today (6baf4da, and the branch is 0 behind it), GitHub, npm, and the rc.11 tarballs. No gate in this repo touches top-level docs/ (oxfmt ignores **/*.md; cspell, lint:links, the prose check and lychee are scoped to apps/docs/content), so there was nothing to run.

Holding: all twenty-nine prisma/web PRs changes.md cites are in the state it says, including #8306 open with exactly three commits, one per C13/C14/C16, touching migration-api.mdx, both contract-authoring pages, contract-emit.mdx, the artifact page and the three Vite framework guides; prisma/orm #30251/#30250/#30264/#30283/#30231/#30236/#30158 and create-prisma#96 merged; prisma@latest rc.15, @prisma/client@latest 7.10.0, create-prisma@latest 0.13.1 (2026-09-17), @prisma/orm-postgres@latest rc.11, newest prisma/orm tag v8.0.0-rc.11; the four doors in (index)/prisma-orm/meta.json, the agent prompt still ahead of the framework and fundamentals sections on /prisma-orm, release-status stating only the Node and TypeScript floors, both error references generated, the root page's one-line ORM pointer. The flat db.orm.User claim is right: rc.11's orm() returns a proxy keyed only by namespace ids. No audit file cites an item number changes.md does not define.

Found in 3b90c1c, not yet fixed (see the end):

  • changes.md "In review": "createInMemoryCacheStore is not public" is false. @prisma/orm-extension-middleware-cache@8.0.0-rc.11 exports it from its entry point, in both dist/index.mjs (export { cacheAnnotation, createCacheMiddleware, createInMemoryCacheStore }) and dist/index.d.mts line 218, and its README describes it. audit/builders.md:42 says "exported" and is right. What is true is that the site's cache page documents the store and maxEntries options and never names the factory.
  • Same paragraph: "its runtime items were covered by docs(orm8): plain-language pass on the ORM client reference #8260 and docs(orm8): plain-language pass on the rest of the ORM reference section #8267" overstates it. query vs execute, verifyMarker, binding, db.raw, db.nativeEnums, db.contract, .first()/.firstOrThrow(), distinctOn, db.prepare, the per-query signal, MongoDB mode, MongoMiddleware and the SQLite client are on the reference pages on main; the configure(meta) callback and meta.annotate(...) are on the middleware pages (docs(orm): plain-language pass on the middleware section #8292), not the reference. db.context, db.stack and the static client (@prisma/orm-postgres/static ships postgresStatic in rc.11) are on no page. Both exist on the rc.11 facade type.
  • audit/orm-client.md:41 is not marked. changes.md C15 says that file's flat-accessor claim "does not hold on rc.11", but the audit line carries no note, unlike audit/extras.md:35, which this PR marks "Overruled" in place for the streaming claim.

Proposed wording for the C15 sentence in "In review": "C15 needs no page changes: query vs execute, verifyMarker, binding, db.raw, db.nativeEnums, db.contract, .first() / .firstOrThrow(), distinctOn, db.prepare, the per-query signal, MongoDB mode, MongoMiddleware and the SQLite client are on the reference pages, and the configure(meta) callback and meta.annotate(...) are on the middleware pages; createInMemoryCacheStore is exported by @prisma/orm-extension-middleware-cache but the cache page documents the store and maxEntries options instead of the factory; the flat db.orm.User accessor is not in rc.11; db.context, db.stack and the static client (@prisma/orm-postgres/static) stay undocumented." Plus an "Overruled on rc.11" note on audit/orm-client.md:41 pointing at C15.

This would be the fifth reviewer fix round on this pull request, past the bound I work to, so I have asked the run's humans whether to push it or hand it back to the author. Not pushing until they answer.

— reviewer

wmadden-electric and others added 3 commits September 22, 2026 07:55
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
wmadden-electric and others added 2 commits September 22, 2026 12:11
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>

This branch was successfully deployed

4 active deployments
Preview – docs 66fe9f8d Deployed Sep 23, 2026 by vercel[bot]
Preview – site 66fe9f8d Deployed Sep 23, 2026 by vercel[bot]
Preview – blog 66fe9f8d Deployed Sep 23, 2026 by vercel[bot]
Preview – eclipse 66fe9f8d Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants