How ajgpw/siatube works
しあTube is a Vue client for browsing channels and videos, searching, watching streams, and managing playlists, subscriptions, history, and settings. The principal flow is user navigation into a routed view, retrieval through the SiaTube API and response adapters, then presentation; playback adds stream selection and player controls. The graph includes storage and guarded/proxied networking as internal layers. Edges are limited to relationships shown in excerpts, the SOURCE INDEX, or README; unsampled implementations are represented only where the index documents their role.
Main entry points: index.js Route table · siatubeApi.js SiaTube API · ChannelView.vue Channel page · VideoPlayer.vue Video page
Components 27
Application shell
- App shell
src/App.vue - Route table
src/router/index.js
Discovery and channels
- Home feed
src/views/HomeView.vue - Search results
src/views/SearchView.vue - Search suggestions
src/utils/searchManager.js - Channel page
src/views/ChannelView.vue - Channel content cards
src/components/channel/ChannelContentCard.vue
Video playback
- Video page
src/views/VideoPlayer.vue - Stream player
src/components/player/StreamPlayer.vue - Stream modes
src/components/player/StreamType2.vue - Stream parsing
src/utils/player/type2StreamParser.js - Video comments
src/components/video/Comment.vue
Personal library
- Playlist view
src/components/playlist/Playlist.vue - Saved playlists
src/services/storage/playlistManager.js - Playlist library
src/views/PlaylistsView.vue - Subscriptions
src/views/SubscriptionsView.vue - Subscription store
src/services/storage/subscriptionManager.js - Watch history
src/views/HistoryView.vue - History store
src/services/storage/historyManager.js - Settings page
src/views/SettingsView.vue - Settings store
src/services/storage/settingsManager.js
API and persistence
- SiaTube API
src/services/api/siatubeApi.js - Response adapters
src/services/api/siatubeAdapters.js - Guard requests
src/services/guard/guarded-request.js - Request proxy
src/services/network/requestProxy.js
Other components
- Viewer
- SiaTube service
Connections 35
- Viewer → App shell: uses
- App shell → Route table: mounts routes
src/main.js - Route table → Home feed: routes to
src/router/index.js - Route table → Search results: routes to
src/router/index.js - Route table → Channel page: routes to
src/router/index.js - Route table → Video page: routes to
src/router/index.js - Route table → Playlist view: routes to
src/router/index.js - Route table → Playlist library: routes to
src/router/index.js - Route table → Subscriptions: routes to
src/router/index.js - Route table → Watch history: routes to
src/router/index.js - Route table → Settings page: routes to
src/router/index.js - Search results → SiaTube API: fetches results
src/views/SearchView.vue - Search results → Response adapters: normalizes results
src/views/SearchView.vue - Search results → Search suggestions: loads suggestions
- Search suggestions → SiaTube API: requests suggestions
src/utils/searchManager.js - Channel page → SiaTube API: fetches channel data
src/views/ChannelView.vue - Channel page → Response adapters: normalizes channel data
src/views/ChannelView.vue - Channel page → Channel content cards: renders cards
src/views/ChannelView.vue - Channel page → Subscription store: manages subscription
src/views/ChannelView.vue - Video page → SiaTube API: fetches video
src/views/VideoPlayer.vue - Video page → Stream player: renders player
src/views/VideoPlayer.vue - Video page → Video comments: renders comments
src/views/VideoPlayer.vue - Video page → History store: records history
src/views/VideoPlayer.vue - Stream player → Stream modes: selects mode
- Stream modes → SiaTube API: requests stream data
src/components/player/StreamType2.vue - Stream modes → Stream parsing: parses streams
src/components/player/StreamType2.vue - Playlist view → SiaTube API: fetches remote playlist
src/components/playlist/Playlist.vue - Playlist view → Saved playlists: loads local playlist
src/components/playlist/Playlist.vue - Playlist library → Saved playlists: manages playlists
- Subscriptions → Subscription store: reads subscriptions
- Watch history → History store: reads history
- Settings page → Settings store: reads and saves
src/views/SettingsView.vue - SiaTube API → Guard requests: guards requests
src/services/api/siatubeApi.js - SiaTube API → Request proxy: proxies requests
src/services/api/siatubeApi.js - SiaTube API → SiaTube service: sends requests