Library, search, and releases
Spotifast helps a listener find saved music and podcasts, explore artists and shows, and start playback from each view. The main surfaces combine account data from Spotify with local library state, then present it through the sidebar, Home shelves, search results, cards, heroes, and track or episode lists.
Library browsing
Library navigation
The Library is the saved-content hub beside the main page. It gives access to playlists, albums, artists, and podcasts, and lets the listener switch between list and grid views. The listener can search the saved items, sort supported shelves, show only playlists made by the account, expand playlist folders, and create a playlist from the same surface. (See also Content discovery and library.)
The sidebar keeps the most important collection actions close to navigation. Liked Songs acts as a special collection entry, while playlists can be pinned, reordered, opened, played, and used as drop targets for songs.
References: src/…/sidebar.rs• L1034-1222 src/…/sidebar.rs• L1263-1433 src/…/sidebar.rs• L299-325
Saved collections
The full-page library views turn saved albums, artists, podcasts, and episodes into browsable cards or rows. Cards open the matching detail page and can start the item's playback context. Long lists load more as the listener nears the end, so the screen can show useful results before the full collection arrives.
The collection pages use a shared visual model: a cover and description identify the collection, an action row starts playback or changes saved state, and a track table presents songs in the current order. The table can filter rows, sort supported columns, show loading or unavailable entries, and keep playback aligned with what is visible.
References: src/…/library.rs• L11-96 src/…/library.rs• L98-235 src/…/collection.rs• L774-798 src/…/collection.rs• L1140-1167
Playlist collections
A playlist page combines identity, ownership, and song management. The header shows the playlist's owner and description, while the song view supports playback, filtering, refresh, and actions such as saving, editing, removing, copying, pasting, and moving songs when the account has permission.
The page keeps the playlist's server order separate from a filtered or sorted view. This lets the listener play the rows on screen without treating a temporary view as a new playlist order. Liked Songs uses the same song-list model but represents the account's saved tracks rather than a normal playlist.
Track menus connect these collections to the wider library. They can save songs, add them to a filtered playlist list, open related artists or albums, and start song radio. These actions use the same content context as the row that opened the menu.
flowchart LR
A[Library or Home entry] --> B[Collection page]
B --> C[Header and actions]
C --> D[Track table]
D --> E[Playback context]
D --> F[Filter or sort view]
F --> E
D --> G[Track actions]
G --> H[Playlist or detail page]
References: src/…/collection.rs• L1862-2022 src/…/collection.rs• L2478-2550 src/…/collection.rs• L324-455 src/…/widgets.rs• L677-775 src/…/widgets.rs• L894-1087
Artists and shows
Artist pages
An artist page connects identity, popular songs, releases, and related artists. The listener can play the artist, follow or unfollow it, inspect popular songs, filter the discography by release type, open an album, and browse related artists.
The page keeps its main sections useful while data loads. It can show a known artist preview first, then replace it with the complete artist view. An upcoming release can appear between popular songs and the discography when release data is available.
References: src/…/artist.rs• L15-35 src/…/artist.rs• L37-139 src/…/artist.rs• L141-312 src/…/artist.rs• L370-445
Show pages
A show page gives a podcast a stable home for its description and episodes. Its header identifies the publisher and episode count, and its main list supports episode playback, saved state, refresh, and incremental loading.
Episode rows expose the information needed to choose what to hear next: title, description, date, duration, current progress, and played state. Playing an episode can resume from its saved position. The Home podcast shelf uses the same idea to put unfinished episodes before recent unplayed episodes.
References: src/…/show.rs• L21-99 src/…/show.rs• L161-273 src/…/show.rs• L275-484 src/…/home.rs• L611-743
Search
Search results
Search turns one query into a view across songs, artists, albums, playlists, podcasts, and episodes. The default view highlights a top result and then groups useful matches into shelves. Filter chips can switch to one result type and replace shelves with a focused grid or list.
Songs play as their own visible context. Cards open the related detail page, and item menus expose the same save, queue, playlist, and radio actions available elsewhere. For radio behavior, see Radio and recommendations. This keeps search a starting point for both discovery and playback rather than a separate content system.
References: src/…/search.rs• L15-80 src/…/search.rs• L128-290 src/…/search.rs• L435-480 src/…/search.rs• L517-744 src/…/widgets.rs• L1174-1463
Search history
An empty search view shows recent searches when they exist. Selecting one runs it again, and each history item can be removed. When the listener has no history, the view explains which content types search can find; without a network connection, it states that an online search is required.
References: src/…/search.rs• L83-126 src/model.rs• L814-838
Home discovery surfaces
Made-for-you content
Home presents personalized playlists in a Made for you shelf and can follow it with Your top mixes. These shelves are optional Home sections, so the listener can keep the page focused while still having a direct path to personalized listening.
The cards use normal playlist behavior. A listener can play a mix, open its playlist page, or use its item menu. Access to these personalized features is part of the Spotify approval shown in Settings alongside listening activity and Spotify lyrics. Loading and failure states stay inside the shelf rather than hiding the rest of Home.
References: src/…/home.rs• L49-60 src/…/home.rs• L327-373 src/…/home.rs• L454-505 src/model.rs• L697-707 src/…/soloist.rs• L824-865 src/…/settings.rs• L416-458
New releases
New releases collect the latest albums and singles from artists the listener follows. Home shows them as a shelf of release cards, and the shelf title opens a dedicated page that presents every song in newest-first order.
The dedicated page is a playable track list with a play button, shuffle control, song count, and total duration. It can show an empty state when followed artists have no new releases and reports release or track loading failures without losing the page context.
References: src/…/home.rs• L376-452 src/…/new_releases.rs• L16-76 src/…/new_releases.rs• L79-184 src/model.rs• L708-717
Upcoming releases
Artist pages may expose an upcoming album through a release countdown. Selecting that item opens the release link, while an album page can switch to a pre-release view that shows the release date, countdown, save state, and available track preview.
References: src/…/artist.rs• L116-121 src/…/artist.rs• L370-445 src/…/collection.rs• L2080-2086 src/…/prerelease.rs• L37-147
Local content
Local playlist entries
Spotify can list local songs in a playlist even though Spotify does not host their audio, cover, or lyrics. Spotifast matches those entries to files in a folder selected on this computer. A matched file can play on the local player; an entry without a matching file remains unavailable while its playlist position stays visible.
This makes local content part of normal playlist browsing rather than a separate collection. The Settings surface shows whether a folder is selected and how many songs the scan found. Playlist rows use that scan to decide which local entries can play.
References: src/app.rs• L780-785 src/…/settings.rs• L389-413 src/…/settings.rs• L1097-1141 src/…/collection.rs• L1611-1645 src/…/collection.rs• L973-1019
Local file tags
Local file tags fill the media details that Spotify cannot provide for a local entry. Spotifast can use embedded front-cover art for the song cover and can read lyrics from a neighboring .lrc file or from lyrics stored in the audio file's tags.
These reads support the same player and lyrics surfaces used by streamed songs. They happen from the local file, so a missing file, unreadable media, or absent embedded data can leave the local item without art or lyrics without changing the playlist's Spotify metadata.
References: src/local_tags.rs• L1-9 src/local_tags.rs• L19-33 src/local_tags.rs• L42-99 src/images.rs• L459-532
UI surfaces and shared behavior
Discovery surfaces
The main window places the sidebar beside a central page. The sidebar handles navigation and saved-content browsing, while the central page renders Home, search, collection pages, artist and show details, and release pages. Home uses shelves and quick-access tiles for scan-friendly discovery; detail pages use heroes, action rows, cards, and tables for deeper work.
The optional Winamp playlist surface gives the current song and local queue a compact view that stays attached to the mini-player. It can open Search or Liked Songs, load one of the listener's playlists, save the current queue as a new playlist, and open the selected song's album or artist page.
Most content surfaces expose the same small set of actions: open the item, play its context, save or follow it, and open a More menu. This shared behavior lets a listener move from a search result to a detail page or from a Home shelf to a playlist without learning a new control model.
References: src/…/mod.rs• L94-119 src/…/mod.rs• L304-381 src/…/home.rs• L75-325 src/…/collection.rs• L98-229 src/…/collection.rs• L324-507 src/…/widgets.rs• L1174-1463 src/…/playlist.rs• L38-89 src/…/playlist.rs• L648-818
Loading and failure states
Library and discovery views treat network state as part of the user flow. They keep known content visible when possible, show loading rows or skeletons for missing data, offer retry or refresh where a request can be repeated, and use an offline state when no usable content is available.
Paging is visible as the listener reaches the end of a list. Search reports no matches only after its result work settles, and a partial collection can continue loading when a filter has not found a match yet.
References: src/…/library.rs• L240-278 src/…/search.rs• L34-71 src/…/collection.rs• L1140-1167 src/…/show.rs• L61-99
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the
Pagevariants and the central page dispatch aligned with sidebar entries and links from cards, shelves, heroes, and the Winamp playlist menus. - Keep filtered or sorted track views tied to the rows they play. Do not let a view silently use the source order when the screen shows a different order.
- Keep local-file matching separate from Spotify metadata. A local entry must remain visible when its file is not found.
- Keep Home's new-release shelf and the dedicated New releases page based on the same release set and ordering.
- Keep search filters, result groups, and recent-search behavior aligned with the supported content types.
- Keep artist discography filters and release-type labels aligned with the data requested for each category.
- Keep playlist menus consistent across normal track rows, selection menus, and the Winamp playlist so save, queue, detail, and playlist actions use the same context.
- Keep Made for you availability aligned with the Spotify access state shown in Settings.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A local playlist entry has no matching file in the selected folder | The row stays in its server position but cannot play | Preserve the row and mark it unavailable rather than removing it |
| A filtered or sorted playlist view uses source positions for playback | Playback starts from a different song than the one shown | Build a playback view from the displayed rows |
| A saved library request has no network connection | The listener sees an empty or incomplete collection | Show cached content when possible and use an offline state when it is not |
| A search request finishes with no results | The listener may mistake an in-progress query for a failed query | Show the no-results state only after pending work and errors are settled |
| Embedded local art or lyrics cannot be read | The local song has no file-provided cover or lyrics | Fall back to the normal missing-art or missing-lyrics presentation |
| A Winamp playlist row is mapped to a queue position instead of its displayed row | Removing a selected item changes the wrong queue entry | Keep row selection separate from queue indexes |
| Personalized Spotify access is unavailable | Made for you and related account features cannot load | Show the access state and keep the rest of Home usable |
Key files
| File | Why to read it |
|---|---|
| src/…/mod.rs | Shows how the sidebar, central page, and content page types connect. |
| src/…/sidebar.rs | Defines Library navigation, shelf controls, filters, folders, pins, and local search. |
| src/…/library.rs | Defines the full-page saved album, artist, podcast, and episode views. |
| src/…/collection.rs | Defines playlist, album, Liked Songs, and top-song pages plus shared heroes and track tables. |
| src/…/search.rs | Defines query results, result filters, recent searches, cards, and song rows. |
| src/…/artist.rs | Defines artist identity, popular songs, discography, related artists, and upcoming releases. |
| src/…/show.rs | Defines podcast identity, episode browsing, progress, and resume playback. |
| src/…/home.rs | Defines quick access, Made for you, New releases, podcast, and listening-history shelves. |
| src/…/new_releases.rs | Defines the dedicated New releases track-list page. |
| src/local_tags.rs | Defines local-file cover and lyrics sources. |
| src/…/widgets.rs | Defines shared track actions, playlist pickers, menus, and content links. |
| src/…/playlist.rs | Defines the compact queue and playlist surface attached to the Winamp mini-player. |
| src/…/soloist.rs | Shows how Spotify access status relates to personalized content and lyrics. |
| src/model.rs | Defines page types and the state shapes behind Library, Search, Home, and collection views. |