Introducing a new way to review your PRs.

Read the announcement

crmne / spotifast

Spotify, native and fast. One lightweight Rust app for your whole library, local playback, and Spotify Connect on Linux, macOS, and Windows.

View on GitHub

19 documents · Updated Nov 18, 2026

docs / content-discovery-and-library

Content discovery and library experiences

Spotifast gives a signed-in listener several paths to find and return to music. Home offers guided discovery, Library keeps saved collections close, Search finds known content, and detail pages connect albums, artists, playlists, and liked songs to playback.

Product discovery map

The discovery system turns account data and Spotify catalogue results into pages, shelves, cards, and song lists. Each surface can open a deeper page or start playback, so discovery and listening remain part of one flow.

flowchart LR
    A[Home] --> B[Discovery shelves]
    C[Library] --> D[Saved collections]
    E[Search] --> F[Catalogue results]
    B --> G[Album, artist, playlist, or show page]
    D --> G
    F --> G
    G --> H[Play or queue content]
    G --> I[Radio or recommendations]

The main product surfaces are:

  • Home: A changing starting point for recent listening, new releases, mixes, top content, and recommendations.
  • Library: A personal view of playlists, albums, artists, podcasts, episodes, and Liked Songs.
  • Search: A direct path to songs, artists, albums, playlists, podcasts, and episodes.
  • Content pages: Focused views for an artist, album, playlist, show, release list, or liked collection.
  • Radio and recommendations: New listening paths built from a song or other content seed.

Home discovery

Home is the broadest discovery surface. It combines recent activity with content shaped by the listener's account, then lets the listener move from a compact shelf to a full page or play content at once.

Quick access and listening history

Quick access places recently used listening contexts near the top of Home. A context can be a playlist, album, artist, show, Liked Songs, or a song that was played on its own; repeated contexts appear only once, and saved playlists fill open space when history is not ready.

The Recently played shelf shows distinct tracks from listening history. A track can play by itself and can open its album when that album is known.

References: src/…/home.rs• L80-189 src/…/home.rs• L192-325 src/…/home.rs• L508-595

Personal shelves and recommendations

Home groups account-based discovery into shelves rather than one long result list. Made for you and top mixes provide generated playlists, while top artists and top songs reflect listening patterns. The recommendation shelf is optional and appears only when its Home setting is enabled.

These shelves are entry points, not separate content types. A playlist card opens the playlist page or starts its context, while a song row joins the same playback path used by other song lists.

References: src/…/home.rs• L327-374 src/…/home.rs• L745-817 src/…/home.rs• L820-901 src/…/home.rs• L903-985

Release exploration

New releases highlights the latest albums, EPs, and singles from followed artists. The shelf opens an individual release, while its title opens a full page containing the release tracks in newest-first order.

Artist pages extend this path with popular songs, release categories, upcoming releases, and related artists. This lets a listener move from one release to the artist's wider catalogue without returning to Search.

References: src/…/home.rs• L376-452 src/…/new_releases.rs• L16-184 src/…/artist.rs• L15-313

Library and saved content

Library is the listener's durable collection view. It presents saved or followed content as playlists, albums, artists, podcasts, and episodes, with Liked Songs as a special collection that can be opened and played like a playlist.

Library navigation and organization

The sidebar is the main Library entry point. It supports list or grid presentation, shelf tabs, local text filtering, sorting, playlist folders, pins, and an optional By You filter for playlists owned by the signed-in account.

Playlist rows preserve the relationship between folders and playlists when the selected order supports folders. A collapsed folder hides its children, while a library search keeps matching playlists reachable. The same area also provides playlist creation and drag targets for adding songs or saving them to Liked Songs.

References: src/…/sidebar.rs• L715-884 src/…/sidebar.rs• L1034-1223 src/…/sidebar.rs• L1225-1378

Saved collections

Full Library pages use cards for albums, artists, and podcasts and rows for saved episodes. Cards open detail pages and can start the related context. Lists load more content as the listener approaches the end, so a large collection remains browsable without showing all entries at once.

Liked Songs uses the collection page model but has no ordinary playlist identity. It represents the account's saved tracks and remains a first-class playback context in the sidebar, Home, and collection actions.

References: src/…/library.rs• L11-237 src/…/sidebar.rs• L48-69 src/…/sidebar.rs• L299-325

Collection pages

Album, playlist, and Liked Songs pages share a collection experience: a hero area identifies the collection, action controls start or shuffle it, and a song table presents the tracks. The table can filter and sort the visible view, and playback follows that view when its order differs from the source collection.

