TypeScript + React 320 FILES 5 FINDINGS

HOW SPONSORBLOCK
ACTUALLY WORKS

Skip over sponsors, intros, outros, and other annoying parts of YouTube videos. Conventions, patterns, and architecture extracted from the ajayyy/SponsorBlock repository by sourcebook.

QUICK_REF:
Testing: Jest Exports: Named exports

WHAT_MATTERS

  • Hub files: src/config.ts (imported by 41 files), src/types.ts (imported by 34 files). Changes here have the widest blast radius.

KEY_FINDINGS

Hub files: src/config.ts (imported by 41 files), src/types.ts (imported by 34 files). Changes here have the widest blast radius.

HIGH

Circular import chains detected: config.ts → types.ts → SubmissionNotice.tsx → utils.ts. Avoid adding to these cycles.

HIGH

Project strongly prefers named exports over default exports.

HIGH

Tests use Jest.

HIGH
+ 1 MORE FINDINGS (MEDIUM CONFIDENCE)

Source code lives in src/ but some code files exist at the root. Keep application code in src/.

MED
GENERATED IN ~3 SECONDS WITH

npx sourcebook init

VIEW ON GITHUB star

FROM_THE_BLOG

RELATED_REPOS