How ridhwaans/homehost works
Main System Components
a) Client Layer (Frontend):
• React-based web application
• Three main media sections (Movies, TV Shows, Music)
• Search functionality
• Media player components
• Admin interface
b) Server Layer (Backend):
• Node.js server
• RESTful API endpoints
• Media file system integration
• Metadata processing service
• Database integration
c) External Services:
• TMDb API integration
• Spotify Web API integration
• File System (for media storage)
[External APIs]
• ↕
[Client Layer] ←→ [Server Layer] ←→ [File System]
• ↕
• [Database]
Component Details
For each major component, include these elements:
Client Layer:
• Three main media sections (Movies, TV Shows, Music)
• Search component
• Media player components
• Routing system
• Admin interface
Server Layer:
• API routes organization
• Metadata processing service
• Job scheduling system
• Database interaction layer
• File system management
Database:
• Prisma ORM integration
• Media metadata storage
• File reference storage
Data Flow Indicators
• API requests between client and server
• External API calls
• File system operations
• Database queries
• Media streaming paths
Technical Stack Indicators
• React (Frontend)
• Node.js (Backend)
• Prisma (ORM)
• SQLite (Database)
• Webpack (Build tool)
Additional Elements
Include:
• Environment configuration flow
• Media file naming conventions
• Authentication flow (if implemented)
• Streaming protocols
• Cache management
File system monitoring
This architecture represents a self-hosted media streaming platform with emphasis on home network usage, metadata enrichment, and organized media management.