How coderaarav12/media-hub-frontend works
MediaHub is a browser-based catalog and streaming SPA backed by an Express API. Users discover movies, TV, or anime, browse details and TV episodes, then choose an embed source to stream. The API obtains catalog data from TMDB and AniList, with an OMDb lookup route. The README also describes PWA support, QR sharing, update notices, and a GitHub stats card. Frontend implementation details are not excerpted, so frontend relationships below rely on README documentation; source-level API and service-worker relationships use the shown files.
Main entry points: server.js API routes · index.html MediaHub SPA · sw.js Offline caching · peeka.js Peeka companion
Components 18
Media experience
- MediaHub SPA
index.html - Catalog discovery
index.html - Titles and episodes
index.html - Embed player
index.html - QR and updates
index.html
Media API
- API routes
server.js - TMDB catalog proxy
server.js - AniList queries
server.js - IMDb lookup
server.js - Source selection
server.js
Companion widget
- Peeka companion
public/peeka.js
PWA support
- Offline caching
public/sw.js - Install metadata
public/manifest.json
Other components
- Viewer
- TMDB
- AniList
- OMDb
- Embed providers
Connections 19
- Viewer → MediaHub SPA: uses
README.md - MediaHub SPA → Catalog discovery: offers
README.md - Catalog discovery → API routes: requests catalog
README.md - API routes → TMDB catalog proxy: routes catalog
server.js - API routes → AniList queries: routes anime
server.js - API routes → IMDb lookup: routes lookup
server.js - TMDB catalog proxy → TMDB: fetches metadata
server.js - AniList queries → AniList: posts GraphQL
server.js - IMDb lookup → OMDb: looks up IMDb
server.js - MediaHub SPA → Titles and episodes: browses titles
README.md - Titles and episodes → API routes: requests details
README.md - Titles and episodes → Embed player: opens playback
README.md - Embed player → API routes: requests sources
README.md - API routes → Source selection: routes sources
server.js - Source selection → Embed providers: provides embeds
server.js - MediaHub SPA → QR and updates: provides sharing and updates
README.md - MediaHub SPA → Peeka companion: loads companion
- MediaHub SPA → Offline caching: registers worker
- Offline caching → Install metadata: caches metadata
public/sw.js