How noryaren/diarflix works
Diarflix is a self-hosted film and series player. Users load the browser player, browse or search the library, then stream media with subtitles and saved per-user progress; administrators can scan media and manage users and metadata. The graph follows the documented SPA/API workflow and the sampled front-controller, authentication, scanner, and streaming code. Some client-side and API internals are unsampled, so those relationships are included only where documented.
Main entry points: index.php HTTP front controller · api.php Browse & admin API · scanner.php Library scanner · bootstrap.php Application bootstrap
Components 15
Web experience
- HTTP front controller
public/index.php - SPA shell
app/views/shell.php - Browser player
public/assets/app.js
Application backend
- Browse & admin API
app/api.php - JWT authentication
app/auth.php - Application bootstrap
app/bootstrap.php - Application helpers
app/helpers.php
Media library
- Library scanner
app/scanner.php - Media & subtitle delivery
app/stream.php - Media files
- ffmpeg / ffprobe
Persistent state
- Database connection
app/db.php - MariaDB / MySQL
- Poster uploads
storage/covers
Other components
- Viewer / admin
Connections 24
- Viewer / admin → HTTP front controller: opens player
README.md - HTTP front controller → Application bootstrap: loads
public/index.php - Application bootstrap → Application helpers: loads
app/bootstrap.php - Application bootstrap → Database connection: loads
app/bootstrap.php - Application bootstrap → JWT authentication: loads
app/bootstrap.php - HTTP front controller → SPA shell: renders
public/index.php - SPA shell → Browser player: loads
app/views/shell.php - Browser player → Browse & admin API: requests data
README.md - HTTP front controller → Browse & admin API: dispatches API
public/index.php - Browse & admin API → JWT authentication: checks identity
app/api.php - JWT authentication → Database connection: queries users
app/auth.php - Browse & admin API → Database connection: reads and writes
app/api.php - Database connection → MariaDB / MySQL: connects
app/db.php - Browser player → HTTP front controller: requests streams
README.md - HTTP front controller → Media & subtitle delivery: routes media
public/index.php - Media & subtitle delivery → Media files: serves ranges
README.md - Media & subtitle delivery → MariaDB / MySQL: looks up posters
app/stream.php - HTTP front controller → Library scanner: loads scanner
public/index.php - Browse & admin API → Library scanner: starts web scan
- Viewer / admin → Library scanner: runs CLI scan
README.md - Library scanner → Media files: scans files
app/scanner.php - Library scanner → MariaDB / MySQL: updates library
app/scanner.php - Library scanner → ffmpeg / ffprobe: extracts subtitles
app/scanner.php - Browse & admin API → Poster uploads: saves posters
README.md