# agus1906/ia-lectura architecture

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

- Interactive diagram: https://gitdiagram.com/agus1906/ia-lectura
- Repository: https://github.com/agus1906/ia-lectura

## Overview

Fluaidez is a Spanish-language reading-practice frontend for managing students, generating a story for a selected student, recording its reading, and viewing reading reports. The user enters through the routed React app; the reading flow loads students, requests a story, then offers audio recording and submission. Student management and reports are separate workflows. The API module implements delayed, in-memory mock data rather than a demonstrated remote backend. Relationships below follow the shown imports, calls, and routes; unsampled implementation details are not inferred.

Main entry points: [`src/pages/Alumnos.tsx`](https://github.com/agus1906/ia-lectura/blob/main/src/pages/Alumnos.tsx) (Student page), [`src/App.tsx`](https://github.com/agus1906/ia-lectura/blob/main/src/App.tsx) (App router), [`src/pages/Home.tsx`](https://github.com/agus1906/ia-lectura/blob/main/src/pages/Home.tsx) (Home dashboard), [`src/pages/Reportes.tsx`](https://github.com/agus1906/ia-lectura/blob/main/src/pages/Reportes.tsx) (Reports page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application navigation"]
  node_runtime["React entry<br/>[main.tsx]"]
  node_app["App router<br/>[App.tsx]"]
  node_home["Home dashboard<br/>[Home.tsx]"]
  node_api["Mock data service<br/>[api.ts]"]
end

subgraph group_students["Student management"]
  node_alumnos["Student page<br/>[Alumnos.tsx]"]
  node_alumno_form["Student form<br/>[AlumnoForm.tsx]"]
  node_alumno_list["Student list<br/>[AlumnoList.tsx]"]
end

subgraph group_reading["Reading practice"]
  node_lectura["Reading page<br/>[Lectura.tsx]"]
  node_cuento["Story generator"]
  node_grabador["Audio recorder<br/>[GrabadorAudio.tsx]"]
end

subgraph group_reports["Reading reports"]
  node_reportes["Reports page<br/>[Reportes.tsx]"]
  node_reportes_list["Reports table<br/>[ReportesList.tsx]"]
end

node_user(("User"))
node_microphone(("Device microphone"))

node_user -->|"opens app"| node_runtime
node_runtime -->|"renders"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_alumnos
node_app -->|"routes to"| node_lectura
node_app -->|"routes to"| node_reportes
node_home -->|"links to"| node_alumnos
node_home -->|"links to"| node_lectura
node_home -->|"links to"| node_reportes
node_alumnos -->|"renders"| node_alumno_form
node_alumnos -->|"renders"| node_alumno_list
node_alumnos -->|"loads and updates"| node_api
node_alumnos -->|"handles save"| node_alumno_form
node_alumnos -->|"handles actions"| node_alumno_list
node_lectura -->|"renders"| node_cuento
node_cuento -->|"loads students, generates story"| node_api
node_cuento -->|"renders with story"| node_grabador
node_grabador -->|"captures audio"| node_microphone
node_grabador -->|"submits recording"| node_api
node_reportes -->|"loads reports"| node_api
node_reportes -->|"renders"| node_reportes_list

click node_runtime "https://github.com/agus1906/ia-lectura/blob/main/src/main.tsx"
click node_app "https://github.com/agus1906/ia-lectura/blob/main/src/App.tsx"
click node_home "https://github.com/agus1906/ia-lectura/blob/main/src/pages/Home.tsx"
click node_alumnos "https://github.com/agus1906/ia-lectura/blob/main/src/pages/Alumnos.tsx"
click node_alumno_form "https://github.com/agus1906/ia-lectura/blob/main/src/components/AlumnoForm.tsx"
click node_alumno_list "https://github.com/agus1906/ia-lectura/blob/main/src/components/AlumnoList.tsx"
click node_lectura "https://github.com/agus1906/ia-lectura/blob/main/src/pages/Lectura.tsx"
click node_cuento "https://github.com/agus1906/ia-lectura/blob/main/src/components/CuentoGenerador.tsx"
click node_grabador "https://github.com/agus1906/ia-lectura/blob/main/src/components/GrabadorAudio.tsx"
click node_reportes "https://github.com/agus1906/ia-lectura/blob/main/src/pages/Reportes.tsx"
click node_reportes_list "https://github.com/agus1906/ia-lectura/blob/main/src/components/ReportesList.tsx"
click node_api "https://github.com/agus1906/ia-lectura/blob/main/src/services/api.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_runtime,node_app,node_home,node_api,node_user toneBlue
class node_alumnos,node_alumno_form,node_alumno_list toneAmber
class node_lectura,node_cuento,node_grabador toneMint
class node_reportes,node_reportes_list toneRose
class node_microphone toneIndigo
```

## Components

### Application navigation

- [React entry](https://github.com/agus1906/ia-lectura/blob/main/src/main.tsx): `src/main.tsx`
- [App router](https://github.com/agus1906/ia-lectura/blob/main/src/App.tsx): `src/App.tsx`
- [Home dashboard](https://github.com/agus1906/ia-lectura/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Mock data service](https://github.com/agus1906/ia-lectura/blob/main/src/services/api.ts): `src/services/api.ts`

### Student management

- [Student page](https://github.com/agus1906/ia-lectura/blob/main/src/pages/Alumnos.tsx): `src/pages/Alumnos.tsx`
- [Student form](https://github.com/agus1906/ia-lectura/blob/main/src/components/AlumnoForm.tsx): `src/components/AlumnoForm.tsx`
- [Student list](https://github.com/agus1906/ia-lectura/blob/main/src/components/AlumnoList.tsx): `src/components/AlumnoList.tsx`

### Reading practice

- [Reading page](https://github.com/agus1906/ia-lectura/blob/main/src/pages/Lectura.tsx): `src/pages/Lectura.tsx`
- [Story generator](https://github.com/agus1906/ia-lectura/blob/main/src/components/CuentoGenerador.tsx): `src/components/CuentoGenerador.tsx`
- [Audio recorder](https://github.com/agus1906/ia-lectura/blob/main/src/components/GrabadorAudio.tsx): `src/components/GrabadorAudio.tsx`

### Reading reports

- [Reports page](https://github.com/agus1906/ia-lectura/blob/main/src/pages/Reportes.tsx): `src/pages/Reportes.tsx`
- [Reports table](https://github.com/agus1906/ia-lectura/blob/main/src/components/ReportesList.tsx): `src/components/ReportesList.tsx`

### Other components

- **User**
- **Device microphone**

## Connections

- User → React entry: opens app (evidence: `src/main.tsx`)
- React entry → App router: renders (evidence: `src/main.tsx`)
- App router → Home dashboard: routes to (evidence: `src/App.tsx`)
- App router → Student page: routes to (evidence: `src/App.tsx`)
- App router → Reading page: routes to (evidence: `src/App.tsx`)
- App router → Reports page: routes to (evidence: `src/App.tsx`)
- Home dashboard → Student page: links to (evidence: `src/pages/Home.tsx`)
- Home dashboard → Reading page: links to (evidence: `src/pages/Home.tsx`)
- Home dashboard → Reports page: links to (evidence: `src/pages/Home.tsx`)
- Student page → Student form: renders (evidence: `src/pages/Alumnos.tsx`)
- Student page → Student list: renders (evidence: `src/pages/Alumnos.tsx`)
- Student page → Mock data service: loads and updates (evidence: `src/pages/Alumnos.tsx`)
- Student page → Student form: handles save (evidence: `src/pages/Alumnos.tsx`)
- Student page → Student list: handles actions (evidence: `src/pages/Alumnos.tsx`)
- Reading page → Story generator: renders (evidence: `src/pages/Lectura.tsx`)
- Story generator → Mock data service: loads students, generates story (evidence: `src/components/CuentoGenerador.tsx`)
- Story generator → Audio recorder: renders with story (evidence: `src/components/CuentoGenerador.tsx`)
- Audio recorder → Device microphone: captures audio (evidence: `src/components/GrabadorAudio.tsx`)
- Audio recorder → Mock data service: submits recording (evidence: `src/components/GrabadorAudio.tsx`)
- Reports page → Mock data service: loads reports (evidence: `src/pages/Reportes.tsx`)
- Reports page → Reports table: renders (evidence: `src/pages/Reportes.tsx`)
