How rs-anantmishra/streamsphere works
Main System Components
a) Frontend Layer:
• Angular-based UI application (found in /ui directory)
• Components for videos, playlists, categories, and downloads
• Services for API communication
• WebSocket service for real-time updates
b) Backend Layer:
• Main API Service (in /api directory)
• Content Processor Service (in /processor directory)
• File Management System
• Database Layer (SQLite)
c) External Services:
• yt-dlp integration for video downloading
• Content storage system
Component Relationships
[Frontend Layer]
• WebSocket Connection
• HTTP/REST APIs
[Backend Layer]
• API Service
• Handlers
• Middleware
• Presenters
• Processor Service
• Extractor
• Media Processing
• Request Handler
• Database Layer
• SQLite
• File System
• Content Storage
Specific Implementation Details
a) Frontend Architecture:
• Component-based structure (videos, playlists, categories)
• Services layer for API communication
• WebSocket integration for real-time updates
• Theme support (light/dark)
b) Backend Services:
• API handlers for different functionalities
• Content processor for video extraction
• File management system
• Database queries and management
c) Docker Container Structure:
• Main application container
• Content serving container
• Volume management for persistence
Data Flow Indicators
• User requests flow
• Video download process
• Content storage operations
• Real-time updates via WebSocket
• Database operations