How compileconnected/tachiyomi works
Main Components
a. Frontend Layer (Presentation)
• Compose UI components (under presentation-core/)
• Screens and navigation (under app/src/main/java/eu/kanade/presentation/)
• Widgets (under presentation-widget/)
• Theme and styling components
b. Domain Layer
• Use cases/interactors (under domain/src/main/java/tachiyomi/domain/)
• Models and entities
• Repository interfaces
• Business logic
c. Data Layer
• Repositories implementation (under data/src/main/java/tachiyomi/data/)
• Local storage (SQLite via SQLDelight)
• Network clients
• Cache management
d. Source Management
• Source API (under source-api/)
• Local source handling (source-local/)
• Extension system (under app/src/main/java/eu/kanade/tachiyomi/extension/)
Core Features to Highlight
a. Manga Management
• Library organization
• Categories
• Download management
• Reading history
b. Reader Component
• Multiple viewer types (pager, webtoon)
• Chapter navigation
• Reading settings
c. Tracking System
• Multiple tracker support (MAL, AniList, etc.)
• Sync functionality
• Progress tracking
Data Flow Representation
a. Main Data Flows
• Manga discovery → Library addition → Reading
• Chapter updates → Download → Local storage
• Reading progress → Tracker sync
b. Background Operations
• Library updates
• Download queue
• Backup system
External Integrations
a. Source Extensions
• Extension installation system
• Source catalogues
• Update mechanism
b. Tracking Services
• Authentication
• Data synchronization
• API integration
Technical Components
a. Storage
• Database (SQLDelight)
• File system for downloads
• Preferences
b. Network
• HTTP client
• Image loading
• API clients
[User Interface Layer]
↓↑
[Presentation Layer (ViewModels)]
↓↑
[Domain Layer (Use Cases)]
↓↑
[Data Layer (Repositories)]
↓↑
[Local Storage] ←→ [Network Layer] ←→ [External Services]
Key Considerations:
Connection Types
• Double lines: Data flow
Legends for
• Component types
• Data flow directions
• State management
• Background processes