# aman071106/dropout_society architecture

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

- Interactive diagram: https://gitdiagram.com/aman071106/dropout_society
- Repository: https://github.com/aman071106/dropout_society

## Overview

YogMaya combines a Flutter client with Python wellness APIs and a separate Node pose-correction service. The visible backend workflow accepts authenticated multimodal data, embeds and retrieves context, asks a generative model for guidance, and can generate an illustration; README also describes live pose correction and diet planning. Flutter application-domain source is absent from the supplied tree, so client workflows are represented only at the documented capability level. Pose-service and several integration links are not evidenced by excerpts, so they are omitted or marked unverified.

Main entry points: [`backend/app.py`](https://github.com/aman071106/dropout_society/blob/main/backend/app.py) (Medical assistant), [`yoga_app`](https://github.com/aman071106/dropout_society/tree/main/yoga_app) (Flutter app), [`yogaPoseBackend/server/server.js`](https://github.com/aman071106/dropout_society/blob/main/yogaPoseBackend/server/server.js) (Pose analysis service), [`backend/embeddings.py`](https://github.com/aman071106/dropout_society/blob/main/backend/embeddings.py) (Multimodal embeddings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Wellness Client"]
  node_flutter["Flutter app"]
  node_pose_ui["Live pose practice"]
end

subgraph group_wellness["Wellness API"]
  node_medical["Medical assistant<br/>[app.py]"]
  node_diet["Diet planner<br/>[app.py]"]
  node_auth["Account and auth<br/>[app.py]"]
  node_vector_api["Vector/session API<br/>[app.py]"]
  node_embedding["Multimodal embeddings<br/>[embeddings.py]"]
  node_vector_store[("Vector index<br/>[app.py]")]
  node_user_store[("User profiles<br/>[app.py]")]
  node_image_store[("Image metadata<br/>[app.py]")]
  node_image_gen["Image generation"]
end

subgraph group_pose["Pose Correction"]
  node_pose_service["Pose analysis service<br/>[server.js]"]
  node_pose_processing["Image processing<br/>[processImage.js]"]
end

node_user(("Wellness user"))
node_genai{{"Generative model"}}
node_pose_model{{"Vision AI"}}

node_user -.->|"uses"| node_flutter
node_flutter -.->|"submits health queries"| node_medical
node_flutter -.->|"requests meal plans"| node_diet
node_flutter -.->|"starts practice"| node_pose_ui
node_medical -->|"reads profile"| node_user_store
node_auth -->|"checks credentials"| node_user_store
node_medical -.->|"retrieves session context"| node_vector_api
node_vector_api -->|"creates vectors"| node_embedding
node_embedding -.->|"writes embeddings"| node_vector_store
node_vector_api -->|"queries index"| node_vector_store
node_vector_api -->|"stores image data"| node_image_store
node_medical -->|"generates guidance"| node_genai
node_medical -->|"requests illustration"| node_image_gen
node_image_gen -.->|"generates image"| node_genai
node_pose_ui -.->|"sends live pose"| node_pose_service
node_pose_service -.->|"processes image"| node_pose_processing
node_pose_service -.->|"requests pose analysis"| node_pose_model
node_pose_service -.->|"returns feedback"| node_pose_ui

click node_flutter "https://github.com/aman071106/dropout_society/tree/main/yoga_app"
click node_medical "https://github.com/aman071106/dropout_society/blob/main/backend/app.py"
click node_diet "https://github.com/aman071106/dropout_society/blob/main/backend/app.py"
click node_auth "https://github.com/aman071106/dropout_society/blob/main/backend/app.py"
click node_vector_api "https://github.com/aman071106/dropout_society/blob/main/backend/app.py"
click node_embedding "https://github.com/aman071106/dropout_society/blob/main/backend/embeddings.py"
click node_vector_store "https://github.com/aman071106/dropout_society/blob/main/backend/app.py"
click node_user_store "https://github.com/aman071106/dropout_society/blob/main/backend/app.py"
click node_image_store "https://github.com/aman071106/dropout_society/blob/main/backend/app.py"
click node_image_gen "https://github.com/aman071106/dropout_society/blob/main/backend/image_generation.py"
click node_pose_ui "https://github.com/aman071106/dropout_society/tree/main/yoga_app"
click node_pose_service "https://github.com/aman071106/dropout_society/blob/main/yogaPoseBackend/server/server.js"
click node_pose_processing "https://github.com/aman071106/dropout_society/blob/main/yogaPoseBackend/processImage.js"

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_flutter,node_pose_ui,node_user toneBlue
class node_medical,node_diet,node_auth,node_vector_api,node_embedding,node_vector_store,node_user_store,node_image_store,node_image_gen toneAmber
class node_pose_service,node_pose_processing toneMint
class node_genai,node_pose_model toneIndigo
```

## Components

### Wellness Client

- [Flutter app](https://github.com/aman071106/dropout_society/tree/main/yoga_app): `yoga_app`
- [Live pose practice](https://github.com/aman071106/dropout_society/tree/main/yoga_app): `yoga_app`

### Wellness API

- [Medical assistant](https://github.com/aman071106/dropout_society/blob/main/backend/app.py): `backend/app.py`
- [Diet planner](https://github.com/aman071106/dropout_society/blob/main/backend/app.py): `backend/app.py`
- [Account and auth](https://github.com/aman071106/dropout_society/blob/main/backend/app.py): `backend/app.py`
- [Vector/session API](https://github.com/aman071106/dropout_society/blob/main/backend/app.py): `backend/app.py`
- [Multimodal embeddings](https://github.com/aman071106/dropout_society/blob/main/backend/embeddings.py): `backend/embeddings.py`
- [Vector index](https://github.com/aman071106/dropout_society/blob/main/backend/app.py): `backend/app.py`
- [User profiles](https://github.com/aman071106/dropout_society/blob/main/backend/app.py): `backend/app.py`
- [Image metadata](https://github.com/aman071106/dropout_society/blob/main/backend/app.py): `backend/app.py`
- [Image generation](https://github.com/aman071106/dropout_society/blob/main/backend/image_generation.py): `backend/image_generation.py`

### Pose Correction

- [Pose analysis service](https://github.com/aman071106/dropout_society/blob/main/yogaPoseBackend/server/server.js): `yogaPoseBackend/server/server.js`
- [Image processing](https://github.com/aman071106/dropout_society/blob/main/yogaPoseBackend/processImage.js): `yogaPoseBackend/processImage.js`

### Other components

- **Wellness user**
- **Generative model**
- **Vision AI**

## Connections

- Wellness user → Flutter app: uses
- Flutter app → Medical assistant: submits health queries
- Flutter app → Diet planner: requests meal plans
- Flutter app → Live pose practice: starts practice
- Medical assistant → User profiles: reads profile (evidence: `backend/app.py`)
- Account and auth → User profiles: checks credentials (evidence: `backend/app.py`)
- Medical assistant → Vector/session API: retrieves session context (evidence: `backend/app.py`)
- Vector/session API → Multimodal embeddings: creates vectors (evidence: `backend/app.py`)
- Multimodal embeddings → Vector index: writes embeddings (evidence: `backend/app.py`)
- Vector/session API → Vector index: queries index (evidence: `backend/app.py`)
- Vector/session API → Image metadata: stores image data (evidence: `backend/app.py`)
- Medical assistant → Generative model: generates guidance (evidence: `backend/app.py`)
- Medical assistant → Image generation: requests illustration (evidence: `backend/app.py`)
- Image generation → Generative model: generates image
- Live pose practice → Pose analysis service: sends live pose
- Pose analysis service → Image processing: processes image
- Pose analysis service → Vision AI: requests pose analysis
- Pose analysis service → Live pose practice: returns feedback
