e0d6cd79598cbc0faeeba4e3c8fd6972921c136b
- Add httpx>=0.28.0 to services/bff/pyproject.toml for the planned TMDB movie search proxy (M4.3). - Add grpcio-health-checking>=1.83.1 to services/worker/pyproject.toml for Worker gRPC health probing (M3.4/M5.3), updating uv.lock via uv lock. - Copy sibling workspace manifests (pyproject.toml, README.md) in services/worker/Dockerfile and services/bff/Dockerfile so uv sync --frozen --no-dev resolves the monorepo lockfile. - Set ENV DATABASE_URL="sqlite+aiosqlite:////data/magnetflix.sqlite3" in services/worker/Dockerfile to match docs/deployment.md when run standalone. - Update CLAUDE.md and flake.nix shellHook to use uv sync --all-packages so syncing does not uninstall workspace member packages. - Update Makefile generate target to invoke buf directly when already inside nix develop.
🎬 MagNetFlix
Self-hosted, automated media acquisition and library organization pipeline built with FastAPI (BFF), gRPC, SQLite WAL, Transmission RPC, and pluggable SSO/OIDC authentication.
📖 Table of Contents
- Overview — Mission, user workflow, and features.
- Architecture — System design, state machine, security boundaries, and storage invariants.
- Reconciled Roadmap — Dependency-ordered implementation milestones.
- Deployment Guide — Docker Compose topology, volume mounts, and SSO identity adapter.
- Architecture Decision Records — Canonical records of design choices, tradeoffs, and invariants:
- Historical Audit Ledger — Phase A current-state audit and portfolio assessment.
- Development Rules & Agent Guidelines — Code quality standards, safety rules, and workspace invariants.
⚡ Quick Start
# 1. Enter hermetic dev shell (Nix)
nix develop
# 2. Or install dependencies with uv workspace
uv sync
# 3. Generate protobuf stubs & documentation
make generate
# 4. Run test suite
uv run pytest
# 5. Run static type checking and linters
make check
📁 Repository Structure
.
├── AGENTS.md # Development guidelines & safety invariants
├── CLAUDE.md # Developer CLI commands & tool directives
├── Makefile # High-level build, codegen, lint, and test targets
├── README.md # Project landing page
├── buf.gen.yaml # Buf code generation configuration
├── buf.yaml # Buf module configuration
├── docker-compose.yml # Multi-container Compose stack specification
├── docs/ # Authoritative architecture and operations documentation
│ ├── adr/ # Architecture Decision Records (ADRs)
│ ├── history/ # Audit logs and review ledgers
│ ├── architecture.md # System design, data flow, and invariants
│ ├── deployment.md # Container topology and reverse proxy integration
│ ├── overview.md # Feature overview & workflow
│ └── roadmap.md # 5-Milestone implementation plan
├── proto/ # Protocol Buffer definitions
│ └── magnetflix/v1/
│ └── pipeline.proto
├── services/
│ ├── bff/ # FastAPI Web Gateway / HTML Form / Pluggable SSO
│ ├── contracts/ # Shared Protobuf & gRPC contracts package
│ └── worker/ # gRPC Pipeline Worker & Transmission Coordinator
└── tests/ # Unit and integration test suites
Description
Self-hosted media acquisition and library organization pipeline built with FastAPI (BFF), gRPC, SQLite WAL, Transmission RPC, and Authelia SSO.
Readme
728 KiB
0 Stars
1 Watchers
0 Forks
Languages
Python
93%
Dockerfile
3%
Nix
2.5%
Mako
1.1%
Makefile
0.4%