How akshaypathakdev/vidio works
Vidio is a full-stack video-sharing platform. Users authenticate, discover videos and channels, then watch, interact, and manage videos, subscriptions, history, and playlists. Uploads enter an asynchronous processing workflow: the API validates and stores the original, queues a job, and a worker transcodes it to HLS qualities for cloud storage and playback. The graph also preserves account, social, collaboration, and real-time capabilities documented in the README. Evidence is limited to the supplied excerpts, SOURCE INDEX references, and README; unsampled implementation links are omitted or marked unverified.
Main entry points: app.js Express API · App.jsx Application routes · video.controller.js Video handlers · video.worker.js Video worker
Components 22
React client
- Application routes
client/src/App.jsx - API services
client/src/services/api.js - Accounts and verification
client/src/features/auth/pages/VerifyEmail.jsx - Video discovery and playback
client/src/features/video - Channels and subscriptions
client/src/features/channel - Playlists and collaboration
client/src/features/playlist/pages/Playlists.jsx - Comments and notifications
client/src/components/comments
API and domain
- Express API
server/src/app.js - Account and channel handlers
server/src/controllers/user.controller.js - Video handlers
server/src/controllers/video.controller.js - Playlist handlers
server/src/controllers/playlist.controller.js - Social and activity handlers
server/src/controllers
Video processing
- Video job queue
server/src/queues/video.queue.js - Video worker
server/src/workers/video.worker.js - Transcoding and HLS
server/src/utils/video-processing/videoProcessor.js
Persistence and storage
- MongoDB models
server/src/models - Backblaze B2
server/src/services/b2.service.js - Cloudinary media
server/src/services/cloudinary.service.js
Real-time communication
- Redis infrastructure
server/src/config/redis.js - Socket.IO server
server/src/sockets - Live client updates
client/src/context/SocketContext.jsx
Other components
- Viewer / creator
Connections 29
- Viewer / creator → Application routes: uses
README.md - Application routes → API services: requests data
- Application routes → Accounts and verification: routes to
client/src/App.jsx - Application routes → Video discovery and playback: routes to
client/src/App.jsx - Application routes → Playlists and collaboration: routes to
client/src/App.jsx - Application routes → Channels and subscriptions: routes to
client/src/App.jsx - Application routes → Express API: calls API
README.md - Express API → Account and channel handlers: routes requests
server/src/app.js - Express API → Video handlers: routes requests
server/src/app.js - Express API → Playlist handlers: routes requests
server/src/app.js - Express API → Social and activity handlers: routes requests
server/src/app.js - Account and channel handlers → MongoDB models: reads and writes
server/src/controllers/user.controller.js - Playlist handlers → MongoDB models: reads and writes
server/src/controllers/playlist.controller.js - Video handlers → Video job queue: enqueues jobs
server/src/controllers/video.controller.js - Video handlers → Backblaze B2: stores and streams
server/src/controllers/video.controller.js - Video handlers → Cloudinary media: stores thumbnails
server/src/controllers/video.controller.js - Video handlers → MongoDB models: reads and writes
server/src/controllers/video.controller.js - Video job queue → Video worker: dispatches jobs
README.md - Video worker → Transcoding and HLS: processes video
server/src/workers/video.worker.js - Transcoding and HLS → Backblaze B2: uploads HLS
README.md - Video worker → MongoDB models: updates status
- Video worker → Redis infrastructure: reports progress
README.md - Redis infrastructure → Socket.IO server: relays updates
README.md - Socket.IO server → Live client updates: sends events
README.md - Live client updates → Viewer / creator: shows updates
README.md - Video discovery and playback → Express API: streams video
README.md - Comments and notifications → Express API: sends interactions
- Channels and subscriptions → Express API: manages channels
- Playlists and collaboration → Express API: manages playlists