A modern Jellyfin client built with Expo
This report summarizes scanner evidence for streamyfin/streamyfin, a TypeScript project with 5,326 GitHub stars. SynthScan examined 292,192 lines of code across 1606 source files, recording 144 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 0.6 (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? 133 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 60 finding(s).
Which changes need focused human review? 144 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 144 distinct pattern matches across 10 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 | metro.config.js | 1 | // Learn more https://docs.expo.io/guides/customizing-metro | COMMENT |
| LOW | app/+native-intent.ts | 1 | // Expo Router's hook for the links the system opens the app with. The logic is | COMMENT |
| LOW | app/(auth)/(tabs)/(libraries)/[libraryId].tsx | 521 | // The policy is covered by utils/library/libraryTabs.test.ts, the counts by | COMMENT |
| LOW | app/(auth)/(tabs)/(home)/_layout.tsx | 21 | import { userAtom } from "@/providers/JellyfinProvider"; | COMMENT |
| LOW | providers/WebSocketProvider.tsx | 461 | // session expiry (the auth interceptor handles it). What remains is | COMMENT |
| LOW | providers/JellyfinProvider.tsx | 201 | // approves it with the token it already holds, so Seerr opens an ordinary | COMMENT |
| LOW | providers/JellyfinProvider.tsx | 261 | // the dead token stays in storage, so every reload re-fires authed calls → | COMMENT |
| LOW | providers/NativePlayerProvider.tsx | 1101 | }); | COMMENT |
| LOW | providers/PlaySettingsProvider.tsx | 121 | [api, user, settings, playSettings], | COMMENT |
| LOW | utils/sentry.ts | 21 | // allows submitting events, so shipping it in the client bundle is fine. | COMMENT |
| LOW | utils/sentry.ts | 241 | enableSwizzling: false, | COMMENT |
| LOW | utils/errors.ts | 61 | // - 523: the origin is unreachable (routing, DNS) | COMMENT |
| LOW | utils/errors.ts | 81 | export const isGatewayStatus = (status: number): boolean => | COMMENT |
| LOW | utils/errors.ts | 381 | // space, a slash, a comment or a list separator. A dot or a colon after it | COMMENT |
| LOW | utils/httpFailureGate.ts | 21 | // in search, by every screen that mounts the same request, and by each layer | COMMENT |
| LOW | utils/atoms/settings.ts | 1081 | const stillCurrent = () => { | COMMENT |
| LOW | utils/jellyfin/getDefaultPlaySettings.ts | 321 | } | COMMENT |
| LOW | utils/tvDiscovery/payload.ts | 81 | COMMENT | |
| LOW | components/settings/LocalNetworkSettings.tsx | 161 | // `192.168.1.10` became the API base path on home Wi-Fi and crashed the | COMMENT |
| LOW | components/video-player/controls/SkipSegmentOverlay.tsx | 41 | COMMENT | |
| LOW | …s/video-player/controls/NextEpisodeCountDownButton.tsx | 61 | // Advancing is one-way per appearance: without this, any re-render inside | COMMENT |
| LOW | components/video-player/controls/Controls.tsx | 481 | // only shifts left when the icon is actually shown. | COMMENT |
| LOW | components/video-player/controls/Controls.tsx | 501 | // can't swap Skip Credits, the countdown and the prompt around under the | COMMENT |
| LOW | hooks/usePushRegistration.ts | 41 | // one goes out. | COMMENT |
| LOW | hooks/useAppLanguage.ts | 21 | notifications: Notifications | null, | COMMENT |
| LOW | hooks/useMediaPreferences.ts | 241 | // session-start concern, so it keys off the user's identity instead. | COMMENT |
| LOW | .github/workflows/release.yml | 1 | name: 🚀 Release (EAS build + submit) | COMMENT |
| LOW | modules/mpv-player/ios/PlayerAudioSession.swift | 1 | import AVFoundation | COMMENT |
| LOW | modules/mpv-player/ios/PlayerEngine.swift | 121 | name: UIApplication.didEnterBackgroundNotification, object: nil) | COMMENT |
| LOW | modules/mpv-player/ios/PlayerEngine.swift | 341 | COMMENT | |
| LOW | modules/mpv-player/ios/MPVLayerRenderer.swift | 161 | COMMENT | |
| LOW | modules/mpv-player/ios/MPVLayerRenderer.swift | 341 | // Moving this elsewhere causes tvOS to freeze when exiting the player. | COMMENT |
| LOW | modules/mpv-player/ios/MPVLayerRenderer.swift | 361 | #if os(tvOS) | COMMENT |
| LOW | modules/mpv-player/ios/MPVLayerRenderer.swift | 381 | // | COMMENT |
| LOW | modules/mpv-player/ios/MPVLayerRenderer.swift | 441 | /// Step 3 is the one that breaks on Apple platforms: CoreText answers with a | COMMENT |
| LOW | modules/mpv-player/ios/MPVLayerRenderer.swift | 601 | // Clear wakeup callback first to stop event processing | COMMENT |
| LOW | modules/mpv-player/ios/MPVLayerRenderer.swift | 621 | // this can be the layer's final reference. A CALayer that has | COMMENT |
| LOW | modules/mpv-player/ios/MPVLayerRenderer.swift | 781 | // MARK: - Property Helpers | COMMENT |
| LOW | modules/mpv-player/ios/MPVLayerRenderer.swift | 1221 | COMMENT | |
| LOW | …ules/mpv-player/ios/NativePlayer/PlayerViewModel.swift | 21 | /// Bridges MPVPlayerEngine callbacks into SwiftUI state and dual-emits every | COMMENT |
| LOW | …ules/mpv-player/ios/NativePlayer/PlayerViewModel.swift | 161 | /// Custom proxy auth headers for the thumbnails above (see RemoteImage). | COMMENT |
| LOW | …ules/mpv-player/ios/NativePlayer/PlayerViewModel.swift | 221 | private(set) var sleepTimerEndDate: Date? | COMMENT |
| LOW | …ules/mpv-player/ios/NativePlayer/PlayerViewModel.swift | 241 | /// stream) and a second onNextEpisodeRequested fires mid-swap. | COMMENT |
| LOW | …ayer/ios/NativePlayer/NativePlayerViewController.swift | 1 | import Combine | COMMENT |
| LOW | …ayer/ios/NativePlayer/NativePlayerViewController.swift | 21 | #if os(iOS) | COMMENT |
| LOW | …ayer/ios/NativePlayer/NativePlayerViewController.swift | 61 | COMMENT | |
| LOW | …ayer/ios/NativePlayer/NativePlayerViewController.swift | 121 | COMMENT | |
| LOW | …ayer/ios/NativePlayer/NativePlayerViewController.swift | 221 | // two-finger pinch can be observed without entering the SwiftUI gesture | COMMENT |
| LOW | …ayer/ios/NativePlayer/NativePlayerViewController.swift | 381 | } | COMMENT |
| LOW | …ayer/ios/NativePlayer/Views/PlayerCenterControls.swift | 1 | #if os(iOS) | COMMENT |
| LOW | …ayer/ios/NativePlayer/Views/TV/TVChromeLayerView.swift | 1 | #if os(tvOS) | COMMENT |
| LOW | …ayer/ios/NativePlayer/Views/TV/TVChromeLayerView.swift | 141 | /// deliberately does not publish the ~30Hz clock (see PlaybackTimeModel). | COMMENT |
| LOW | …yer/ios/NativePlayer/Views/TV/TVFocusCoordinator.swift | 41 | /// what makes or breaks it: | COMMENT |
| LOW | …yer/ios/NativePlayer/Views/TV/TVFocusCoordinator.swift | 141 | private static let establishGrace: TimeInterval = 0.05 | COMMENT |
| LOW | …yer/ios/NativePlayer/Views/TV/TVFocusCoordinator.swift | 261 | /// | COMMENT |
| LOW | …player/ios/NativePlayer/Views/TV/TVOverlayLayers.swift | 1 | #if os(tvOS) | COMMENT |
| LOW | …v-player/ios/NativePlayer/Views/TV/TVControlsRow.swift | 1 | #if os(tvOS) | COMMENT |
| LOW | …player/ios/NativePlayer/Views/TV/TVTrickplayCard.swift | 1 | #if os(tvOS) | COMMENT |
| LOW | …c/main/java/expo/modules/mpvplayer/MPVLayerRenderer.kt | 141 | // | COMMENT |
| LOW | …c/main/java/expo/modules/mpvplayer/MPVLayerRenderer.kt | 281 | // Hardware decoder codecs (shared) | COMMENT |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …bs)/(home)/settings/appearance/hide-libraries/page.tsx | 16 | export default function AppearanceHideLibrariesPage() { | CODE |
| LOW | …p/(auth)/(tabs)/(home)/settings/notifications/page.tsx | 5 | export default function NotificationsSettingsPage() { | CODE |
| LOW | plugins/withTVOSTopShelf.ts | 32 | function getKeychainAccessGroupIdentifier(config: ExpoConfig): string { | CODE |
| LOW | plugins/withTVOSTopShelf.ts | 56 | function ensureKeychainAccessGroup( | CODE |
| LOW | providers/AudioStorage/index.ts | 80 | function withCurrentContainerPaths( | CODE |
| LOW | providers/Downloads/fileOperations.ts | 162 | export function deletePendingDownloadFiles(download: AbandonedDownload): void { | CODE |
| LOW | providers/Downloads/fileOperations.ts | 219 | export function calculateTotalDownloadedSize(): number { | CODE |
| LOW | providers/Downloads/utils.ts | 75 | export function liveActivityPosterFileName(item: BaseItemDto): string { | CODE |
| LOW | providers/Downloads/liveActivity.ts | 120 | export async function buildDownloadActivityMetadata({ | CODE |
| LOW | providers/Downloads/liveActivity.ts | 152 | export function setDownloadLiveActivityEnabled(enabled: boolean): void { | CODE |
| LOW | providers/Downloads/hooks/useDownloadReconciliation.ts | 104 | export function useDownloadReconciliation({ | CODE |
| LOW | utils/background-tasks.ts | 11 | export async function registerBackgroundFetchAsync(): Promise<boolean> { | CODE |
| LOW | utils/background-tasks.ts | 44 | export async function unregisterBackgroundFetchAsync(): Promise<boolean> { | CODE |
| LOW | utils/background-tasks.ts | 58 | export async function unregisterBackgroundFetchAsyncSessions(): Promise<boolean> { | CODE |
| LOW | utils/background-tasks.ts | 74 | export async function registerBackgroundFetchAsyncSessions(): Promise<boolean> { | CODE |
| LOW | utils/seriesTrackMemory.ts | 63 | export function rememberSeriesTrackFromRow(options: { | CODE |
| LOW | utils/downloadSize.ts | 53 | export function estimateDownloadActivitySize( | CODE |
| LOW | utils/secureCredentials.ts | 185 | export async function getCredentialOrForgetAccount( | CODE |
| LOW | utils/secureCredentials.ts | 420 | export function updateServerCustomHeaders( | CODE |
| LOW | utils/secureCredentials.ts | 628 | export function makeServerHeadersReadableWhileLocked(): void { | CODE |
| LOW | utils/secureCredentials.ts | 831 | export async function migrateCurrentSessionToSecureStorage( | CODE |
| LOW | utils/atoms/downloadedSubtitles.ts | 136 | export function removeAllSubtitlesForItem(itemId: string): void { | CODE |
| LOW | utils/atoms/downloadedSubtitles.ts | 159 | export function getAllDownloadedSubtitles(): DownloadedSubtitle[] { | CODE |
| LOW | utils/jellyfin/userConfiguration.ts | 23 | export function buildUserConfigurationPayload( | CODE |
| LOW | utils/jellyfin/createApi.ts | 76 | export function createApiWithCustomHeaders( | CODE |
| LOW | utils/customHeaders/integrations.ts | 80 | export function updateIntegrationHeaderConfig( | CODE |
| LOW | utils/customHeaders/integrations.ts | 103 | export function getIntegrationHeaderConfig( | CODE |
| LOW | utils/customHeaders/integrations.ts | 126 | export function makeIntegrationHeadersReadableWhileLocked(): void { | CODE |
| LOW | utils/customHeaders/integrations.ts | 157 | export function resolveIntegrationHeaders( | CODE |
| LOW | utils/customHeaders/secureValues.ts | 59 | function secureValueKeyScopeMatches( | CODE |
| LOW | utils/customHeaders/secureValues.ts | 128 | export function resolveCustomHeaderValues( | CODE |
| LOW | utils/customHeaders/secureValues.ts | 148 | export function secureCustomHeaderMetadata( | CODE |
| LOW | utils/customHeaders/secureValues.ts | 201 | export function deleteSecureCustomHeaderValues(headers: CustomHeader[]): void { | CODE |
| LOW | utils/customHeaders/secureValues.ts | 228 | export function recreateLegacySecureValues( | CODE |
| LOW | utils/customHeaders/normalize.ts | 19 | function hasInvalidHeaderValueCharacters(value: string): boolean { | CODE |
| LOW | utils/customHeaders/resolve.ts | 102 | function getSavedServerHeadersForUrl( | CODE |
| LOW | utils/customHeaders/optionalHeaders.ts | 15 | export function sourceWithOptionalHeaders( | CODE |
| LOW | utils/nativePlayer/resolveFailedPresentation.ts | 21 | export function resolveFailedPresentation(input: { | CODE |
| LOW | utils/nativePlayer/syncPlay.ts | 86 | export async function dispatchNativeSyncPlayAction( | CODE |
| LOW | utils/query/networkAwareInvalidate.ts | 12 | export function invalidateQueriesWhenOnline( | CODE |
| LOW | utils/downloads/offline-series.ts | 16 | export function getDownloadedEpisodesForSeries( | CODE |
| LOW | utils/downloads/offline-series.ts | 30 | export function getDownloadedEpisodesForSeason( | CODE |
| LOW | utils/downloads/offline-series.ts | 43 | export function getDownloadedEpisodesBySeasonId( | CODE |
| LOW | utils/downloads/offline-series.ts | 57 | export function getDownloadedSeasonNumbers( | CODE |
| LOW | utils/downloads/offline-series.ts | 99 | export function buildOfflineSeriesFromEpisodes( | CODE |
| LOW | utils/directPlayer/sessionPosition.ts | 42 | export function resolveSessionPositionTicks(session: { | CODE |
| LOW | components/tv/settings/TVCustomHeadersSection.tsx | 91 | function TVIntegrationHeaderEditor({ | CODE |
| LOW | hooks/useRevalidatePlaybackProgressCache.ts | 8 | export function useInvalidatePlaybackProgressCache() { | CODE |
| LOW | hooks/useTVBackPress.ts | 19 | export function enableTVMenuKeyInterception() { | CODE |
| LOW | hooks/useTVBackPress.ts | 25 | export function disableTVMenuKeyInterception() { | CODE |
| LOW | hooks/useNetworkAwareQueryClient.ts | 22 | export function useNetworkAwareQueryClient(): NetworkAwareQueryClient { | CODE |
| LOW | hooks/useDismissKeyboardOnLeave.ts | 16 | export function useDismissKeyboardOnLeave() { | CODE |
| LOW | scripts/typecheck.ts | 76 | function parseErrorsAndCreateSummary(errorOutput: string): { | CODE |
| LOW | modules/tv-user-profile/index.ts | 44 | export function isProfileSwitchingSupported(): boolean { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …s/mpvplayer/nativeplayer/ui/SyncPlayQueuePhoneSheet.kt | 416 | private fun androidx.compose.foundation.layout.RowScope.TransportButton( | CODE |
| CRITICAL | …ain/java/expo/modules/exoplayerplayer/ExoPlayerView.kt | 408 | androidx.media3.exoplayer.audio.AudioCapabilities.getCapabilities(context) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/ks-player/SwiftUIUsage.md | 81 | print("Error: \(error)") | CODE |
| MEDIUM | docs/ks-player/KSPlayerLayer.md | 282 | print("Error occurred") | CODE |
| MEDIUM | docs/ks-player/UIKitUsage.md | 149 | print("Error occurred") | CODE |
| MEDIUM | modules/mpv-player/ios/Logger.swift | 118 | print("Error managing log file: \(error)") | CODE |
| MEDIUM | modules/mpv-player/ios/Logger.swift | 141 | print("Error truncating log file: \(error)") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/tv-modal-guide.md | 37 | ### Step 1: Create the Atom | COMMENT |
| LOW | docs/tv-modal-guide.md | 54 | ### Step 2: Create the Hook | COMMENT |
| LOW | docs/tv-modal-guide.md | 76 | ### Step 3: Create the Modal Page | COMMENT |
| LOW | docs/tv-modal-guide.md | 154 | ### Step 4: Add Stack.Screen Configuration | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/ks-player/SubtitleSupport.md | 289 | let openSubSource = OpenSubtitleDataSouce(apiKey: "your-api-key") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | e2e/syncplay/setup.py | 37 | except (OSError, ValueError): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | utils/jellyfin/subtitleUtils.ts | 579 | // 1) Exact identity by external filename — robust against hidden-embedded offset. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | components/search/LoadingSkeleton.tsx | 56 | Lorem ipsum | CODE |
| LOW | modules/tv-search/ios/TvSearchModule.swift | 10 | Prop("placeholder") { (view: TvSearchView, value: String?) in | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | e2e/syncplay/setup.py | 30 | CODE |