# silenceisprogrammer/fitfolks-in-expo architecture

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

- Interactive diagram: https://gitdiagram.com/silenceisprogrammer/fitfolks-in-expo
- Repository: https://github.com/silenceisprogrammer/fitfolks-in-expo

## Overview

FitFolks is a fitness app for students and users in semi-urban and rural India. Its principal workflow runs from the home dashboard into a workout, through local pose/form tracking, and to workout completion and XP progress. The README also documents nutrition, social challenges, nearby places, and account features. The supplied file tree contains no application source directories, so those components and relationships are represented only where the README explicitly describes them; their source paths are unavailable here.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fitness["Fitness journey"]
  node_home["Home dashboard"]
  node_library["Workout library"]
  node_camera["Camera workout"]
  node_pose["Pose and form analysis"]
  node_completion["Workout completion"]
  node_progress["Profile and progress"]
end

subgraph group_nutrition["Nutrition"]
  node_nutrition["Nutrition and meal tracking"]
  node_meal_recognition["Meal photo recognition"]
end

subgraph group_community["Community"]
  node_challenges["Challenges and marathons"]
  node_leaderboards["Leaderboards"]
  node_accountability["Accountability partners"]
end

subgraph group_platform["App platform"]
  node_nearby["Nearby places and routes"]
  node_authentication["Authentication"]
  node_local_state[("Local-first app data")]
  node_cloud_sync[("Optional Supabase sync")]
end

node_user(("Fitness user"))
node_gemini["Google Gemini"]
node_osm["OpenStreetMap services"]

node_user -->|"opens"| node_home
node_home -->|"selects workout"| node_library
node_library -->|"starts tracking"| node_camera
node_camera -->|"tracks locally"| node_pose
node_camera -->|"finishes workout"| node_completion
node_completion -->|"awards XP"| node_progress
node_home -->|"shows progress"| node_progress
node_user -->|"logs meals"| node_nutrition
node_nutrition -->|"requests recognition"| node_meal_recognition
node_meal_recognition -.->|"recognizes photos"| node_gemini
node_user -->|"joins events"| node_challenges
node_user -->|"views rankings"| node_leaderboards
node_user -->|"invites partners"| node_accountability
node_user -->|"finds places"| node_nearby
node_nearby -.->|"queries places"| node_osm
node_user -->|"signs in"| node_authentication
node_home -->|"uses local data"| node_local_state
node_progress -.->|"syncs gamification"| node_cloud_sync

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_home,node_library,node_camera,node_pose,node_completion,node_progress,node_user toneBlue
class node_nutrition,node_meal_recognition toneAmber
class node_challenges,node_leaderboards,node_accountability toneMint
class node_nearby,node_authentication,node_local_state,node_cloud_sync toneRose
class node_gemini,node_osm toneIndigo
```

## Components

### Fitness journey

- **Home dashboard**
- **Workout library**
- **Camera workout**
- **Pose and form analysis**
- **Workout completion**
- **Profile and progress**

### Nutrition

- **Nutrition and meal tracking**
- **Meal photo recognition**

### Community

- **Challenges and marathons**
- **Leaderboards**
- **Accountability partners**

### App platform

- **Nearby places and routes**
- **Authentication**
- **Local-first app data**
- **Optional Supabase sync**

### Other components

- **Fitness user**
- **Google Gemini**
- **OpenStreetMap services**

## Connections

- Fitness user → Home dashboard: opens (evidence: `README.md`)
- Home dashboard → Workout library: selects workout (evidence: `README.md`)
- Workout library → Camera workout: starts tracking (evidence: `README.md`)
- Camera workout → Pose and form analysis: tracks locally (evidence: `README.md`)
- Camera workout → Workout completion: finishes workout (evidence: `README.md`)
- Workout completion → Profile and progress: awards XP (evidence: `README.md`)
- Home dashboard → Profile and progress: shows progress (evidence: `README.md`)
- Fitness user → Nutrition and meal tracking: logs meals (evidence: `README.md`)
- Nutrition and meal tracking → Meal photo recognition: requests recognition (evidence: `README.md`)
- Meal photo recognition → Google Gemini: recognizes photos (evidence: `README.md`)
- Fitness user → Challenges and marathons: joins events (evidence: `README.md`)
- Fitness user → Leaderboards: views rankings (evidence: `README.md`)
- Fitness user → Accountability partners: invites partners (evidence: `README.md`)
- Fitness user → Nearby places and routes: finds places (evidence: `README.md`)
- Nearby places and routes → OpenStreetMap services: queries places (evidence: `README.md`)
- Fitness user → Authentication: signs in (evidence: `README.md`)
- Home dashboard → Local-first app data: uses local data (evidence: `README.md`)
- Profile and progress → Optional Supabase sync: syncs gamification (evidence: `README.md`)
