TypeScript 2,604 FILES 6 FINDINGS

HOW SVELTEKIT
ACTUALLY WORKS

Web development, streamlined. The framework for building Svelte apps. Conventions, patterns, and architecture extracted from the sveltejs/kit repository by sourcebook.

QUICK_REF:
Build: pnpm --filter '@sveltejs/*' -r build Lint: pnpm -r lint

WHAT_MATTERS

  • This is a monorepo — check workspace dependencies before modifying shared code

  • packages/kit/src/utils/filesystem.js is a hub file (imported by 18 files) — changes here ripple everywhere

  • 21 dead code candidates detected

KEY_FINDINGS

This is a monorepo. Changes may affect multiple packages. Check workspace dependencies before modifying shared code.

HIGH

Tests are co-located with source files (*.test.ts next to *.ts). Keep this pattern.

HIGH

Project uses barrel exports (index.ts files that re-export). Import from the directory, not from deep paths.

HIGH
19 barrel export files found

Hub files (most depended on): packages/kit/src/utils/filesystem.js (18 files); packages/kit/src/utils/functions.js (17 files); packages/kit/src/core/sync/utils.js (13 files); packages/kit/src/runtime/utils.js (12 files); packages/kit/src/runtime/shared.js (12 files). Changes here have the widest blast radius.

HIGH

Circular imports: fetch.js → respond.js. Avoid adding to these cycles.

HIGH

21 dead code candidates.

HIGH
GENERATED IN ~3 SECONDS WITH

npx sourcebook init

VIEW ON GITHUB star

FROM_THE_BLOG

RELATED_REPOS