一个基于 Next.js 16 构建的现代化视频聚合播放平台。采用独特的 "Liquid Glass" 设计语言,提供流畅的视觉体验和强大的视频搜索功能。
This report summarizes scanner evidence for KuekHaoYang/KVideo, a TypeScript project with 4,232 GitHub stars. SynthScan examined 64,584 lines of code across 383 source files, recording 52 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.0 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 52 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 42 finding(s).
Which changes need focused human review? 52 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 52 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | components/home/hooks/usePersonalizedRecommendations.ts | 44 | export function usePersonalizedRecommendations(isPremium = false) { | CODE |
| LOW⚡ | components/player/DanmakuCanvas.tsx | 66 | function getDanmakuSettingsSnapshot(): string { | CODE |
| LOW⚡ | components/player/DanmakuCanvas.tsx | 71 | function subscribeToDanmakuSettings(listener: () => void): () => void { | CODE |
| LOW⚡ | components/player/DanmakuCanvas.tsx | 75 | function parseDanmakuSettingsSnapshot(snapshot: string): DanmakuSettingsSnapshot { | CODE |
| LOW | components/player/hooks/usePlayerSettings.ts | 34 | function getPlayerSettingsSnapshot(isPremium: boolean, mediaProxyEnabled: boolean): PlayerSettingsSnapshot { | CODE |
| LOW | …mponents/player/hooks/desktop/useFullscreenControls.ts | 70 | async function waitForWindowFullscreenLayout(): Promise<void> { | CODE |
| LOW | components/player/hooks/desktop/android-pip-utils.ts | 20 | export function createAndroidPiPTransitionPlan(fullscreenMode: FullscreenMode): AndroidPiPTransitionPlan { | CODE |
| LOW | components/player/hooks/desktop/android-pip-utils.ts | 29 | export function shouldRestoreInlineAfterAndroidPiP( | CODE |
| LOW | components/player/hooks/desktop/android-pip-utils.ts | 40 | export function shouldRollbackTemporaryWindowFullscreen(session: AndroidPiPSessionState | null): boolean { | CODE |
| LOW | lib/app-release.ts | 74 | export function getDefaultRepositoryBranch( | CODE |
| LOW | lib/config/lan-access.ts | 29 | function normalizeAllowedOriginHost(rawOrigin: string): string | null { | CODE |
| LOW | lib/config/lan-access.ts | 49 | export function parseLanAllowedDevOrigins(value: string | undefined | null): string[] { | CODE |
| LOW | lib/config/deployment.ts | 17 | export function shouldEnableVercelAnalytics(env: EnvLike = process.env): boolean { | CODE |
| LOW | lib/server/api-responses.ts | 3 | export function authenticationRequiredResponse(): NextResponse { | CODE |
| LOW | lib/server/auth-helpers.ts | 68 | export function shouldUseSecureSessionCookie(request?: SessionCookieProtocolRequest): boolean { | CODE |
| LOW | lib/server/auth-helpers.ts | 181 | export function isBootstrapAdminCredential( | CODE |
| LOW | lib/server/douban-image.ts | 10 | export function buildDoubanImageCandidates(rawUrl: string): string[] { | CODE |
| LOW | lib/server/auth.ts | 90 | function getEffectiveAdminPassword(): string { | CODE |
| LOW | lib/server/auth.ts | 187 | async function ensureManagedAccountsBootstrapped(): Promise<StoredAccountRecord[]> { | CODE |
| LOW | lib/server/auth.ts | 247 | function buildLegacyProfileIdInput(password: string): ArrayBuffer { | CODE |
| LOW | lib/server/auth.ts | 273 | function sessionPayloadToServerSession(payload: SessionPayload): ServerAuthSession { | CODE |
| LOW | lib/server/auth.ts | 440 | async function authenticateManagedAdminCredential(username: string, password: string): Promise<boolean> { | CODE |
| LOW | lib/server/auth.ts | 445 | async function authenticateLegacyAdminCredential(password: string): Promise<boolean> { | CODE |
| LOW | lib/server/auth.ts | 506 | export async function createSessionStatusResponse(request: NextRequest): Promise<NextResponse> { | CODE |
| LOW | lib/utils/video.ts | 51 | export function extractNumericResolutionLabel( | CODE |
| LOW | lib/utils/video.ts | 67 | export function extractPlaybackQualityLabel( | CODE |
| LOW | lib/utils/floating-button-position.ts | 26 | export function clampFloatingButtonPosition( | CODE |
| LOW | lib/utils/floating-button-position.ts | 46 | export function getDefaultFloatingButtonPosition( | CODE |
| LOW | lib/utils/floating-button-position.ts | 87 | export function getPositionFromFloatingButtonRatios( | CODE |
| LOW | lib/utils/m3u8-ad-signatures.ts | 3 | export function findDuplicateSignatureBlockIndices(blocks: Block[]): Set<number> { | CODE |
| LOW | lib/utils/m3u8-utils.ts | 66 | function isAuxiliaryAdMetadataLine(trimmedLine: string, normalizedKeywords: string[]): boolean { | CODE |
| LOW | lib/utils/m3u8-duration-grid.ts | 45 | export function isSmallIntegerDurationBlock(samples: DurationSample[]): boolean { | CODE |
| LOW | lib/utils/m3u-parser.ts | 67 | function looksLikeRelativeMediaPath(value: string): boolean { | CODE |
| LOW | lib/utils/m3u-parser.ts | 239 | export function extractPlaylistReferences(content: string, baseUrl?: string): PlaylistReference[] { | CODE |
| LOW | lib/hooks/useFloatingButtonPosition.ts | 53 | export function useFloatingButtonPosition({ | CODE |
| LOW | lib/store/search-history-store.ts | 123 | export function useSearchHistoryStoreSelector(isPremium = false) { | CODE |
| LOW | lib/player/resolution-cache.ts | 42 | export function shouldReuseCachedResolution( | CODE |
| LOW | lib/player/resolution-probe-utils.ts | 104 | export function parseResolutionFromManifest(content: string, baseUrl?: string): ResolutionProbeLabel | null { | CODE |
| LOW | lib/player/resolution-probe-utils.ts | 145 | export function extractVariantPlaylistUrls(content: string, baseUrl: string): string[] { | CODE |
| LOW | lib/player/danmaku-canvas-utils.ts | 37 | export function resolveDanmakuCanvasMetrics( | CODE |
| LOW | lib/player/danmaku-canvas-utils.ts | 68 | export function haveDanmakuCanvasMetricsChanged( | CODE |
| LOW | lib/player/source-list-utils.ts | 15 | export function shouldExpandForCurrentSource( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | components/player/hooks/useDanmaku.ts | 72 | // Step 1: Search for the anime | COMMENT |
| LOW⚡ | components/player/hooks/useDanmaku.ts | 87 | // Step 2: Match title | COMMENT |
| LOW⚡ | components/player/hooks/useDanmaku.ts | 95 | // Step 3: Match episode | COMMENT |
| LOW⚡ | components/player/hooks/useDanmaku.ts | 103 | // Step 4: Fetch comments | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | components/player/hooks/useDanmaku.ts | 72 | // Step 1: Search for the anime | COMMENT |
| LOW⚡ | components/player/hooks/useDanmaku.ts | 87 | // Step 2: Match title | COMMENT |
| LOW⚡ | components/player/hooks/useDanmaku.ts | 95 | // Step 3: Match episode | COMMENT |
| LOW⚡ | components/player/hooks/useDanmaku.ts | 103 | // Step 4: Fetch comments | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | wrangler.toml | 2 | # This file provides compatibility settings for Cloudflare Pages deployment. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | app/player/page.tsx | 542 | // Preserve playback position for seamless source switch | COMMENT |