How bitsbytoader/tsuki works
Main Components Identification
The system should be represented with these key components:
a. Client Applications
• iOS/iPadOS App
• macOS App
• Widget Extensions
b. Core Components
• Data Models Layer
• Persistence Layer
• UI Components
• External Services (MangaDex API)
Specific Implementation Details
• Data flow between MangaDex API and local storage
• Widget data updates
• Authentication flow
• Chapter download/caching mechanism
Key Architectural Patterns to Highlight
• Shared code architecture (note the "Shared" folder structure)
• MVVM pattern for view management
• CoreData integration for persistence
• Widget extension architecture
┌─────────────────── Client Layer ───────────────────┐
• ┌─────────┐ ┌──────────┐ ┌──────────────┐ │
• iOS App │ │macOS App │ │ Widgets │ │
• ┘ └──────────┘ └──────────────┘ │
• ┬──────────────────────────┘
• ┌──────────▼───────────┐
• Shared Module │
• ┬───────────┘
┌──────────────────────────────────────────────────┐
• ┌─────────────┐ ┌────────────┐ ┌────────────┐ │
• AppState │ │View Models │ │ Helpers │ │
• ┘ └────────────┘ └────────────┘ │
• ┬──────────────────────────┘
┌──────────────────────▼──────────────────────────┐
• ┌─────────────┐ ┌────────────┐ ┌────────────┐ │
• Data Models │ │ CoreData │ │ Cache │ │
• ┘ └────────────┘ └────────────┘ │
• ┬──────────────────────────┘
• ┌──────────▼───────────┐
• MangaDex API │
• ┘
Important Notes
• A note about the offline functionality
• Authentication flow with MangaDex
• Widget data update mechanism
• Localization support (en.lproj, ro.lproj)
• Future integration points for planned features