# matteobaisini/rimani_al_passo_con_le_lezioni architecture

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

- Interactive diagram: https://gitdiagram.com/matteobaisini/rimani_al_passo_con_le_lezioni
- Repository: https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni

## Overview

Recupero Lezioni is a personal web app for tracking missed university lessons and organizing catch-up study. The main workflow is to organize lessons by subject and week, estimate recovery time, track progress, and plan study sessions. README documents local fallback and JSON backup alongside optional Supabase sync across devices, plus Google Calendar or .ics planning. The app logic is concentrated in index.html; its source was not provided, so edges reflect README statements rather than inspected calls.

Main entry points: [`index.html`](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html) (Lesson list), [`supabase_setup.sql`](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/supabase_setup.sql) (Supabase sync), [`config.js`](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/config.js) (Supabase configuration), [`manifest.json`](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/manifest.json) (PWA install metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_study["Study workflow"]
  node_lesson_list["Lesson list<br/>[index.html]"]
  node_time_estimator["Recovery estimator<br/>[index.html]"]
  node_progress["Progress and notes<br/>[index.html]"]
end

subgraph group_planning["Planning"]
  node_session_planner["Session planner<br/>[index.html]"]
  node_calendar["Google Calendar"]
  node_ics[".ics file"]
end

subgraph group_sync["Storage and sync"]
  node_local_data[("Local data and backup<br/>[index.html]")]
  node_sync_ui["Sync controls<br/>[index.html]"]
  node_supabase[("Supabase sync<br/>[supabase_setup.sql]")]
end

subgraph group_app["App setup"]
  node_supabase_config["Supabase configuration<br/>[config.js]"]
  node_pwa["PWA install metadata<br/>[manifest.json]"]
end

node_student(("Student"))

node_student -->|"organizes lessons"| node_lesson_list
node_lesson_list -->|"estimates time"| node_time_estimator
node_student -->|"tracks progress"| node_progress
node_student -->|"plans sessions"| node_session_planner
node_session_planner -.->|"plans on"| node_calendar
node_session_planner -.->|"exports"| node_ics
node_lesson_list -.->|"uses local fallback"| node_local_data
node_progress -.->|"uses local fallback"| node_local_data
node_student -->|"configures sync"| node_sync_ui
node_sync_ui -.->|"reads settings"| node_supabase_config
node_sync_ui -.->|"syncs data"| node_supabase
node_student -.->|"backs up JSON"| node_local_data
node_student -.->|"installs app"| node_pwa

click node_lesson_list "https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html"
click node_time_estimator "https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html"
click node_progress "https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html"
click node_session_planner "https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html"
click node_local_data "https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html"
click node_sync_ui "https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html"
click node_supabase_config "https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/config.js"
click node_supabase "https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/supabase_setup.sql"
click node_pwa "https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/manifest.json"

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_lesson_list,node_time_estimator,node_progress toneBlue
class node_session_planner,node_calendar,node_ics toneAmber
class node_local_data,node_sync_ui,node_supabase toneMint
class node_supabase_config,node_pwa toneRose
class node_student toneIndigo
```

## Components

### Study workflow

- [Lesson list](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html): `index.html`
- [Recovery estimator](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html): `index.html`
- [Progress and notes](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html): `index.html`

### Planning

- [Session planner](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html): `index.html`
- **Google Calendar**
- **.ics file**

### Storage and sync

- [Local data and backup](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html): `index.html`
- [Sync controls](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/index.html): `index.html`
- [Supabase sync](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/supabase_setup.sql): `supabase_setup.sql`

### App setup

- [Supabase configuration](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/config.js): `config.js`
- [PWA install metadata](https://github.com/matteobaisini/rimani_al_passo_con_le_lezioni/blob/main/manifest.json): `manifest.json`

### Other components

- **Student**

## Connections

- Student → Lesson list: organizes lessons (evidence: `README.md`)
- Lesson list → Recovery estimator: estimates time (evidence: `README.md`)
- Student → Progress and notes: tracks progress (evidence: `README.md`)
- Student → Session planner: plans sessions (evidence: `README.md`)
- Session planner → Google Calendar: plans on (evidence: `README.md`)
- Session planner → .ics file: exports (evidence: `README.md`)
- Lesson list → Local data and backup: uses local fallback (evidence: `README.md`)
- Progress and notes → Local data and backup: uses local fallback (evidence: `README.md`)
- Student → Sync controls: configures sync (evidence: `README.md`)
- Sync controls → Supabase configuration: reads settings (evidence: `README.md`)
- Sync controls → Supabase sync: syncs data (evidence: `README.md`)
- Student → Local data and backup: backs up JSON (evidence: `README.md`)
- Student → PWA install metadata: installs app (evidence: `README.md`)
