How rrrrgit/favecusplayer works
Favecus Player is a Windows music/video player with an iPhone companion. The user manages a hierarchical playlist, searches or selects media, and plays it or saves Bilibili media for offline use; playlists and local media can also be transferred by ZIP, and playlist structure can optionally sync through the user’s Supabase project. The graph includes the documented Windows and iPhone capabilities, plus the shared-core and sync layers. Some Windows UI-to-runtime wiring and unsampled subsystems are not shown in excerpts, so those links are omitted or marked unverified.
Main entry points: main.cjs App runtime · sync-service.cjs Sync operations · FavecusPlayerApp.swift iPhone app · LibraryStore.swift iPhone library
Components 24
Windows player
- Player interface
src/ui/app.js - App runtime
src/main.cjs
Library and playback
- Library store
src/core/store.cjs - Library actions
src/core/library-actions.cjs - Automatic lists
src/core/auto-lists.cjs - Playback and queue
src/core/playback.cjs - Media downloads
src/core/download-fetch.cjs - Bilibili services
src/core/bilibili.cjs
Sync and transfer
- Sync operations
src/core/sync-service.cjs - Sync engine
src/core/sync-engine.cjs - Sync state storage
src/core/sync-storage.cjs - Playlist transfer
src/core/library-transfer.cjs
iPhone companion
- iPhone app
ios/FavecusPlayer/FavecusPlayerApp.swift - iPhone library
ios/FavecusPlayer/Library/LibraryStore.swift - Shared rules
ios/FavecusPlayer/Core/SharedCore.swift - iPhone playback
ios/FavecusPlayer/Playback/PlaybackEngine.swift - iPhone downloads
ios/FavecusPlayer/Downloads/DownloadService.swift - iPhone Bilibili
ios/FavecusPlayer/Bilibili/BilibiliService.swift - iPhone ZIP transfer
ios/FavecusPlayer/Transfer/TransferService.swift - iPhone ZIP export
ios/FavecusPlayer/Transfer/ExportService.swift - ZIP reader
ios/FavecusPlayer/Transfer/ZipArchive.swift - ZIP writer
ios/FavecusPlayer/Transfer/ZipWriter.swift
Other components
- Listener
- Supabase project
Connections 23
- Listener → Player interface: uses
README.md - Listener → iPhone app: uses
README.md - Player interface → App runtime: invokes
- App runtime → Sync operations: uses
src/main.cjs - App runtime → Library store: uses
src/main.cjs - App runtime → Playback and queue: uses
src/main.cjs - App runtime → Media downloads: uses
src/main.cjs - App runtime → Playlist transfer: uses
src/main.cjs - Library actions → Library store: updates
- Playback and queue → Automatic lists: requests
- Media downloads → Bilibili services: fetches from
- Sync operations → Sync engine: coordinates
src/core/sync-service.cjs - Sync operations → Sync state storage: persists state
src/core/sync-service.cjs - Sync operations → Supabase project: syncs optionally
README.md - Playlist transfer → iPhone app: exchanges ZIP
README.md - iPhone app → iPhone library: manages
- iPhone library → Shared rules: applies rules
ios/FavecusPlayer/Library/LibraryStore.swift - iPhone playback → Shared rules: requests queue
ios/FavecusPlayer/Playback/PlaybackEngine.swift - iPhone downloads → iPhone Bilibili: resolves media
ios/FavecusPlayer/Downloads/DownloadService.swift - iPhone ZIP transfer → ZIP reader: reads archive
ios/FavecusPlayer/Transfer/TransferService.swift - iPhone ZIP export → ZIP writer: writes archive
ios/FavecusPlayer/Transfer/ExportService.swift - iPhone ZIP transfer → Shared rules: prepares import
ios/FavecusPlayer/Transfer/TransferService.swift - iPhone ZIP export → iPhone library: exports playlists
ios/FavecusPlayer/Transfer/ExportService.swift