How hantsaniala/hstream works
Main Components
A. Frontend Layer:
• Vue.js application (located in /ui directory)
• Components for video playback and management
• Router for navigation
• HTTP services for API communication
B. Backend Layer:
• Go server (main application)
• Video processing module (pkg/hStream)
• Key generation and encryption services (pkg/gen)
• Command-line interface (cmd directory)
C. Storage Layer:
• PostgreSQL database
• Redis cache
• File storage system (upload directory)
• Original video storage
• Media storage for processed videos
D. External Services:
• Docker containerization
• Environment configuration
[Client Browser] → [Frontend (Vue.js)] → [Backend API Server]
• ↓
• [File Storage] ← [Video Processing Engine] → [Redis Cache]
• ↓
• [PostgreSQL Database]
Component Details to Highlight
A. Frontend Components (Blue Section):
• Router and service layers
• Connection to backend API
B. Backend Services (Green Section):
• Main API server
• Video processing module (hStream)
• Encryption and key management
• Task management system
C. Storage Components (Yellow Section):
• Database connections
• Redis cache
• File system storage for videos
• Original video storage
• Processed media storage
Data Flow Indicators
• Video upload flow
• Processing pipeline
• Streaming delivery
• API communications
• Cache interactions
• Database operations
Security Layer (Red Border)
• Encryption boundaries
• Key management flow
• Access control points
Specific Implementation Details
Project-specific elements:
• Video encoding options (from pkg/hStream/encode_options.go)
• Task management system (from pkg/hStream/tasks.go)
• Controller layer (from pkg/hStream/controller.go)
• Database interactions (from pkg/hStream/db.go)