Read 2026-11-08
sveltejs/kit: technical due diligence, read from its repository
What Borehole read in sveltejs/kit's code and history at 5c7f430: 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 | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongpackages/kit/types/index.d.ts is 4,181 lines, 522× this codebase's median file
adequateThe median source file here is 8 lines. 2 files exceed 1,000 lines, the largest being 4,181. 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/kit/types/index.d.ts:1 — 4,181 lines (522× median) |
packages/kit/src/runtime/client/client.js:1 — 3,827 lines (478× median) |
4% of code blocks appear verbatim in more than one file
adequate983 distinct 8-line blocks appear in two or more files. Copy-paste is the cheapest thing a generator does and among the more expensive things to inherit: a fix has to be applied everywhere the block landed, and nothing in the repository records where that is. Tests, fixtures and documentation examples are excluded — those repeat by design — so this is duplication in code that ships. Blocks are matched after normalising whitespace and only across different files.
| identical 8-line block in 2 files: packages/adapter-auto/index.js, packages/kit/src/utils/import.js |
| identical 8-line block in 2 files: packages/adapter-auto/index.js, packages/kit/src/utils/import.js |
| identical 8-line block in 2 files: packages/adapter-auto/index.js, packages/kit/src/utils/import.js |
| identical 8-line block in 2 files: packages/adapter-auto/index.js, packages/kit/src/utils/import.js |
| identical 8-line block in 2 files: packages/adapter-auto/index.js, packages/kit/src/utils/import.js |
Engineering Process & SDLC Maturity
strongTests are retried until they pass
adequateThe suite is configured to retry failing tests (packages/adapter-bun/test/utils.js). 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.
packages/adapter-bun/test/utils.js:23 — test retry |
Product & Engineering Maturity
strongEffort is shifting from building to rewriting
adequateDeleted lines per line added rose from 0.59 to 0.87 between the first and second halves of this history. Rework is normal and often healthy, but a rising ratio means an increasing share of the team's time is spent replacing code that already exists rather than building what does not. Whether that is deliberate repayment or churn is a question for the team.
| first half 0.59, second half 0.87 (split 2023-10-27) |
Security & Reliability Posture
adequate27 advisories against this project in the last 24 months, 5 high or critical
adequateThe newest was published on 2026-10-29. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 11 of them are fixed in the code you ship could not be told from this history. Answer lives in: the release you run, set against each fixed version.
| 2026-10-29: GHSA-jf9x-2fg2-hx4w (moderate), fixed in 3.0.11: Prerendered paths are interpreted as regular expressions in Vercel route config generated by @sveltejs/adapter-vercel and @sveltejs/adapter-static |
| 2026-10-29: GHSA-5wg4-q3ww-283h (moderate), fixed in 7.2.10: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare` |
| 2026-10-29: GHSA-6cf5-gc4q-fm3x (moderate), fixed in 3.1.1: Private `query.batch` functions could collide, producing unexpected parameter / function combinations |
| 2026-10-29: GHSA-3r8g-jcqq-3p5j (high), fixed in 3.1.1: DoS while parsing form data from a remote functions `form` |
| 2026-10-29: GHSA-rqp5-r3wg-vg35 (moderate), fixed in 2.70.4: Protocol-relative module import during server-side route resolution allows cross-origin script execution |
Observability & Operations
adequateNo structured logging library is in use
adequateNothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.
| searched 3,088 files for 10 structured logging libraries; 0 matched |
No error reporter is wired in
adequateNothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.
| no error reporter initialised |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on sveltejs/kit: 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.