# amjad03/kinetix architecture

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

- Interactive diagram: https://gitdiagram.com/amjad03/kinetix
- Repository: https://github.com/amjad03/kinetix

## Overview

KINETIX is a multi-tenant education SaaS spanning a classroom board, role-specific mobile apps, a web ERP and a NestJS cloud API. A typical workflow is that school staff or learners use an app to manage or access classes, attendance, homework, syllabus progress and related services; the API applies tenant-scoped access and persists the resulting records. The README documents the product capabilities and cross-product roles, while sampled API excerpts show tenant transactions and selected domain operations. Many app internals and API modules were not sampled, so undocumented implementation-level links are omitted.

Main entry points: [`services/api/src/db`](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/db) (Tenant database), [`services/api/src`](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src) (KINETIX Cloud API), [`services/api/src/teacher/teacher.service.ts`](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/teacher/teacher.service.ts) (Teacher services), [`services/api/src/coverage/coverage.controller.ts`](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/coverage/coverage.controller.ts) (Syllabus coverage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["Education clients"]
  node_board["Classroom board"]
  node_teacher_app["Teacher app"]
  node_parent_app["Parent app"]
  node_student_app["Student app"]
end

subgraph group_web["Web administration"]
  node_erp_dashboard["ERP dashboard"]
  node_erp_admissions["Admissions"]
  node_erp_finance["Fees and finance"]
  node_erp_governance["Governance and HR"]
  node_erp_api_routes["ERP API routes"]
end

subgraph group_api["Cloud API"]
  node_api_auth["Identity and access"]
  node_api_tenant_db[("Tenant database")]
  node_api_common["Audit and request helpers"]
  node_api_config["Runtime configuration"]
  node_shared_contracts["Shared contracts"]
  node_cloud_api["KINETIX Cloud API"]
  node_postgres[("PostgreSQL")]
end

subgraph group_learning["Learning services"]
  node_api_timetable["Timetable and calendar"]
  node_api_teacher["Teacher services<br/>[teacher.service.ts]"]
  node_api_coverage["Syllabus coverage"]
  node_api_school_learning["School learning"]
  node_api_homework["Homework peer review"]
  node_api_exams["Exams and results"]
end

subgraph group_operations["Institution services"]
  node_api_departments["Departments"]
  node_api_notifications["Notifications"]
  node_api_events["Realtime events"]
  node_api_transport["Transport"]
  node_api_hostel["Hostel operations"]
  node_api_inventory["Inventory"]
  node_api_obe["Outcomes and quality<br/>[obe.controller.ts]"]
  node_api_storage["File storage<br/>[storage.service.ts]"]
end

node_school_staff(("School staff"))
node_families_learners(("Families and learners"))

node_school_staff -->|"teaches with"| node_board
node_school_staff -->|"uses"| node_teacher_app
node_school_staff -->|"administers through"| node_erp_dashboard
node_families_learners -->|"uses"| node_parent_app
node_families_learners -->|"uses"| node_student_app
node_board -->|"syncs and shares"| node_cloud_api
node_teacher_app -->|"manages classes"| node_cloud_api
node_parent_app -->|"accesses updates"| node_cloud_api
node_student_app -->|"accesses learning"| node_cloud_api
node_erp_dashboard -->|"manages institution"| node_cloud_api
node_erp_admissions -.->|"manages applications"| node_cloud_api
node_erp_finance -.->|"manages fees"| node_cloud_api
node_erp_governance -.->|"manages policies"| node_cloud_api
node_erp_api_routes -.->|"serves web requests"| node_cloud_api
node_cloud_api -.->|"checks principals"| node_api_auth
node_cloud_api -.->|"runs tenant transactions"| node_api_tenant_db
node_api_tenant_db -.->|"reads and writes"| node_postgres
node_api_tenant_db -->|"loads database settings"| node_api_config
node_api_coverage -->|"reads and writes"| node_api_tenant_db
node_api_coverage -->|"checks teaching access"| node_api_teacher
node_api_coverage -->|"checks subject head"| node_api_departments
node_api_teacher -->|"uses schedule services"| node_api_timetable
node_api_teacher -.->|"queries school records"| node_api_tenant_db
node_api_school_learning -->|"reads learning records"| node_api_tenant_db
node_api_homework -->|"reads review records"| node_api_tenant_db
node_api_exams -->|"manages exam records"| node_api_tenant_db
node_api_obe -->|"reads outcome records"| node_api_tenant_db
node_api_transport -->|"reads transport records"| node_api_tenant_db
node_api_transport -->|"sends notifications"| node_api_notifications
node_api_hostel -.->|"reads and writes"| node_api_tenant_db
node_api_inventory -.->|"reads and writes"| node_api_tenant_db
node_api_common -->|"writes audit entries"| node_api_tenant_db
node_api_teacher -->|"uses DTO types"| node_shared_contracts
node_board -.->|"uses live classroom"| node_api_events
node_api_storage -.->|"loads storage settings"| node_api_config

click node_board "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/board"
click node_teacher_app "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/teacher"
click node_parent_app "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/parent"
click node_student_app "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/student"
click node_erp_dashboard "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/erp/src/app/(dashboard)"
click node_erp_admissions "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/erp/src/app/(dashboard)/admissions"
click node_erp_finance "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/erp/src/app/(dashboard)/fees"
click node_erp_governance "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/erp/src/app/(dashboard)/governance"
click node_erp_api_routes "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/erp/src/app/api"
click node_api_auth "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/auth"
click node_api_tenant_db "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/db"
click node_api_common "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/common"
click node_api_config "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/config"
click node_api_timetable "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/timetable"
click node_api_teacher "https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/teacher/teacher.service.ts"
click node_api_coverage "https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/coverage/coverage.controller.ts"
click node_api_school_learning "https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/school-learning/school-learning.controller.ts"
click node_api_homework "https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/homework/peer-review.controller.ts"
click node_api_exams "https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/exams/exams.controller.ts"
click node_api_departments "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/departments"
click node_api_notifications "https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/notifications/notifications.service.ts"
click node_api_events "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/events"
click node_api_transport "https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/transport/transport.controller.ts"
click node_api_hostel "https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/hostel/hostel.controller.ts"
click node_api_inventory "https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/inventory/inventory.controller.ts"
click node_api_obe "https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/obe/obe.controller.ts"
click node_api_storage "https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/storage/storage.service.ts"
click node_shared_contracts "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/packages/shared/src"
click node_cloud_api "https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src"

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_board,node_teacher_app,node_parent_app,node_student_app toneBlue
class node_erp_dashboard,node_erp_admissions,node_erp_finance,node_erp_governance,node_erp_api_routes toneAmber
class node_api_auth,node_api_tenant_db,node_api_common,node_api_config,node_shared_contracts,node_cloud_api,node_postgres toneMint
class node_api_timetable,node_api_teacher,node_api_coverage,node_api_school_learning,node_api_homework,node_api_exams toneRose
class node_api_departments,node_api_notifications,node_api_events,node_api_transport,node_api_hostel,node_api_inventory,node_api_obe,node_api_storage,node_school_staff,node_families_learners toneIndigo
```

## Components

### Education clients

- [Classroom board](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/board): `apps/board`
- [Teacher app](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/teacher): `apps/teacher`
- [Parent app](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/parent): `apps/parent`
- [Student app](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/student): `apps/student`

### Web administration

- [ERP dashboard](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/erp/src/app/(dashboard)): `apps/erp/src/app/(dashboard)`
- [Admissions](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/erp/src/app/(dashboard)/admissions): `apps/erp/src/app/(dashboard)/admissions`
- [Fees and finance](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/erp/src/app/(dashboard)/fees): `apps/erp/src/app/(dashboard)/fees`
- [Governance and HR](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/erp/src/app/(dashboard)/governance): `apps/erp/src/app/(dashboard)/governance`
- [ERP API routes](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/apps/erp/src/app/api): `apps/erp/src/app/api`

### Cloud API

- [Identity and access](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/auth): `services/api/src/auth`
- [Tenant database](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/db): `services/api/src/db`
- [Audit and request helpers](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/common): `services/api/src/common`
- [Runtime configuration](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/config): `services/api/src/config`
- [Shared contracts](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/packages/shared/src): `packages/shared/src`
- [KINETIX Cloud API](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src): `services/api/src`
- **PostgreSQL**

### Learning services

- [Timetable and calendar](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/timetable): `services/api/src/timetable`
- [Teacher services](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/teacher/teacher.service.ts): `services/api/src/teacher/teacher.service.ts`
- [Syllabus coverage](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/coverage/coverage.controller.ts): `services/api/src/coverage/coverage.controller.ts`
- [School learning](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/school-learning/school-learning.controller.ts): `services/api/src/school-learning/school-learning.controller.ts`
- [Homework peer review](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/homework/peer-review.controller.ts): `services/api/src/homework/peer-review.controller.ts`
- [Exams and results](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/exams/exams.controller.ts): `services/api/src/exams/exams.controller.ts`

### Institution services

- [Departments](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/departments): `services/api/src/departments`
- [Notifications](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/notifications/notifications.service.ts): `services/api/src/notifications/notifications.service.ts`
- [Realtime events](https://github.com/amjad03/kinetix/tree/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/events): `services/api/src/events`
- [Transport](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/transport/transport.controller.ts): `services/api/src/transport/transport.controller.ts`
- [Hostel operations](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/hostel/hostel.controller.ts): `services/api/src/hostel/hostel.controller.ts`
- [Inventory](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/inventory/inventory.controller.ts): `services/api/src/inventory/inventory.controller.ts`
- [Outcomes and quality](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/obe/obe.controller.ts): `services/api/src/obe/obe.controller.ts`
- [File storage](https://github.com/amjad03/kinetix/blob/claude/kinetix-ecosystem-overview-lpphjn/services/api/src/storage/storage.service.ts): `services/api/src/storage/storage.service.ts`

### Other components

- **School staff**
- **Families and learners**

## Connections

- School staff → Classroom board: teaches with (evidence: `README.md`)
- School staff → Teacher app: uses (evidence: `README.md`)
- School staff → ERP dashboard: administers through (evidence: `README.md`)
- Families and learners → Parent app: uses (evidence: `README.md`)
- Families and learners → Student app: uses (evidence: `README.md`)
- Classroom board → KINETIX Cloud API: syncs and shares (evidence: `README.md`)
- Teacher app → KINETIX Cloud API: manages classes (evidence: `README.md`)
- Parent app → KINETIX Cloud API: accesses updates (evidence: `README.md`)
- Student app → KINETIX Cloud API: accesses learning (evidence: `README.md`)
- ERP dashboard → KINETIX Cloud API: manages institution (evidence: `README.md`)
- Admissions → KINETIX Cloud API: manages applications (evidence: `README.md`)
- Fees and finance → KINETIX Cloud API: manages fees (evidence: `README.md`)
- Governance and HR → KINETIX Cloud API: manages policies (evidence: `README.md`)
- ERP API routes → KINETIX Cloud API: serves web requests (evidence: `README.md`)
- KINETIX Cloud API → Identity and access: checks principals (evidence: `services/api/src/auth/auth.decorators.ts`)
- KINETIX Cloud API → Tenant database: runs tenant transactions (evidence: `services/api/src/db/db.service.ts`)
- Tenant database → PostgreSQL: reads and writes (evidence: `services/api/src/db/db.service.ts`)
- Tenant database → Runtime configuration: loads database settings (evidence: `services/api/src/db/db.service.ts`)
- Syllabus coverage → Tenant database: reads and writes (evidence: `services/api/src/coverage/coverage.controller.ts`)
- Syllabus coverage → Teacher services: checks teaching access (evidence: `services/api/src/coverage/coverage.controller.ts`)
- Syllabus coverage → Departments: checks subject head (evidence: `services/api/src/coverage/coverage.controller.ts`)
- Teacher services → Timetable and calendar: uses schedule services (evidence: `services/api/src/teacher/teacher.service.ts`)
- Teacher services → Tenant database: queries school records (evidence: `services/api/src/teacher/teacher.service.ts`)
- School learning → Tenant database: reads learning records (evidence: `services/api/src/school-learning/school-learning.controller.ts`)
- Homework peer review → Tenant database: reads review records (evidence: `services/api/src/homework/peer-review.controller.ts`)
- Exams and results → Tenant database: manages exam records (evidence: `services/api/src/exams/exams.controller.ts`)
- Outcomes and quality → Tenant database: reads outcome records (evidence: `services/api/src/obe/obe.controller.ts`)
- Transport → Tenant database: reads transport records (evidence: `services/api/src/transport/transport.controller.ts`)
- Transport → Notifications: sends notifications (evidence: `services/api/src/transport/transport.controller.ts`)
- Hostel operations → Tenant database: reads and writes (evidence: `services/api/src/hostel/hostel.controller.ts`)
- Inventory → Tenant database: reads and writes (evidence: `services/api/src/inventory/inventory.controller.ts`)
- Audit and request helpers → Tenant database: writes audit entries (evidence: `services/api/src/common/audit.ts`)
- Teacher services → Shared contracts: uses DTO types (evidence: `services/api/src/teacher/teacher.service.ts`)
- Classroom board → Realtime events: uses live classroom (evidence: `README.md`)
- File storage → Runtime configuration: loads storage settings (evidence: `services/api/src/storage/storage.service.ts`)
