# hamici-amir/private_school architecture

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

- Interactive diagram: https://gitdiagram.com/hamici-amir/private_school
- Repository: https://github.com/hamici-amir/private_school

## Overview

This is a frontend foundation for a private-school management system, not a functioning school-management product: the README says there is no backend, database, real authentication, or business-module logic. The user-facing path is app startup, routed shell, then a registered module placeholder. The foundation also provides bilingual RTL/LTR and theme preferences, shared UI, and a mock-first service layer prepared for a future API. Evidence is limited to the README, source index, and sampled excerpts; unsampled modules are represented only at their supported directory paths.

Main entry points: [`src/app/App.tsx`](https://github.com/hamici-amir/private_school/blob/master/src/app/App.tsx) (App composition), [`src/app/router/routes.tsx`](https://github.com/hamici-amir/private_school/blob/master/src/app/router/routes.tsx) (Route tree), [`src/features`](https://github.com/hamici-amir/private_school/tree/master/src/features) (Feature services), [`src/components/navigation/global-search.tsx`](https://github.com/hamici-amir/private_school/blob/master/src/components/navigation/global-search.tsx) (Global search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["App runtime"]
  node_entry["App entry<br/>[main.tsx]"]
  node_app["App composition<br/>[App.tsx]"]
  node_router["Route tree<br/>[routes.tsx]"]
  node_shell["App shell<br/>[app-shell.tsx]"]
end

subgraph group_experience["Shared experience"]
  node_nav["Navigation metadata<br/>[navigation.ts]"]
  node_search["Global search<br/>[global-search.tsx]"]
  node_i18n["Translations and direction"]
  node_preferences["UI preferences"]
end

subgraph group_modules["School modules"]
  node_placeholder["Module placeholders"]
  node_modules["School modules"]
end

subgraph group_data["Data foundation"]
  node_query["Query client<br/>[query-client.ts]"]
  node_featuredata["Feature services"]
  node_reporting["Report aggregation<br/>[reportService.ts]"]
  node_http["HTTP client<br/>[client.ts]"]
end

node_user(("School user"))
node_backend["Future backend"]

node_user -->|"opens app"| node_entry
node_entry -->|"starts"| node_app
node_app -->|"renders routes"| node_router
node_router -->|"mounts shell"| node_shell
node_shell -->|"hosts module pages"| node_placeholder
node_router -->|"lazy-loads pages"| node_modules
node_router -->|"looks up navigation"| node_nav
node_search -->|"lists destinations"| node_nav
node_search -->|"reads command state"| node_preferences
node_app -->|"provides query state"| node_query
node_app -->|"sets up localization"| node_i18n
node_modules -.->|"uses service layer"| node_featuredata
node_reporting -->|"collects module data"| node_featuredata
node_featuredata -.->|"can switch to API"| node_http
node_http -.->|"sends requests"| node_backend

click node_entry "https://github.com/hamici-amir/private_school/blob/master/src/main.tsx"
click node_app "https://github.com/hamici-amir/private_school/blob/master/src/app/App.tsx"
click node_router "https://github.com/hamici-amir/private_school/blob/master/src/app/router/routes.tsx"
click node_shell "https://github.com/hamici-amir/private_school/blob/master/src/layouts/app-shell.tsx"
click node_placeholder "https://github.com/hamici-amir/private_school/blob/master/src/pages/module-placeholder-page.tsx"
click node_modules "https://github.com/hamici-amir/private_school/tree/master/src/features"
click node_nav "https://github.com/hamici-amir/private_school/blob/master/src/constants/navigation.ts"
click node_search "https://github.com/hamici-amir/private_school/blob/master/src/components/navigation/global-search.tsx"
click node_i18n "https://github.com/hamici-amir/private_school/tree/master/src/lib/i18n"
click node_preferences "https://github.com/hamici-amir/private_school/tree/master/src/store"
click node_query "https://github.com/hamici-amir/private_school/blob/master/src/app/config/query-client.ts"
click node_featuredata "https://github.com/hamici-amir/private_school/tree/master/src/features"
click node_reporting "https://github.com/hamici-amir/private_school/blob/master/src/services/reportService.ts"
click node_http "https://github.com/hamici-amir/private_school/blob/master/src/api/http/client.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_entry,node_app,node_router,node_shell,node_user toneBlue
class node_nav,node_search,node_i18n,node_preferences toneAmber
class node_placeholder,node_modules toneMint
class node_query,node_featuredata,node_reporting,node_http toneRose
class node_backend toneIndigo
```

## Components

### App runtime

- [App entry](https://github.com/hamici-amir/private_school/blob/master/src/main.tsx): `src/main.tsx`
- [App composition](https://github.com/hamici-amir/private_school/blob/master/src/app/App.tsx): `src/app/App.tsx`
- [Route tree](https://github.com/hamici-amir/private_school/blob/master/src/app/router/routes.tsx): `src/app/router/routes.tsx`
- [App shell](https://github.com/hamici-amir/private_school/blob/master/src/layouts/app-shell.tsx): `src/layouts/app-shell.tsx`

### Shared experience

- [Navigation metadata](https://github.com/hamici-amir/private_school/blob/master/src/constants/navigation.ts): `src/constants/navigation.ts`
- [Global search](https://github.com/hamici-amir/private_school/blob/master/src/components/navigation/global-search.tsx): `src/components/navigation/global-search.tsx`
- [Translations and direction](https://github.com/hamici-amir/private_school/tree/master/src/lib/i18n): `src/lib/i18n`
- [UI preferences](https://github.com/hamici-amir/private_school/tree/master/src/store): `src/store`

### School modules

- [Module placeholders](https://github.com/hamici-amir/private_school/blob/master/src/pages/module-placeholder-page.tsx): `src/pages/module-placeholder-page.tsx`
- [School modules](https://github.com/hamici-amir/private_school/tree/master/src/features): `src/features`

### Data foundation

- [Query client](https://github.com/hamici-amir/private_school/blob/master/src/app/config/query-client.ts): `src/app/config/query-client.ts`
- [Feature services](https://github.com/hamici-amir/private_school/tree/master/src/features): `src/features`
- [Report aggregation](https://github.com/hamici-amir/private_school/blob/master/src/services/reportService.ts): `src/services/reportService.ts`
- [HTTP client](https://github.com/hamici-amir/private_school/blob/master/src/api/http/client.ts): `src/api/http/client.ts`

### Other components

- **School user**
- **Future backend**

## Connections

- School user → App entry: opens app (evidence: `README.md`)
- App entry → App composition: starts (evidence: `src/main.tsx`)
- App composition → Route tree: renders routes (evidence: `src/app/App.tsx`)
- Route tree → App shell: mounts shell (evidence: `src/app/router/routes.tsx`)
- App shell → Module placeholders: hosts module pages (evidence: `README.md`)
- Route tree → School modules: lazy-loads pages (evidence: `src/app/router/routes.tsx`)
- Route tree → Navigation metadata: looks up navigation (evidence: `src/app/router/routes.tsx`)
- Global search → Navigation metadata: lists destinations (evidence: `src/components/navigation/global-search.tsx`)
- Global search → UI preferences: reads command state (evidence: `src/components/navigation/global-search.tsx`)
- App composition → Query client: provides query state (evidence: `README.md`)
- App composition → Translations and direction: sets up localization (evidence: `README.md`)
- School modules → Feature services: uses service layer
- Report aggregation → Feature services: collects module data (evidence: `src/services/reportService.ts`)
- Feature services → HTTP client: can switch to API (evidence: `README.md`)
- HTTP client → Future backend: sends requests (evidence: `README.md`)
