Read 2026-10-28
sanity-io/sanity: technical due diligence, read from its repository
What Borehole read in sanity-io/sanity's code and history at 1cc28af: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | not assessable |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongpackages/sanity/src/core/i18n/bundles/studio.ts is 2,576 lines, 38× this codebase's median file
adequateThe median source file here is 67 lines. 10 files exceed 1,000 lines, the largest being 2,576. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.
packages/sanity/src/core/i18n/bundles/studio.ts:1 — 2,576 lines (38× median) |
packages/sanity/src/_exports/index.ts:1 — 1,841 lines (27× median) |
packages/sanity/src/core/config/types.ts:1 — 1,796 lines (26× median) |
packages/sanity/src/core/form/store/formState.ts:1 — 1,599 lines (23× median) |
packages/sanity/src/core/config/prepareConfig.tsx:1 — 1,515 lines (22× median) |
Engineering Process & SDLC Maturity
adequateCI runs tests that cannot fail the build
adequate1 test command in CI ends in `|| true` or an equivalent, so the pipeline passes whatever the tests say. A green build then means the tests ran, not that they passed.
.github/workflows/chromatic.yml:149 — a test command that cannot fail |
Tests are retried until they pass
adequateThe suite is configured to retry failing tests (e2e/playwright.auth.config.ts). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.
e2e/playwright.auth.config.ts:30 — test retry |
Product & Engineering Maturity
adequate108 direct dependencies in a single manifest
adequatepackages/sanity/package.json declares 108 direct dependencies. Each one is a maintenance obligation, a supply-chain surface and a potential licence question that transfers with the asset. The count says nothing about whether any given dependency was a good choice; it says how many such choices a buyer inherits.
packages/sanity/package.json — 108 declared |
packages/@sanity/vision/package.json — 37 declared |
packages/@repo/release-notes/package.json — 21 declared |
packages/@sanity/schema/package.json — 10 declared |
Security & Reliability Posture
adequate3 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings
adequateStrings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key. 6 other matchs set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.
| 3 cited: Google API key, where fakes are usual |
41 locked dependencies have published vulnerabilities, 4 high or critical in what ships
adequate41 of 2,890 locked dependencies match 132 published advisories in OSV, 64 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version.
pnpm-lock.yaml — @simple-git/argv-parser 1.1.1: GHSA-v5rq-49vh-5v5c (critical), fixed in 2.0.1; a development dependency |
pnpm-lock.yaml — handlebars 4.7.9: GHSA-8r5x-fm3f-whwj (critical), fixed in 4.7.10; a development dependency |
pnpm-lock.yaml — protobufjs 8.0.0: GHSA-xq3m-2v4x-88gg (critical), fixed in 8.0.1; a development dependency |
Observability & Operations
not assessableNot rated: only 5 of 16 checks could reach a conclusion here; the rest do not apply to this repository or could not read it.
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on sanity-io/sanity: every dimension, the questions for the room, and the audit log.
Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.