# tocciframe/smartstudyhub architecture

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

- Interactive diagram: https://gitdiagram.com/tocciframe/smartstudyhub
- Repository: https://github.com/tocciframe/smartstudyhub

## Overview

SmartStudyHub appears to be a Blazor WebAssembly study hub with landing, login, dashboard, and feedback screens. The visible runtime setup registers authentication and mounts the app; authentication checks a single in-memory demo account. The page implementations and README were not provided, so their detailed workflows and connections are not asserted. Models suggest flashcard, track, user, login, and feedback concepts, but their use by the unsampled pages is unknown.

Main entry points: [`Program.cs`](https://github.com/tocciframe/smartstudyhub/blob/main/Program.cs) (WebAssembly startup), [`Services/AuthService.cs`](https://github.com/tocciframe/smartstudyhub/blob/main/Services/AuthService.cs) (Auth service), [`App.razor`](https://github.com/tocciframe/smartstudyhub/blob/main/App.razor) (App root), [`Services/DemoAccounts.cs`](https://github.com/tocciframe/smartstudyhub/blob/main/Services/DemoAccounts.cs) (Demo accounts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_program["WebAssembly startup<br/>[Program.cs]"]
  node_app["App root<br/>[App.razor]"]
  node_landing["Landing page<br/>[Landing.razor]"]
  node_login["Login page<br/>[Login.razor]"]
  node_dashboard["Study dashboard<br/>[Dashboard.razor]"]
  node_feedback["Feedback page<br/>[Feedback.razor]"]
  node_layout["Main layout<br/>[MainLayout.razor]"]
  node_navigation["Navigation menu<br/>[NavMenu.razor]"]
end

subgraph group_access["Authentication"]
  node_authguard["Auth requirement<br/>[RequireAuth.razor]"]
  node_authservice["Auth service<br/>[AuthService.cs]"]
  node_accounts[("Demo accounts<br/>[DemoAccounts.cs]")]
end

subgraph group_domain["Domain models"]
  node_loginmodel["Login and user model<br/>[LoginModel.cs]"]
  node_user["User model<br/>[User.cs]"]
  node_flashcard["Flashcard model<br/>[FlashcardModel.cs]"]
  node_track["Track option<br/>[TrackOption.cs]"]
  node_feedbackmodel["Feedback item<br/>[FeedbackItem.cs]"]
end

node_visitor(("Learner"))

node_program -->|"mounts root"| node_app
node_program -->|"registers service"| node_authservice
node_authservice -->|"checks accounts"| node_accounts
node_visitor -.->|"uses app"| node_app

click node_program "https://github.com/tocciframe/smartstudyhub/blob/main/Program.cs"
click node_app "https://github.com/tocciframe/smartstudyhub/blob/main/App.razor"
click node_landing "https://github.com/tocciframe/smartstudyhub/blob/main/Pages/Landing.razor"
click node_login "https://github.com/tocciframe/smartstudyhub/blob/main/Pages/Login.razor"
click node_dashboard "https://github.com/tocciframe/smartstudyhub/blob/main/Pages/Dashboard.razor"
click node_feedback "https://github.com/tocciframe/smartstudyhub/blob/main/Pages/Feedback.razor"
click node_authguard "https://github.com/tocciframe/smartstudyhub/blob/main/Components/RequireAuth.razor"
click node_authservice "https://github.com/tocciframe/smartstudyhub/blob/main/Services/AuthService.cs"
click node_accounts "https://github.com/tocciframe/smartstudyhub/blob/main/Services/DemoAccounts.cs"
click node_loginmodel "https://github.com/tocciframe/smartstudyhub/blob/main/Models/LoginModel.cs"
click node_user "https://github.com/tocciframe/smartstudyhub/blob/main/Models/User.cs"
click node_flashcard "https://github.com/tocciframe/smartstudyhub/blob/main/Models/FlashcardModel.cs"
click node_track "https://github.com/tocciframe/smartstudyhub/blob/main/Models/TrackOption.cs"
click node_feedbackmodel "https://github.com/tocciframe/smartstudyhub/blob/main/Models/FeedbackItem.cs"
click node_layout "https://github.com/tocciframe/smartstudyhub/blob/main/Layout/MainLayout.razor"
click node_navigation "https://github.com/tocciframe/smartstudyhub/blob/main/Layout/NavMenu.razor"

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_program,node_app,node_landing,node_login,node_dashboard,node_feedback,node_layout,node_navigation toneBlue
class node_authguard,node_authservice,node_accounts toneAmber
class node_loginmodel,node_user,node_flashcard,node_track,node_feedbackmodel toneMint
class node_visitor toneIndigo
```

## Components

### App experience

- [WebAssembly startup](https://github.com/tocciframe/smartstudyhub/blob/main/Program.cs): `Program.cs`
- [App root](https://github.com/tocciframe/smartstudyhub/blob/main/App.razor): `App.razor`
- [Landing page](https://github.com/tocciframe/smartstudyhub/blob/main/Pages/Landing.razor): `Pages/Landing.razor`
- [Login page](https://github.com/tocciframe/smartstudyhub/blob/main/Pages/Login.razor): `Pages/Login.razor`
- [Study dashboard](https://github.com/tocciframe/smartstudyhub/blob/main/Pages/Dashboard.razor): `Pages/Dashboard.razor`
- [Feedback page](https://github.com/tocciframe/smartstudyhub/blob/main/Pages/Feedback.razor): `Pages/Feedback.razor`
- [Main layout](https://github.com/tocciframe/smartstudyhub/blob/main/Layout/MainLayout.razor): `Layout/MainLayout.razor`
- [Navigation menu](https://github.com/tocciframe/smartstudyhub/blob/main/Layout/NavMenu.razor): `Layout/NavMenu.razor`

### Authentication

- [Auth requirement](https://github.com/tocciframe/smartstudyhub/blob/main/Components/RequireAuth.razor): `Components/RequireAuth.razor`
- [Auth service](https://github.com/tocciframe/smartstudyhub/blob/main/Services/AuthService.cs): `Services/AuthService.cs`
- [Demo accounts](https://github.com/tocciframe/smartstudyhub/blob/main/Services/DemoAccounts.cs): `Services/DemoAccounts.cs`

### Domain models

- [Login and user model](https://github.com/tocciframe/smartstudyhub/blob/main/Models/LoginModel.cs): `Models/LoginModel.cs`
- [User model](https://github.com/tocciframe/smartstudyhub/blob/main/Models/User.cs): `Models/User.cs`
- [Flashcard model](https://github.com/tocciframe/smartstudyhub/blob/main/Models/FlashcardModel.cs): `Models/FlashcardModel.cs`
- [Track option](https://github.com/tocciframe/smartstudyhub/blob/main/Models/TrackOption.cs): `Models/TrackOption.cs`
- [Feedback item](https://github.com/tocciframe/smartstudyhub/blob/main/Models/FeedbackItem.cs): `Models/FeedbackItem.cs`

### Other components

- **Learner**

## Connections

- WebAssembly startup → App root: mounts root (evidence: `Program.cs`)
- WebAssembly startup → Auth service: registers service (evidence: `Program.cs`)
- Auth service → Demo accounts: checks accounts (evidence: `Services/AuthService.cs`)
- Learner → App root: uses app
