# pssrohithkumar576-droid/student-study-planner-multiuser architecture

> Architecture diagram of the GitHub repository pssrohithkumar576-droid/student-study-planner-multiuser, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pssrohithkumar576-droid/student-study-planner-multiuser
- Repository: https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser

## Overview

This is a Streamlit study-planning app: a student signs in or registers, then manages a private task list, tracks completion, searches and filters tasks, and exports task data. The main runtime is concentrated in app.py, so its UI, authentication, task operations, and reporting are separate responsibilities within that file rather than separate packages. Supabase provides authentication and PostgreSQL storage; the README documents the schema’s user-scoped RLS policies. Source excerpts show key app interactions, but not every handler or the SQL contents themselves.

Main entry points: [`app.py`](https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py) (Planner interface), [`supabase_schema.sql`](https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/supabase_schema.sql) (Tasks schema and RLS)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Streamlit app"]
  node_runtime["App entry and routing<br/>[app.py]"]
  node_configuration["Client configuration<br/>[app.py]"]
  node_auth_ui["Sign-in and registration<br/>[app.py]"]
  node_account_state["Session account state<br/>[app.py]"]
  node_planner_ui["Planner interface<br/>[app.py]"]
  node_task_operations["Task operations<br/>[app.py]"]
  node_task_insights["Progress and filters<br/>[app.py]"]
  node_task_export["CSV and JSON export<br/>[app.py]"]
end

subgraph group_supabase["Supabase services"]
  node_auth_service["Supabase Auth"]
end

subgraph group_data["Task data"]
  node_postgres[("PostgreSQL tasks")]
  node_task_schema["Tasks schema and RLS"]
end

node_student(("Student"))

node_student -->|"uses"| node_runtime
node_runtime -->|"loads client"| node_configuration
node_runtime -->|"routes unauthenticated"| node_auth_ui
node_runtime -->|"routes signed-in"| node_planner_ui
node_auth_ui -->|"authenticates"| node_auth_service
node_auth_ui -->|"stores user"| node_account_state
node_planner_ui -->|"uses user ID"| node_account_state
node_planner_ui -->|"manages tasks"| node_task_operations
node_task_operations -->|"reads and writes"| node_postgres
node_planner_ui -->|"shows progress"| node_task_insights
node_planner_ui -->|"exports tasks"| node_task_export
node_task_schema -->|"defines table"| node_postgres
node_task_schema -->|"restricts rows"| node_postgres

click node_runtime "https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py"
click node_configuration "https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py"
click node_auth_ui "https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py"
click node_account_state "https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py"
click node_planner_ui "https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py"
click node_task_operations "https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py"
click node_task_insights "https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py"
click node_task_export "https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py"
click node_task_schema "https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/supabase_schema.sql"

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_configuration,node_auth_ui,node_account_state,node_planner_ui,node_task_operations,node_task_insights,node_task_export toneBlue
class node_auth_service toneAmber
class node_postgres,node_task_schema toneMint
class node_student toneIndigo
```

## Components

### Streamlit app

- [App entry and routing](https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py): `app.py`
- [Client configuration](https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py): `app.py`
- [Sign-in and registration](https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py): `app.py`
- [Session account state](https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py): `app.py`
- [Planner interface](https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py): `app.py`
- [Task operations](https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py): `app.py`
- [Progress and filters](https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py): `app.py`
- [CSV and JSON export](https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/app.py): `app.py`

### Supabase services

- **Supabase Auth**

### Task data

- **PostgreSQL tasks**
- [Tasks schema and RLS](https://github.com/pssrohithkumar576-droid/student-study-planner-multiuser/blob/main/supabase_schema.sql): `supabase_schema.sql`

### Other components

- **Student**

## Connections

- Student → App entry and routing: uses (evidence: `README.md`)
- App entry and routing → Client configuration: loads client (evidence: `app.py`)
- App entry and routing → Sign-in and registration: routes unauthenticated (evidence: `app.py`)
- App entry and routing → Planner interface: routes signed-in (evidence: `app.py`)
- Sign-in and registration → Supabase Auth: authenticates (evidence: `app.py`)
- Sign-in and registration → Session account state: stores user (evidence: `app.py`)
- Planner interface → Session account state: uses user ID (evidence: `app.py`)
- Planner interface → Task operations: manages tasks (evidence: `app.py`)
- Task operations → PostgreSQL tasks: reads and writes (evidence: `app.py`)
- Planner interface → Progress and filters: shows progress (evidence: `app.py`)
- Planner interface → CSV and JSON export: exports tasks (evidence: `app.py`)
- Tasks schema and RLS → PostgreSQL tasks: defines table (evidence: `README.md`)
- Tasks schema and RLS → PostgreSQL tasks: restricts rows (evidence: `README.md`)
