How mrfanasina/anime works
Anime Manager is a multi-client anime library and synchronization product: users browse and manage anime on the web or Android, while a FastAPI backend exposes shared catalog, watch, playback, download, and synchronization capabilities. The documented runtime also scans local media, enriches titles from MAL/AniList, and transfers files over the local network. Backend startup and Android’s local/PC catalog flow are visible in sampled source; several other capability links are based on the README and repository structure, whose implementation was not sampled.
Main entry points: routers API route handlers · main.py FastAPI application · session.py Anime database · folder.py Local media folders
Components 18
User clients
- Web application
web/src/App.jsx - Catalog and watch pages
web/src/pages - Web API client
web/src/services/api.js - Android app
mobile/app/src/main/java/com/fa/animesync/MainActivity.kt - Local and PC catalog
mobile/app/src/main/java/com/fa/animesync/ui/home/HomeFragment.kt
Backend services
- FastAPI application
backend/main.py - API route handlers
backend/app/routers - Anime and season data
backend/app/crud/anime.py - Watch progress
backend/app/crud/watch.py - Playback and downloads
backend/app/routers/player.py - Disk synchronization
backend/app/sync.py - Anime metadata enrichment
backend/app/utils/get_anime_info.py
Library and storage
- Anime database
backend/app/db/session.py - Local media folders
backend/app/utils/folder.py - Disk mounting
backend/app/utils/mount.py
External services
- MAL and AniList
Other components
- Anime user
- Local network peer
Connections 23
- Anime user → Web application: uses
- Web application → Catalog and watch pages: routes to
- Web application → Web API client: loads user
- Web API client → FastAPI application: HTTP requests
- Anime user → Android app: uses
- Android app → Local and PC catalog: opens catalog
- Local and PC catalog → Local media folders: scans local
- Local and PC catalog → FastAPI application: fetches PC anime
- FastAPI application → API route handlers: dispatches
- API route handlers → Anime and season data: calls
- API route handlers → Watch progress: calls
- API route handlers → Playback and downloads: dispatches
- API route handlers → Disk synchronization: dispatches
- API route handlers → Anime metadata enrichment: dispatches
- Anime and season data → Anime database: reads/writes
- Watch progress → Anime database: reads/writes
- Disk synchronization → Local media folders: scans and syncs
- Disk synchronization → Anime database: updates records
- Disk mounting → Local media folders: mounts
- FastAPI application → Anime database: initializes
- Anime metadata enrichment → MAL and AniList: fetches metadata
- Local network peer → FastAPI application: connects locally
- Playback and downloads → Local media folders: serves media