Playlist pages also support account actions such as adding, removing, moving, and copying songs when the listener has edit rights. These controls keep playlist management close to the content being heard.

References: src/…/collection.rs• L27-41 src/…/collection.rs• L305-523 src/…/collection.rs• L774-798 src/…/collection.rs• L800-1170

Search and direct discovery

Search is the direct route when the listener knows what to find. Before a query is entered, it shows recent searches; after a query is committed, it presents a top result and grouped results for songs, artists, albums, playlists, podcasts, and episodes.

The result view changes with the selected content filter. A card can open the matching detail page, and a song result can play as an individual item rather than treating the other search results as its queue. Empty, loading, offline, and failed states are shown as part of the same search flow.

For the relationship between search, collection pages, and release browsing, see Library, search, and releases.

References: src/…/search.rs• L15-80 src/…/search.rs• L83-126 src/…/search.rs• L128-289 src/…/search.rs• L435-480

Radio and recommendation flows

Radio and recommendation features extend discovery after a listener finds a starting point. They use a known song, playlist, album, or artist as a seed and return playable content that can be explored as a named page or saved for later.

Seeded radio

Radio presents Spotify's mix for a seed as a playlist-like page. The page explains what it is based on, lists the tracks it will play, and offers playback, refresh, and save-as-playlist actions. A song seed has no separate content page in the radio header, while playlist, album, and artist seeds link back to their source pages.

Radio depends on playback on the local computer. If that playback path is not available, the page keeps its identity but reports that it cannot produce the station yet.

References: src/…/radio.rs• L20-180 src/…/collection.rs• L324-405

Recommendation entry points

Recommendations appear as Home shelves, generated mixes, related artists, and radio pages. These entry points differ in how they are named and grouped, but they share the same product goal: turn a known listening signal into another playable context.

For the detailed radio, recommendation, and social discovery flows, see Radio and recommendation flows.

References: src/…/home.rs• L327-374 src/…/home.rs• L981-985 src/…/artist.rs• L263-312 src/…/radio.rs• L204-250

Cross-surface playback handoff

Discovery surfaces do not own a separate player. Cards, rows, collection actions, and radio pages hand a content URI or ordered set of song URIs to the shared playback flow. The current context decides whether the same control pauses or resumes, while a new context starts the selected content.

This shared handoff keeps behavior consistent across Home, Library, Search, artist pages, and radio. It also lets menus on the same surfaces add content to playlists, queue it, save it, or open a related page without losing the listener's place.

References: src/…/home.rs• L254-321 src/…/sidebar.rs• L71-142 src/…/search.rs• L451-480 src/…/collection.rs• L324-405

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the page identity, seed URI, and displayed song order aligned when changing radio or collection playback.
  • Keep Library filters, folder visibility, pin order, and playlist ownership rules aligned when changing sidebar data or account updates.
  • Keep Home shelf cards and their full-page links aligned when adding or renaming a discovery source.
  • Keep search result filters and the result-to-detail-page mapping aligned when adding a supported content type.
  • Keep Liked Songs mapped to the account collection context rather than treating it as a normal playlist URI.

Important failure modes

TriggerConsequenceGuard
Local playback is unavailable for radioThe radio page cannot load its track mixShow the radio page state and report that local playback must be enabled
A Library list has more content than the loaded pageA collection can look incomplete or fail to find a matchLoad more near the end and while filtering a partial list
Search has no committed query or no networkThe listener cannot get catalogue resultsShow recent searches, an offline state, or a clear no-results state
A playlist is filtered by ownership or folder stateA playlist can vanish from the visible treeApply the same visibility rules to rows, folder counts, and text search
Playback follows a sorted or filtered collection viewThe player can start a different order than the listener seesBuild playback from the displayed rows when the view changes the source order

Key files

FileWhy to read it
src/…/home.rsDefines the main discovery surface and its account-based shelves.
src/…/sidebar.rsDefines Library navigation, saved-content organization, folders, filters, and pins.
src/…/library.rsDefines full-page browsing for saved albums, artists, podcasts, and episodes.
src/…/search.rsDefines query states, result groups, filters, and result actions.
src/…/collection.rsDefines the shared collection header, actions, and song-table experience.
src/…/artist.rsDefines artist exploration from popular songs through discography and related artists.
src/…/new_releases.rsDefines the full New releases listening page.
src/…/radio.rsDefines seeded radio as a playable, refreshable, and savable content page.