# rishabh-1617/calisfy-ai architecture

> Architecture diagram of the GitHub repository rishabh-1617/calisfy-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rishabh-1617/calisfy-ai
- Repository: https://github.com/rishabh-1617/calisfy-ai

## Overview

Calisfy AI is a calisthenics training and progress-tracking platform. Its documented frontend workflow centers on a single Next.js application that presents training features; the sampled component shows exercise-library, skill-progression, workout-session, and analytics interfaces, while the source index confirms it imports exercise, skill, and plan data. The FastAPI backend is a separate service: the README documents a health endpoint but says the frontend is not currently connected to a hosted API. The main UI is a large monolithic component, so its feature nodes share that implementation path. Unsampled backend behavior is not inferred.

Main entry points: [`frontend/src/components/CalisfyApp.jsx`](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/components/CalisfyApp.jsx) (Training app), [`frontend/src/app/page.tsx`](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/app/page.tsx) (Home route), [`frontend/src/data/exercises.json`](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/data/exercises.json) (Exercise data), [`frontend/src/data/skills.json`](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/data/skills.json) (Skill data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Training experience"]
  node_home["Home route<br/>[page.tsx]"]
  node_app["Training app<br/>[CalisfyApp.jsx]"]
  node_library["Exercise library<br/>[CalisfyApp.jsx]"]
  node_skills["Skill progression<br/>[CalisfyApp.jsx]"]
  node_workouts["Workout sessions<br/>[CalisfyApp.jsx]"]
  node_analytics["Progress analytics<br/>[CalisfyApp.jsx]"]
end

subgraph group_content["Training content"]
  node_exercise_data["Exercise data<br/>[exercises.json]"]
  node_skill_data["Skill data<br/>[skills.json]"]
  node_plan_data["Plan data<br/>[plans.json]"]
end

subgraph group_backend["Separate backend"]
  node_api["Health API<br/>[main.py]"]
  node_models["Domain models<br/>[models.py]"]
end

node_trainee(("Trainee"))

node_trainee -->|"opens"| node_home
node_home -->|"renders"| node_app
node_app -->|"imports"| node_exercise_data
node_app -->|"imports"| node_skill_data
node_app -->|"imports"| node_plan_data
node_app -->|"presents"| node_library
node_app -->|"presents"| node_skills
node_app -->|"presents"| node_workouts
node_app -->|"presents"| node_analytics

click node_home "https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/app/page.tsx"
click node_app "https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/components/CalisfyApp.jsx"
click node_library "https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/components/CalisfyApp.jsx"
click node_skills "https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/components/CalisfyApp.jsx"
click node_workouts "https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/components/CalisfyApp.jsx"
click node_analytics "https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/components/CalisfyApp.jsx"
click node_exercise_data "https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/data/exercises.json"
click node_skill_data "https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/data/skills.json"
click node_plan_data "https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/data/plans.json"
click node_api "https://github.com/rishabh-1617/calisfy-ai/blob/main/backend/app/main.py"
click node_models "https://github.com/rishabh-1617/calisfy-ai/blob/main/backend/app/models.py"

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_app,node_library,node_skills,node_workouts,node_analytics toneBlue
class node_exercise_data,node_skill_data,node_plan_data toneAmber
class node_api,node_models toneMint
class node_trainee toneIndigo
```

## Components

### Training experience

- [Home route](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/app/page.tsx): `frontend/src/app/page.tsx`
- [Training app](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/components/CalisfyApp.jsx): `frontend/src/components/CalisfyApp.jsx`
- [Exercise library](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/components/CalisfyApp.jsx): `frontend/src/components/CalisfyApp.jsx`
- [Skill progression](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/components/CalisfyApp.jsx): `frontend/src/components/CalisfyApp.jsx`
- [Workout sessions](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/components/CalisfyApp.jsx): `frontend/src/components/CalisfyApp.jsx`
- [Progress analytics](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/components/CalisfyApp.jsx): `frontend/src/components/CalisfyApp.jsx`

### Training content

- [Exercise data](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/data/exercises.json): `frontend/src/data/exercises.json`
- [Skill data](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/data/skills.json): `frontend/src/data/skills.json`
- [Plan data](https://github.com/rishabh-1617/calisfy-ai/blob/main/frontend/src/data/plans.json): `frontend/src/data/plans.json`

### Separate backend

- [Health API](https://github.com/rishabh-1617/calisfy-ai/blob/main/backend/app/main.py): `backend/app/main.py`
- [Domain models](https://github.com/rishabh-1617/calisfy-ai/blob/main/backend/app/models.py): `backend/app/models.py`

### Other components

- **Trainee**

## Connections

- Trainee → Home route: opens (evidence: `frontend/src/app/page.tsx`)
- Home route → Training app: renders (evidence: `frontend/src/app/page.tsx`)
- Training app → Exercise data: imports (evidence: `frontend/src/components/CalisfyApp.jsx`)
- Training app → Skill data: imports (evidence: `frontend/src/components/CalisfyApp.jsx`)
- Training app → Plan data: imports (evidence: `frontend/src/components/CalisfyApp.jsx`)
- Training app → Exercise library: presents (evidence: `frontend/src/components/CalisfyApp.jsx`)
- Training app → Skill progression: presents (evidence: `frontend/src/components/CalisfyApp.jsx`)
- Training app → Workout sessions: presents (evidence: `frontend/src/components/CalisfyApp.jsx`)
- Training app → Progress analytics: presents (evidence: `frontend/src/components/CalisfyApp.jsx`)
