# dwikyrezza/kora architecture

> Architecture diagram of the GitHub repository dwikyrezza/kora, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dwikyrezza/kora
- Repository: https://github.com/dwikyrezza/kora

## Overview

Kora is a Flutter fitness app for running, strength training, nutrition tracking, progress reporting, and social features. Its user-facing flow begins in the app and branches into activity tracking and nutrition; local storage and cloud services support offline use and synchronization. The README documents these capabilities and integrations, but the Dart implementation was not sampled, so internal call ownership and feature-to-service wiring cannot be verified; edges below represent documented product relationships only.

Main entry points: [`lib/features/home/presentation/screens/home_screen.dart`](https://github.com/dwikyrezza/kora/blob/main/lib/features/home/presentation/screens/home_screen.dart) (Home dashboard), [`lib/main.dart`](https://github.com/dwikyrezza/kora/blob/main/lib/main.dart) (Flutter app), [`lib/features/running/presentation/screens/running_screen.dart`](https://github.com/dwikyrezza/kora/blob/main/lib/features/running/presentation/screens/running_screen.dart) (Live running), [`lib/repositories/workout_repository.dart`](https://github.com/dwikyrezza/kora/blob/main/lib/repositories/workout_repository.dart) (Workout records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App experience"]
  node_app_entry["Flutter app<br/>[main.dart]"]
  node_auth["Account access"]
  node_home["Home dashboard<br/>[home_screen.dart]"]
  node_social["Social network"]
  node_schedule["Training schedule"]
  node_reminders["Smart reminders"]
end

subgraph group_fitness["Fitness tracking"]
  node_running["Live running"]
  node_location["GPS tracking"]
  node_workout["Workout logging"]
  node_nutrition["AI nutrition"]
  node_meal_service["Meal recommendations"]
  node_reports["Weekly reports"]
  node_activity_analytics["Activity insights"]
end

subgraph group_data["Data and sync"]
  node_workout_data["Workout records"]
  node_local_db[("Local SQLite")]
  node_cloud_sync["Cloud sync"]
end

subgraph group_integrations["External services"]
  node_firebase[("Firebase services")]
  node_groq{{"Groq AI"}}
  node_vercel{{"Vercel API"}}
  node_maps{{"Google Maps"}}
  node_fcm["Firebase messaging"]
end

node_athlete(("Athlete"))

node_athlete -->|"uses"| node_app_entry
node_app_entry -->|"provides access"| node_auth
node_app_entry -->|"presents features"| node_home
node_home -->|"starts tracking"| node_running
node_running -->|"tracks GPS"| node_location
node_running -->|"displays route"| node_maps
node_home -->|"opens logging"| node_workout
node_workout -->|"records sessions"| node_workout_data
node_workout_data -->|"stores offline"| node_local_db
node_home -->|"opens tracking"| node_nutrition
node_nutrition -->|"analyzes food"| node_meal_service
node_meal_service -->|"uses API"| node_vercel
node_vercel -->|"requests analysis"| node_groq
node_home -->|"shows progress"| node_reports
node_reports -.->|"summarizes activity"| node_activity_analytics
node_home -->|"offers social"| node_social
node_home -->|"supports schedules"| node_schedule
node_workout_data -->|"syncs data"| node_cloud_sync
node_cloud_sync -->|"stores remotely"| node_firebase
node_schedule -.->|"supports reminders"| node_reminders
node_reminders -->|"sends notifications"| node_fcm

click node_app_entry "https://github.com/dwikyrezza/kora/blob/main/lib/main.dart"
click node_auth "https://github.com/dwikyrezza/kora/blob/main/lib/features/auth/presentation/screens/landing_screen.dart"
click node_home "https://github.com/dwikyrezza/kora/blob/main/lib/features/home/presentation/screens/home_screen.dart"
click node_running "https://github.com/dwikyrezza/kora/blob/main/lib/features/running/presentation/screens/running_screen.dart"
click node_location "https://github.com/dwikyrezza/kora/blob/main/lib/services/location_service.dart"
click node_workout "https://github.com/dwikyrezza/kora/blob/main/lib/features/workout/presentation/screens/workout_screen.dart"
click node_workout_data "https://github.com/dwikyrezza/kora/blob/main/lib/repositories/workout_repository.dart"
click node_nutrition "https://github.com/dwikyrezza/kora/blob/main/lib/features/ainutrition/presentation/screens/ai_nutrition_screen.dart"
click node_meal_service "https://github.com/dwikyrezza/kora/blob/main/lib/services/meal_recommender_service.dart"
click node_reports "https://github.com/dwikyrezza/kora/blob/main/lib/features/analytics/presentation/screens/weekly_report_screen.dart"
click node_activity_analytics "https://github.com/dwikyrezza/kora/blob/main/lib/features/activity_analytics/domain/rules/insight_generator.dart"
click node_social "https://github.com/dwikyrezza/kora/blob/main/lib/services/social_service.dart"
click node_schedule "https://github.com/dwikyrezza/kora/blob/main/lib/repositories/schedule_repository.dart"
click node_local_db "https://github.com/dwikyrezza/kora/blob/main/lib/services/database_helper.dart"
click node_cloud_sync "https://github.com/dwikyrezza/kora/blob/main/lib/services/cloud_sync_service.dart"
click node_reminders "https://github.com/dwikyrezza/kora/blob/main/lib/services/notification_service.dart"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_entry,node_auth,node_home,node_social,node_schedule,node_reminders toneBlue
class node_running,node_location,node_workout,node_nutrition,node_meal_service,node_reports,node_activity_analytics toneAmber
class node_workout_data,node_local_db,node_cloud_sync toneMint
class node_firebase,node_groq,node_vercel,node_maps,node_fcm toneRose
class node_athlete toneIndigo
```

## Components

### App experience

- [Flutter app](https://github.com/dwikyrezza/kora/blob/main/lib/main.dart): `lib/main.dart`
- [Account access](https://github.com/dwikyrezza/kora/blob/main/lib/features/auth/presentation/screens/landing_screen.dart): `lib/features/auth/presentation/screens/landing_screen.dart`
- [Home dashboard](https://github.com/dwikyrezza/kora/blob/main/lib/features/home/presentation/screens/home_screen.dart): `lib/features/home/presentation/screens/home_screen.dart`
- [Social network](https://github.com/dwikyrezza/kora/blob/main/lib/services/social_service.dart): `lib/services/social_service.dart`
- [Training schedule](https://github.com/dwikyrezza/kora/blob/main/lib/repositories/schedule_repository.dart): `lib/repositories/schedule_repository.dart`
- [Smart reminders](https://github.com/dwikyrezza/kora/blob/main/lib/services/notification_service.dart): `lib/services/notification_service.dart`

### Fitness tracking

- [Live running](https://github.com/dwikyrezza/kora/blob/main/lib/features/running/presentation/screens/running_screen.dart): `lib/features/running/presentation/screens/running_screen.dart`
- [GPS tracking](https://github.com/dwikyrezza/kora/blob/main/lib/services/location_service.dart): `lib/services/location_service.dart`
- [Workout logging](https://github.com/dwikyrezza/kora/blob/main/lib/features/workout/presentation/screens/workout_screen.dart): `lib/features/workout/presentation/screens/workout_screen.dart`
- [AI nutrition](https://github.com/dwikyrezza/kora/blob/main/lib/features/ainutrition/presentation/screens/ai_nutrition_screen.dart): `lib/features/ainutrition/presentation/screens/ai_nutrition_screen.dart`
- [Meal recommendations](https://github.com/dwikyrezza/kora/blob/main/lib/services/meal_recommender_service.dart): `lib/services/meal_recommender_service.dart`
- [Weekly reports](https://github.com/dwikyrezza/kora/blob/main/lib/features/analytics/presentation/screens/weekly_report_screen.dart): `lib/features/analytics/presentation/screens/weekly_report_screen.dart`
- [Activity insights](https://github.com/dwikyrezza/kora/blob/main/lib/features/activity_analytics/domain/rules/insight_generator.dart): `lib/features/activity_analytics/domain/rules/insight_generator.dart`

### Data and sync

- [Workout records](https://github.com/dwikyrezza/kora/blob/main/lib/repositories/workout_repository.dart): `lib/repositories/workout_repository.dart`
- [Local SQLite](https://github.com/dwikyrezza/kora/blob/main/lib/services/database_helper.dart): `lib/services/database_helper.dart`
- [Cloud sync](https://github.com/dwikyrezza/kora/blob/main/lib/services/cloud_sync_service.dart): `lib/services/cloud_sync_service.dart`

### External services

- **Firebase services**
- **Groq AI**
- **Vercel API**
- **Google Maps**
- **Firebase messaging**

### Other components

- **Athlete**

## Connections

- Athlete → Flutter app: uses (evidence: `README.md`)
- Flutter app → Account access: provides access (evidence: `README.md`)
- Flutter app → Home dashboard: presents features (evidence: `README.md`)
- Home dashboard → Live running: starts tracking (evidence: `README.md`)
- Live running → GPS tracking: tracks GPS (evidence: `README.md`)
- Live running → Google Maps: displays route (evidence: `README.md`)
- Home dashboard → Workout logging: opens logging (evidence: `README.md`)
- Workout logging → Workout records: records sessions (evidence: `README.md`)
- Workout records → Local SQLite: stores offline (evidence: `README.md`)
- Home dashboard → AI nutrition: opens tracking (evidence: `README.md`)
- AI nutrition → Meal recommendations: analyzes food (evidence: `README.md`)
- Meal recommendations → Vercel API: uses API (evidence: `README.md`)
- Vercel API → Groq AI: requests analysis (evidence: `README.md`)
- Home dashboard → Weekly reports: shows progress (evidence: `README.md`)
- Weekly reports → Activity insights: summarizes activity
- Home dashboard → Social network: offers social (evidence: `README.md`)
- Home dashboard → Training schedule: supports schedules (evidence: `README.md`)
- Workout records → Cloud sync: syncs data (evidence: `README.md`)
- Cloud sync → Firebase services: stores remotely (evidence: `README.md`)
- Training schedule → Smart reminders: supports reminders
- Smart reminders → Firebase messaging: sends notifications (evidence: `README.md`)
