How movixstream/movixopensource works
Movix is a community streaming platform in which users discover media, select a playback source, and watch through a web or mobile client. The monorepo also provides account and community features, source extraction/proxying, and WatchParty synchronization. The README documents the major product subsystems; source-index references support a few internal API and mobile relationships. Many routes and integrations are unsampled, so their detailed call paths are not inferred.
Main entry points: App.tsx Web application · server.js Main API · mysqlPool.js MySQL store · src Mobile browser
Components 25
User clients
- Web application
src/App.tsx - Media discovery
src/pages - Search context
src/context/SearchContext.tsx - Navigation header
src/components/Header.tsx - Browser tools
extension/Chrome - Mobile browser
app/src
Main API
- Main API
API/Mainapi/server.js - Authentication
API/Mainapi/routes/authRoutes.js - Auth middleware
API/Mainapi/middleware/auth.js - Account sync
API/Mainapi/routes/sync.js - Community features
API/Mainapi/commentsRoutes.js - Yearly stories
API/Mainapi/wrappedRoutes.js - MySQL store
API/Mainapi/mysqlPool.js - Redis cache
API/Mainapi/config/redis.js
Playback services
- Embed extraction
API/proxiesembed/server.py - DRM services
API/proxiesembed/drmproxy - CORS proxy
cloudflareproxy/worker.js - Android media proxy
app/android/app/src/main/java/com/movix/app/proxy/MediaProxyServer.kt - iOS media proxy
app/ios/Movix/Proxy/MediaProxyServer.swift
WatchParty
- WatchParty service
API/watchpartyAPI/watchparty.js - Sync engine
wasm/watchparty-sync/src/lib.rs - Browser sync worker
src/workers/watchpartySync.worker.ts
Companion services
- PreMiD presence
PreMid/presence.ts - Social previews
functions/_lib/socialPreview.js
Other components
- Viewer
Connections 26
- Viewer → Web application: uses
- Web application → Media discovery: renders
src/App.tsx - Web application → Navigation header: renders
src/App.tsx - Media discovery → Search context: searches
- Web application → Main API: requests
- Browser tools → Main API: integrates
- Mobile browser → Main API: connects
- Main API → Authentication: routes
- Authentication → Auth middleware: uses
API/Mainapi/routes/authRoutes.js - Authentication → MySQL store: persists sessions
API/Mainapi/routes/authRoutes.js - Account sync → Auth middleware: validates requests
API/Mainapi/routes/sync.js - Account sync → MySQL store: reads and writes
API/Mainapi/routes/sync.js - Community features → MySQL store: stores community data
API/Mainapi/commentsRoutes.js - Community features → Redis cache: caches profiles
API/Mainapi/commentsRoutes.js - Yearly stories → Account sync: uses sync policy
API/Mainapi/wrappedRoutes.js - Yearly stories → MySQL store: loads metadata
- Web application → Embed extraction: gets stream sources
- Embed extraction → DRM services: serves DRM
API/proxiesembed/server.py - Web application → CORS proxy: uses proxy
- Mobile browser → Android media proxy: relays media
- Mobile browser → iOS media proxy: proxies playback
- Web application → WatchParty service: joins parties
- Browser sync worker → Sync engine: uses engine
- WatchParty service → Sync engine: synchronizes playback
- Web application → PreMiD presence: reports presence
- Viewer → Social previews: opens media links