How mhss1/mybrain works
Main Architecture Overview
a) Core Layers (vertically):
• Presentation Layer (UI/Compose)
• Domain Layer (Use Cases)
• Data Layer (Repository Implementations)
• Database Layer (Room)
b) Feature Modules (horizontally):
• Tasks
• Notes
• Calendar
• Diary
• Bookmarks
• AI Assistant
• Settings
• Widget
Module Dependencies
• Feature modules → Core modules
• All modules → Core:UI
• All modules → Core:Database
• All modules → Core:DI (Koin)
Data Flow Components
a) Local Storage:
• Room Database
• DataStore Preferences
• File System (for backups)
b) External Integrations:
• Calendar Content Provider
• AI APIs (OpenAI, Gemini)
• Alarm Manager
• Biometric Authentication
Specific Implementation Details
For each feature module, show:
• Repository
• Use Cases
• ViewModels
• UI Components
Example for Tasks Module:
Tasks Module
• Presentation
• TasksViewModel
• TasksScreen
• Components
• Domain
• TaskRepository (Interface)
• Use Cases
• Data
• TaskRepositoryImpl
Cross-Cutting Concerns
Shared functionality:
• DI Container (Koin)
• Navigation
• Theme/Styling
• Permissions
• Notifications