How predidit/kazumi works
Kazumi is a Flutter anime discovery and streaming app built around user-editable scraping rules. The main path is: choose a source, search or browse anime, resolve an episode to a stream, then watch it in the player, with optional danmaku and enhancement. Separate capabilities cover Bangumi metadata and schedules, collections and history, downloads, rule management, and cross-device sync. The README documents these product relationships; the supplied source excerpts chiefly show native host integration, so Dart-level call ownership cannot be confirmed here.
Main entry points: player_controller.dart Video Player · plugin_editor_page.dart Rule Editor · bangumi_api.dart Bangumi API · webdav.dart Device Sync
Components 28
Discovery
- Anime Catalog
lib/pages/popular/popular_page.dart - Anime Search
lib/pages/search/search_page.dart - Image Search
lib/pages/search/image_search_page.dart - Broadcast Timeline
lib/pages/timeline/timeline_page.dart - Anime Details
lib/pages/info/info_page.dart - Bangumi API
lib/request/apis/bangumi_api.dart
Streaming
- Source Resolver
lib/services/video_source/video_source_service.dart - Video Player
lib/pages/player/player_controller.dart - Danmaku
lib/modules/danmaku/danmaku_module.dart - Anime4K Upscaling
lib/services/shaders/shader_asset_service.dart - Downloads
lib/services/download/download_manager.dart - External Playback
lib/services/player/external_playback_launcher.dart
Personal Library
- Collections
lib/pages/collect/collect_page.dart - Watch History
lib/pages/history/history_page.dart - Device Sync
lib/services/sync/webdav.dart - WebDAV Server
Rules and Sources
- Rule Editor
lib/pages/plugin_editor/plugin_editor_page.dart - Rule Engine
lib/services/plugin/rule_engine.dart - Plugin Sources
lib/plugins/plugins.dart
Platform Integration
- Windows Host
windows/runner/flutter_window.cpp - Linux Host
linux/my_application.cc - External Player Portal
linux/external_player_portal.cc
Other components
- Viewer
- Bangumi Service
- Danmaku Service
- SyncPlay Service
- trace.moe Service
- media-kit
Connections 30
- Viewer → Anime Catalog: browses
README.md - Viewer → Anime Search: searches
README.md - Viewer → Image Search: identifies from image
README.md - Viewer → Broadcast Timeline: views schedule
README.md - Viewer → Rule Editor: edits rules
README.md - Anime Search → Rule Engine: searches via rules
README.md - Anime Catalog → Anime Details: opens details
- Broadcast Timeline → Bangumi API: gets metadata
README.md - Anime Details → Bangumi API: gets metadata
README.md - Bangumi API → Bangumi Service: requests metadata
README.md - Rule Editor → Plugin Sources: manages sources
README.md - Rule Editor → Rule Engine: configures rules
- Rule Engine → Source Resolver: resolves streams
- Source Resolver → Video Player: provides stream
- Viewer → Video Player: watches episodes
README.md - Video Player → media-kit: plays media
README.md - Video Player → Danmaku: shows subtitles
README.md - Danmaku → Danmaku Service: requests danmaku
README.md - Video Player → Anime4K Upscaling: applies upscaling
README.md - Video Player → Downloads: downloads episodes
- Video Player → External Playback: launches external playback
README.md - Viewer → Collections: manages watchlist
README.md - Viewer → Watch History: reviews viewing history
README.md - Collections → Device Sync: syncs collection
README.md - Watch History → Device Sync: syncs history
README.md - Device Sync → WebDAV Server: syncs remotely
README.md - Image Search → trace.moe Service: recognizes anime
README.md - Viewer → SyncPlay Service: watches together
README.md - Windows Host → media-kit: registers plugin
windows/runner/flutter_window.cpp - Linux Host → External Player Portal: uses portal
linux/my_application.cc