How tairtasnis/tesifyrust works
Tesify is a cross-platform music player: users browse or search Spotify’s catalog, choose tracks, and play them through a Rust backend that resolves audio sources. The app also manages a local playlist library, imports public Spotify playlists, and retrieves lyrics. The graph preserves these distinct capabilities and the shared playback, catalog, and storage layers. Some subsystem details come from README documentation and indexed paths rather than sampled implementation; uncertain links are omitted.
Main entry points: routes.rs HTTP API routes · backend.ts Backend client · App.tsx App and navigation · client.rs Spotify client
Components 24
React app
- App and navigation
Frontend/src/app/App.tsx - Search page
Frontend/src/pages/Search/SearchPage.tsx - Artist page
Frontend/src/pages/Artist/ArtistPage.tsx - Lyrics page
Frontend/src/pages/Lyrics/LyricsPage.tsx - Playback provider
Frontend/src/shared/playback/PlaybackProvider.tsx - Backend client
Frontend/src/shared/lib/backend.ts - Playlist pages
Frontend/src/pages/Playlist/PlaylistPage.tsx - Storage settings
Frontend/src/pages/Settings/StorageSettings.tsx
Catalog services
- Catalog search
Backend/src/pages/search/service.rs - Spotify client
Backend/src/shared/spotify/client.rs - Catalog models
Backend/src/shared/spotify/models.rs - Artist details
Backend/src/pages/artist/service.rs - Album details
Backend/src/pages/album/service.rs - Spotify playlists
Backend/src/pages/spotify_playlist/service.rs
Library and settings
- HTTP API routes
Backend/src/preview/routes.rs - Playlist library
Backend/src/shared/playlists/store.rs - Spotify import
Backend/src/pages/playlist/spotify.rs - Cover uploads
Backend/src/pages/library/covers.rs
Playback and lyrics
- Playback commands
Backend/src/shared/playback/commands.rs - Audio resolution
Backend/src/shared/playback/play_engine.rs - Audio stream
Backend/src/shared/playback/stream.rs - Lyrics service
Backend/src/pages/lyrics/service.rs - Lyrics providers
Backend/src/pages/lyrics/providers.rs
Other components
- Listener
Connections 33
- Listener → App and navigation: uses
- App and navigation → Search page: renders
Frontend/src/app/App.tsx - Search page → Backend client: searches via
Frontend/src/pages/Search/SearchPage.tsx - Backend client → HTTP API routes: HTTP requests
- HTTP API routes → Catalog search: routes search
Backend/src/preview/routes.rs - Catalog search → Spotify client: queries
Backend/src/pages/search/service.rs - Catalog search → Catalog models: returns catalog
Backend/src/pages/search/service.rs - App and navigation → Artist page: renders
Frontend/src/app/App.tsx - Artist page → Backend client: loads details
Frontend/src/pages/Artist/ArtistPage.tsx - HTTP API routes → Artist details: routes artist
Backend/src/preview/routes.rs - Artist details → Spotify client: queries
Backend/src/pages/artist/service.rs - HTTP API routes → Album details: routes album
Backend/src/preview/routes.rs - Album details → Spotify client: queries
Backend/src/pages/album/service.rs - HTTP API routes → Spotify playlists: routes playlist
Backend/src/preview/routes.rs - Spotify playlists → Spotify client: queries
Backend/src/pages/spotify_playlist/service.rs - App and navigation → Playback provider: provides playback
Frontend/src/app/App.tsx - Playback provider → Backend client: requests playback
Frontend/src/shared/playback/PlaybackProvider.tsx - Backend client → HTTP API routes: HTTP requests
- HTTP API routes → Playback commands: dispatches prepare
Backend/src/preview/routes.rs - Playback commands → Audio resolution: prepares source
- Audio resolution → Audio stream: serves audio
- App and navigation → Lyrics page: renders
Frontend/src/app/App.tsx - Lyrics page → Backend client: requests lyrics
Frontend/src/pages/Lyrics/LyricsPage.tsx - HTTP API routes → Lyrics service: dispatches lyrics
Backend/src/preview/routes.rs - Lyrics service → Lyrics providers: fetches lyrics
Backend/src/pages/lyrics/service.rs - App and navigation → Playlist pages: renders
Frontend/src/app/App.tsx - Playlist pages → Backend client: manages playlists
Frontend/src/pages/Playlist/PlaylistPage.tsx - HTTP API routes → Playlist library: accesses library
Backend/src/preview/routes.rs - HTTP API routes → Spotify import: dispatches import
Backend/src/preview/routes.rs - HTTP API routes → Cover uploads: uploads covers
Backend/src/preview/routes.rs - App and navigation → Storage settings: renders
Frontend/src/app/App.tsx - Storage settings → Backend client: reads usage
Frontend/src/pages/Settings/StorageSettings.tsx - Backend client → HTTP API routes: HTTP requests