How arunkumarj325/streamflix works
Streamflix is a self-hosted local-video streaming app. A viewer selects a profile, browses or filters the movie catalog, and plays a title; the server scans the movies folder, asks Gemini for metadata, and serves video files. Profiles, catalog, metadata extraction, and playback are distinct product stages. The sampled storage implementation is in-memory, despite the README’s PostgreSQL/Drizzle description; database persistence and resume-state wiring are not evidenced in the excerpts, so those connections are omitted.
Main entry points: browse.tsx Movie browse · App.tsx App navigation · routes.ts HTTP routes · queryClient.ts API query client
Components 20
Viewing experience
- App navigation
client/src/App.tsx - Profile selection
client/src/pages/profile-selection.tsx - Movie browse
client/src/pages/browse.tsx - Kids catalog
client/src/pages/kids-section.tsx - Search and navigation
client/src/components/navbar.tsx - Catalog filters
client/src/components/filter-bar.tsx - Movie cards
client/src/components/movie-card.tsx - Movie details
client/src/components/movie-details-modal.tsx - Video player
client/src/components/video-player.tsx - Profile avatar
client/src/components/profile-avatar.tsx
Server API
- HTTP routes
server/routes.ts - Express app setup
server/app.ts
Catalog and metadata
- Profile and movie store
server/storage.ts - Local movie scanner
server/routes.ts - Metadata extraction
server/gemini.ts
Runtime state
- Active profile
client/src/lib/profile-context.tsx - API query client
client/src/lib/queryClient.ts
Other components
- Viewer
- Movies folder
- Google Gemini
Connections 24
- Viewer → App navigation: uses
- App navigation → Profile selection: shows
client/src/App.tsx - App navigation → Movie browse: shows
client/src/App.tsx - App navigation → Kids catalog: shows
client/src/App.tsx - App navigation → Active profile: provides
client/src/App.tsx - Profile selection → Active profile: selects profile
- Movie browse → Search and navigation: renders
- Movie browse → Catalog filters: filters catalog
- Movie browse → Movie cards: displays titles
- Movie browse → Movie details: opens title
- Kids catalog → Movie cards: displays titles
- Search and navigation → Profile avatar: renders
client/src/components/navbar.tsx - Movie browse → API query client: requests catalog
- Profile selection → API query client: requests profiles
- Movie details → Video player: starts playback
- Video player → API query client: requests stream
- API query client → HTTP routes: HTTP requests
- Express app setup → HTTP routes: registers routes
server/app.ts - HTTP routes → Profile and movie store: reads and writes
server/routes.ts - HTTP routes → Local movie scanner: handles scan
server/routes.ts - Local movie scanner → Movies folder: scans files
server/routes.ts - Local movie scanner → Metadata extraction: extracts metadata
server/routes.ts - Metadata extraction → Google Gemini: generates metadata
server/gemini.ts - HTTP routes → Movies folder: streams video
server/routes.ts