# getmydia/mydia

> Mydia is a self-hosted library manager and automated downloader for movies and TV shows. It scans local folders or S3 buckets, fetches posters and episode data from TMDB and TVDB, monitors missing titles and upgrades releases when better ones appear. Its server is written in Elixir with Phoenix LiveView, and Mydia Player is a separate companion client.

Source: https://github.com/getmydia/mydia
Indexed: commit 0eefde5 on 2026-11-15 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: App
- Language: Elixir
- Stars: 807 at index time
- License: AGPL-3.0
- Code health: 7.9/10
- Last commit: 2026-11-15
- Contributors: 7

## Install

From the README: https://github.com/getmydia/mydia#install

Generate the SECRET_KEY_BASE value with openssl.
    openssl rand -base64 48 # SECRET_KEY_BASE

Generate the GUARDIAN_SECRET_KEY value with openssl.
    openssl rand -base64 48 # GUARDIAN_SECRET_KEY

## How it works

Startup begins in lib/mydia/application.ex, the application entry point that starts the Elixir supervision tree. Library and media logic lives in lib/mydia/media.ex and lib/mydia/library.ex, both listed as hotspot files in the repository. Web pages are Phoenix LiveView modules under lib/mydia_web, such as lib/mydia_web/live/import_media_live/index.ex for importing media. Mydia Player is a Dart app in the player directory, with player/lib/presentation/screens/player/player_screen.dart as its player screen. The peer-to-peer remote streaming core is a Rust crate in native/mydia_p2p_core, with its code entry in native/mydia_p2p_core/src/lib.rs. The metadata-relay directory is a separate part of the repository with its own assets/package.json.

- assets/js/app.js: entry point
- lib/mydia/application.ex: entry point
- lib/mydia/changelog/entry.ex: entry point
- lib/mydia/config/bootstrap.ex: entry point
- lib/mydia/indexers/cardigann/parity/ratchet/entry.ex: entry point
Modules: player, test, lib, priv, metadata-relay, native, scripts, server. 6,055 files, 887,274 lines, 40,949 symbols.

## Code health

- Score: 7.9/10
- Trend: 7.9 on 2026-11-08, 7.9 on 2026-11-15
- Rank: not ranked (not on a leaderboard yet)
- Hotspots: player/lib/presentation/screens/player/player_screen.dart, lib/mydia/media.ex, native/mydia_p2p_core/src/lib.rs, lib/mydia/library.ex, lib/mydia_web/live/import_media_live/index.ex
- Lowest file: player/lib/core/downloads/download_service_native.dart
- Dead code: 131 findings

## Maintenance

- Last commit 2026-11-15, first commit 2025-11-04, 9,032 commits
- 7 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/getmydia/mydia/security

## More

- Page: https://repowise.dev/repo/getmydia/mydia
- Ask this codebase: https://repowise.dev/repo/getmydia/mydia/chat
- Docs: https://repowise.dev/repo/getmydia/mydia/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/getmydia/mydia
