How hgphutjb/mochy-ios works
Mochy is an iOS music player. The main workflow runs from app navigation into home/search or music pages, through song selection and actions, to playback; users can also manage a library, downloads, lyrics, accounts, and listening history. The graph includes those documented-by-source capabilities and the main playback, discovery, and persistence layers. The README is empty and many files were not excerpted, so some subsystem links are omitted rather than inferred.
Main entry points: PlayerEngine.swift Player engine · Library.swift Music library · NowPlayingViewController.swift Now playing · SongActions.swift Song actions
Components 27
App and discovery
- App navigation
Sources/RootViewController.swift - Home feed
Sources/HomeViewController.swift - Music search
Sources/SearchViewController.swift - Artist and album
Sources/MusicPageViewController.swift - Song rows
Sources/SongCell.swift - Song actions
Sources/SongActions.swift
Playback experience
- Now playing
Sources/NowPlayingViewController.swift - Player engine
Sources/PlayerEngine.swift - Playback queue
Sources/QueueViewController.swift - Lyrics
Sources/Lyrics.swift - Audio effects
Sources/Reverb.swift
Library and accounts
- Library screens
Sources/LibraryViewController.swift - Music library
Sources/Library.swift - Download manager
Sources/DownloadManager.swift - Download records
Sources/DownloadStore.swift - Playlist import
Sources/PlaylistImporter.swift - Account screens
Sources/MochyAccountViewController.swift
Music services
- Mochy cloud
Sources/MochyCloud.swift - Cloud social
Sources/CloudSocial.swift - YouTube Music API
Sources/InnerTube.swift - Last.fm integration
Sources/LastFM.swift - Listening history
Sources/PlayLog.swift - Image loading
Sources/ImageLoader.swift - Theme system
Sources/Theme.swift - Canvas media
Sources/SpotifyCanvas.swift - Listening recap
Sources/RecapViewController.swift
Other components
- Listener
Connections 48
- Listener → App navigation: opens app
Sources/RootViewController.swift - App navigation → Home feed: routes to
Sources/RootViewController.swift - App navigation → Library screens: routes to
Sources/RootViewController.swift - App navigation → Music search: routes to
Sources/RootViewController.swift - App navigation → Now playing: opens player
Sources/RootViewController.swift - Home feed → Music search: opens search
- Home feed → Artist and album: opens pages
Sources/HomeViewController.swift - Home feed → Image loading: loads artwork
Sources/HomeViewController.swift - Home feed → Cloud social: loads social
Sources/HomeViewController.swift - Music search → YouTube Music API: searches catalog
Sources/SearchViewController.swift - Music search → Mochy cloud: searches cloud
Sources/SearchViewController.swift - Artist and album → YouTube Music API: loads catalog pages
Sources/MusicPageViewController.swift - Artist and album → Image loading: loads artwork
Sources/MusicPageViewController.swift - Artist and album → Song rows: renders songs
Sources/MusicPageViewController.swift - Song rows → Song actions: opens actions
Sources/SongCell.swift - Song actions → Player engine: controls playback
Sources/SongActions.swift - Song actions → Music library: changes library
Sources/SongActions.swift - Song actions → Download manager: starts downloads
Sources/SongActions.swift - Song actions → Last.fm integration: loves tracks
Sources/SongActions.swift - Now playing → Player engine: controls playback
Sources/NowPlayingViewController.swift - Now playing → Lyrics: shows lyrics
Sources/NowPlayingViewController.swift - Now playing → Audio effects: controls effects
Sources/NowPlayingViewController.swift - Now playing → Canvas media: shows canvas
Sources/NowPlayingViewController.swift - Now playing → YouTube Music API: shows music pages
Sources/NowPlayingViewController.swift - Player engine → YouTube Music API: resolves streams
Sources/PlayerEngine.swift - Player engine → Music library: reads tracks
Sources/PlayerEngine.swift - Player engine → Download records: checks downloads
Sources/PlayerEngine.swift - Player engine → Listening history: records plays
Sources/PlayerEngine.swift - Playback queue → Player engine: controls queue
Sources/QueueViewController.swift - Library screens → Music library: reads library
Sources/LibraryViewController.swift - Library screens → Song actions: offers actions
Sources/LibraryViewController.swift - Library screens → Playlist import: opens importer
Sources/LibraryViewController.swift - Library screens → Song rows: renders songs
Sources/LibraryViewController.swift - Download manager → YouTube Music API: resolves tracks
Sources/DownloadManager.swift - Download manager → Download records: stores status
Sources/DownloadManager.swift - Download manager → Music library: updates library
Sources/DownloadManager.swift - Download records → Music library: reads library
Sources/DownloadStore.swift - Playlist import → Music library: imports playlists
- Account screens → Mochy cloud: manages account
Sources/MochyAccountViewController.swift - Mochy cloud → Music library: syncs library
Sources/MochyCloud.swift - Mochy cloud → Cloud social: uses social
Sources/MochyCloud.swift - Mochy cloud → Listening history: uses history
Sources/MochyCloud.swift - Lyrics → Download records: checks cached media
Sources/Lyrics.swift - Lyrics → Music library: reads tracks
Sources/Lyrics.swift - Lyrics → Player engine: reads playback state
Sources/Lyrics.swift - Last.fm integration → Player engine: reads playback
Sources/LastFM.swift - Last.fm integration → Listening history: uses history
Sources/LastFM.swift - Listening recap → Listening history: reads history
Sources/RecapViewController.swift