# shaxnozaislomova3105-ai/academy-mobile architecture

> Architecture diagram of the GitHub repository shaxnozaislomova3105-ai/academy-mobile, 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/shaxnozaislomova3105-ai/academy-mobile
- Repository: https://github.com/shaxnozaislomova3105-ai/academy-mobile

## Overview

This workspace contains several distinct runtime products rather than one end-to-end application: a course-learning app, a component-preview sandbox, an API server, and shared API/database packages. The tree and sampled sources support their internal entry points and selected calls, but do not establish that the products are wired to one another. The README is empty; unsampled academy features are represented by their source paths without inferred call flows.

Main entry points: [`artifacts/web-academy/app/lesson/[id].tsx`](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/lesson/%5Bid%5D.tsx) (Lesson Player), [`artifacts/api-server/src/app.ts`](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/app.ts) (HTTP Application), [`artifacts/api-server/src/index.ts`](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/index.ts) (Server Entrypoint), [`artifacts/web-academy/app/course/[id].tsx`](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/course/%5Bid%5D.tsx) (Course Detail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_academy["Web Academy"]
  node_academy_app["Academy Routes<br/>[index.tsx]"]
  node_course_browse["Course Catalog<br/>[courses.tsx]"]
  node_course_detail["Course Detail<br/>[&#91;id&#93;.tsx]"]
  node_lesson["Lesson Player<br/>[&#91;id&#93;.tsx]"]
  node_learning_progress["My Learning<br/>[my-learning.tsx]"]
  node_academy_context["Academy State<br/>[AcademyContext.tsx]"]
  node_course_data["Course Content<br/>[courses.ts]"]
  node_quiz["Lesson Quizzes<br/>[QuizSection.tsx]"]
  node_notes["Lesson Notes<br/>[NotesSection.tsx]"]
  node_playground["Code Playground"]
end

subgraph group_preview["Mockup Preview"]
  node_preview_plugin["Discovery Plugin"]
  node_preview_app["Preview Renderer<br/>[App.tsx]"]
  node_preview_entry["Browser Entry<br/>[main.tsx]"]
  node_ui_components["UI Components"]
end

subgraph group_server["API Server"]
  node_api_process["Server Entrypoint<br/>[index.ts]"]
  node_api_app["HTTP Application<br/>[app.ts]"]
  node_api_routes["API Router<br/>[index.ts]"]
  node_health_route["Health Route<br/>[health.ts]"]
  node_logger["Request Logger<br/>[logger.ts]"]
end

subgraph group_client["API Libraries"]
  node_fetch_client["Fetch Client<br/>[custom-fetch.ts]"]
  node_client_exports["React API Exports<br/>[index.ts]"]
  node_zod_exports["Zod API Exports<br/>[index.ts]"]
end

subgraph group_data["Database"]
  node_db_connection[("Postgres Connection<br/>[index.ts]")]
  node_db_schema["Schema Exports<br/>[index.ts]"]
end

node_learner(("Learner"))

node_api_process -->|"starts"| node_api_app
node_api_process -->|"logs startup"| node_logger
node_api_app -->|"mounts at /api"| node_api_routes
node_api_app -->|"configures logging"| node_logger
node_api_routes -->|"registers route"| node_health_route
node_preview_entry -->|"renders"| node_preview_app
node_preview_app -.->|"uses discovered previews"| node_preview_plugin
node_learner -.->|"opens app"| node_academy_app
node_course_browse -.->|"opens course"| node_course_detail
node_course_detail -.->|"opens lesson"| node_lesson
node_lesson -.->|"presents quiz"| node_quiz
node_lesson -.->|"presents notes"| node_notes
node_lesson -.->|"offers coding"| node_playground
node_client_exports -->|"exports helpers"| node_fetch_client
node_db_connection -->|"configures Drizzle"| node_db_schema

click node_academy_app "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/(tabs)/index.tsx"
click node_course_browse "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/(tabs)/courses.tsx"
click node_course_detail "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/course/%5Bid%5D.tsx"
click node_lesson "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/lesson/%5Bid%5D.tsx"
click node_learning_progress "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/(tabs)/my-learning.tsx"
click node_academy_context "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/context/AcademyContext.tsx"
click node_course_data "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/data/courses.ts"
click node_quiz "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/components/QuizSection.tsx"
click node_notes "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/components/NotesSection.tsx"
click node_playground "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/components/CodePlayground.web.tsx"
click node_preview_plugin "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/mockup-sandbox/mockupPreviewPlugin.ts"
click node_preview_app "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/mockup-sandbox/src/App.tsx"
click node_preview_entry "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/mockup-sandbox/src/main.tsx"
click node_ui_components "https://github.com/shaxnozaislomova3105-ai/academy-mobile/tree/main/artifacts/mockup-sandbox/src/components/ui"
click node_api_process "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/index.ts"
click node_api_app "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/app.ts"
click node_api_routes "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/routes/index.ts"
click node_health_route "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/routes/health.ts"
click node_logger "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/lib/logger.ts"
click node_fetch_client "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/lib/api-client-react/src/custom-fetch.ts"
click node_client_exports "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/lib/api-client-react/src/index.ts"
click node_zod_exports "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/lib/api-zod/src/index.ts"
click node_db_connection "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/lib/db/src/index.ts"
click node_db_schema "https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/lib/db/src/schema/index.ts"

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_academy_app,node_course_browse,node_course_detail,node_lesson,node_learning_progress,node_academy_context,node_course_data,node_quiz,node_notes,node_playground toneBlue
class node_preview_plugin,node_preview_app,node_preview_entry,node_ui_components toneAmber
class node_api_process,node_api_app,node_api_routes,node_health_route,node_logger toneMint
class node_fetch_client,node_client_exports,node_zod_exports toneRose
class node_db_connection,node_db_schema,node_learner toneIndigo
```

## Components

### Web Academy

- [Academy Routes](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/(tabs)/index.tsx): `artifacts/web-academy/app/(tabs)/index.tsx`
- [Course Catalog](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/(tabs)/courses.tsx): `artifacts/web-academy/app/(tabs)/courses.tsx`
- [Course Detail](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/course/%5Bid%5D.tsx): `artifacts/web-academy/app/course/[id].tsx`
- [Lesson Player](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/lesson/%5Bid%5D.tsx): `artifacts/web-academy/app/lesson/[id].tsx`
- [My Learning](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/app/(tabs)/my-learning.tsx): `artifacts/web-academy/app/(tabs)/my-learning.tsx`
- [Academy State](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/context/AcademyContext.tsx): `artifacts/web-academy/context/AcademyContext.tsx`
- [Course Content](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/data/courses.ts): `artifacts/web-academy/data/courses.ts`
- [Lesson Quizzes](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/components/QuizSection.tsx): `artifacts/web-academy/components/QuizSection.tsx`
- [Lesson Notes](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/components/NotesSection.tsx): `artifacts/web-academy/components/NotesSection.tsx`
- [Code Playground](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/web-academy/components/CodePlayground.web.tsx): `artifacts/web-academy/components/CodePlayground.web.tsx`

### Mockup Preview

- [Discovery Plugin](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/mockup-sandbox/mockupPreviewPlugin.ts): `artifacts/mockup-sandbox/mockupPreviewPlugin.ts`
- [Preview Renderer](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/mockup-sandbox/src/App.tsx): `artifacts/mockup-sandbox/src/App.tsx`
- [Browser Entry](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/mockup-sandbox/src/main.tsx): `artifacts/mockup-sandbox/src/main.tsx`
- [UI Components](https://github.com/shaxnozaislomova3105-ai/academy-mobile/tree/main/artifacts/mockup-sandbox/src/components/ui): `artifacts/mockup-sandbox/src/components/ui`

### API Server

- [Server Entrypoint](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/index.ts): `artifacts/api-server/src/index.ts`
- [HTTP Application](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/app.ts): `artifacts/api-server/src/app.ts`
- [API Router](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/routes/index.ts): `artifacts/api-server/src/routes/index.ts`
- [Health Route](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/routes/health.ts): `artifacts/api-server/src/routes/health.ts`
- [Request Logger](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/artifacts/api-server/src/lib/logger.ts): `artifacts/api-server/src/lib/logger.ts`

### API Libraries

- [Fetch Client](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/lib/api-client-react/src/custom-fetch.ts): `lib/api-client-react/src/custom-fetch.ts`
- [React API Exports](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/lib/api-client-react/src/index.ts): `lib/api-client-react/src/index.ts`
- [Zod API Exports](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/lib/api-zod/src/index.ts): `lib/api-zod/src/index.ts`

### Database

- [Postgres Connection](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/lib/db/src/index.ts): `lib/db/src/index.ts`
- [Schema Exports](https://github.com/shaxnozaislomova3105-ai/academy-mobile/blob/main/lib/db/src/schema/index.ts): `lib/db/src/schema/index.ts`

### Other components

- **Learner**

## Connections

- Server Entrypoint → HTTP Application: starts (evidence: `artifacts/api-server/src/index.ts`)
- Server Entrypoint → Request Logger: logs startup (evidence: `artifacts/api-server/src/index.ts`)
- HTTP Application → API Router: mounts at /api (evidence: `artifacts/api-server/src/app.ts`)
- HTTP Application → Request Logger: configures logging (evidence: `artifacts/api-server/src/app.ts`)
- API Router → Health Route: registers route (evidence: `artifacts/api-server/src/routes/index.ts`)
- Browser Entry → Preview Renderer: renders (evidence: `artifacts/mockup-sandbox/src/main.tsx`)
- Preview Renderer → Discovery Plugin: uses discovered previews
- Learner → Academy Routes: opens app
- Course Catalog → Course Detail: opens course
- Course Detail → Lesson Player: opens lesson
- Lesson Player → Lesson Quizzes: presents quiz
- Lesson Player → Lesson Notes: presents notes
- Lesson Player → Code Playground: offers coding
- React API Exports → Fetch Client: exports helpers (evidence: `lib/api-client-react/src/index.ts`)
- Postgres Connection → Schema Exports: configures Drizzle (evidence: `lib/db/src/index.ts`)
