# sapatil2212/edutechunite architecture

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

- Interactive diagram: https://gitdiagram.com/sapatil2212/edutechunite
- Repository: https://github.com/sapatil2212/edutechunite

## Overview

EduManage is an education ERP for school staff, students, parents, and platform administrators. Its broad workflow is institution setup and account access, followed by academic administration and day-to-day teaching, assessment, and finance; student and parent portals expose related information. The tree documents these capabilities, but most pages and API handlers were not sampled, so their exact request paths and cross-module calls cannot be verified. Solid edges below are limited to relationships shown in excerpts; dashed edges indicate documented or plausible product connections without sampled wiring.

Main entry points: [`lib/prisma.ts`](https://github.com/sapatil2212/edutechunite/blob/master/lib/prisma.ts) (Prisma data store), [`lib/auth.ts`](https://github.com/sapatil2212/edutechunite/blob/master/lib/auth.ts) (Authentication), [`app/api/institution/academic-units/route.ts`](https://github.com/sapatil2212/edutechunite/blob/master/app/api/institution/academic-units/route.ts) (Academic setup), [`app/api/institution/assignments/route.ts`](https://github.com/sapatil2212/edutechunite/blob/master/app/api/institution/assignments/route.ts) (Assignments)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and setup"]
  node_auth_pages["Sign-in pages"]
  node_onboarding["Institution onboarding"]
  node_super_admin["Institution oversight"]
end

subgraph group_academic["Academic operations"]
  node_student_records["Student records<br/>[route.ts]"]
  node_academic_admin["Academic setup<br/>[route.ts]"]
  node_assignments["Assignments<br/>[route.ts]"]
  node_attendance["Attendance"]
  node_timetables["Timetables<br/>[page.tsx]"]
end

subgraph group_assessment["Assessment"]
  node_exams["Exam management"]
  node_results["Results and reports<br/>[route.ts]"]
end

subgraph group_finance["Finance"]
  node_fees["Fee management"]
  node_receipts["Receipt delivery<br/>[route.ts]"]
end

subgraph group_portals["User portals"]
  node_student_portal["Student portal"]
  node_parent_portal["Parent portal"]
  node_teacher_portal["Teacher portal"]
end

subgraph group_platform["Shared platform"]
  node_auth_service["Authentication<br/>[auth.ts]"]
  node_jwt_service["JWT identity<br/>[jwt.ts]"]
  node_database[("Prisma data store<br/>[prisma.ts]")]
  node_visibility["Publishing visibility"]
  node_notifications["Notifications"]
  node_ai_tools["AI assistants"]
end

node_school_admin(("School staff"))
node_student_actor(("Student"))
node_parent_actor(("Parent"))

node_school_admin -.->|"signs in"| node_auth_pages
node_school_admin -.->|"sets up"| node_onboarding
node_student_actor -.->|"views learning"| node_student_portal
node_parent_actor -.->|"tracks children"| node_parent_portal
node_school_admin -.->|"manages students"| node_student_records
node_school_admin -.->|"configures academics"| node_academic_admin
node_school_admin -.->|"manages assignments"| node_assignments
node_school_admin -.->|"tracks attendance"| node_attendance
node_school_admin -.->|"plans schedules"| node_timetables
node_school_admin -.->|"creates exams"| node_exams
node_exams -.->|"supports reporting"| node_results
node_school_admin -.->|"manages fees"| node_fees
node_fees -.->|"issues receipts"| node_receipts
node_school_admin -.->|"institution oversight"| node_super_admin
node_student_records -->|"checks session"| node_auth_service
node_student_records -->|"writes student data"| node_database
node_assignments -->|"checks session"| node_auth_service
node_assignments -->|"checks JWT"| node_jwt_service
node_assignments -->|"reads and writes"| node_database
node_academic_admin -->|"checks session"| node_auth_service
node_academic_admin -->|"checks JWT"| node_jwt_service
node_academic_admin -->|"reads and writes"| node_database
node_exams -->|"checks session"| node_auth_service
node_exams -->|"reads and writes"| node_database
node_receipts -->|"checks session"| node_auth_service
node_receipts -->|"reads payment data"| node_database
node_visibility -->|"updates timetable"| node_database
node_visibility -->|"sends notifications"| node_notifications

click node_auth_pages "https://github.com/sapatil2212/edutechunite/tree/master/app/(auth)"
click node_onboarding "https://github.com/sapatil2212/edutechunite/tree/master/app/(onboarding)"
click node_student_records "https://github.com/sapatil2212/edutechunite/blob/master/app/api/institution/students/route.ts"
click node_academic_admin "https://github.com/sapatil2212/edutechunite/blob/master/app/api/institution/academic-units/route.ts"
click node_assignments "https://github.com/sapatil2212/edutechunite/blob/master/app/api/institution/assignments/route.ts"
click node_attendance "https://github.com/sapatil2212/edutechunite/tree/master/app/api/institution/attendance"
click node_timetables "https://github.com/sapatil2212/edutechunite/blob/master/app/dashboard/academic/timetable/page.tsx"
click node_exams "https://github.com/sapatil2212/edutechunite/tree/master/app/api/exams"
click node_results "https://github.com/sapatil2212/edutechunite/blob/master/app/api/exams/%5BexamId%5D/analytics/route.ts"
click node_fees "https://github.com/sapatil2212/edutechunite/tree/master/app/api/institution/finance"
click node_receipts "https://github.com/sapatil2212/edutechunite/blob/master/app/api/receipts/%5BreceiptNumber%5D/route.ts"
click node_student_portal "https://github.com/sapatil2212/edutechunite/tree/master/app/(student)/student"
click node_parent_portal "https://github.com/sapatil2212/edutechunite/tree/master/app/(parent)/parent"
click node_teacher_portal "https://github.com/sapatil2212/edutechunite/tree/master/app/(teacher)/teacher"
click node_super_admin "https://github.com/sapatil2212/edutechunite/tree/master/app/(super-admin)"
click node_auth_service "https://github.com/sapatil2212/edutechunite/blob/master/lib/auth.ts"
click node_jwt_service "https://github.com/sapatil2212/edutechunite/blob/master/lib/jwt.ts"
click node_database "https://github.com/sapatil2212/edutechunite/blob/master/lib/prisma.ts"
click node_visibility "https://github.com/sapatil2212/edutechunite/blob/master/lib/services/visibility-service.ts"
click node_notifications "https://github.com/sapatil2212/edutechunite/blob/master/lib/services/notification-service.ts"
click node_ai_tools "https://github.com/sapatil2212/edutechunite/blob/master/components/ai/AIAssistantWidget.tsx"

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_auth_pages,node_onboarding,node_super_admin toneBlue
class node_student_records,node_academic_admin,node_assignments,node_attendance,node_timetables toneAmber
class node_exams,node_results toneMint
class node_fees,node_receipts toneRose
class node_student_portal,node_parent_portal,node_teacher_portal,node_school_admin,node_student_actor,node_parent_actor toneIndigo
class node_auth_service,node_jwt_service,node_database,node_visibility,node_notifications,node_ai_tools toneTeal
```

## Components

### Access and setup

- [Sign-in pages](https://github.com/sapatil2212/edutechunite/tree/master/app/(auth)): `app/(auth)`
- [Institution onboarding](https://github.com/sapatil2212/edutechunite/tree/master/app/(onboarding)): `app/(onboarding)`
- [Institution oversight](https://github.com/sapatil2212/edutechunite/tree/master/app/(super-admin)): `app/(super-admin)`

### Academic operations

- [Student records](https://github.com/sapatil2212/edutechunite/blob/master/app/api/institution/students/route.ts): `app/api/institution/students/route.ts`
- [Academic setup](https://github.com/sapatil2212/edutechunite/blob/master/app/api/institution/academic-units/route.ts): `app/api/institution/academic-units/route.ts`
- [Assignments](https://github.com/sapatil2212/edutechunite/blob/master/app/api/institution/assignments/route.ts): `app/api/institution/assignments/route.ts`
- [Attendance](https://github.com/sapatil2212/edutechunite/tree/master/app/api/institution/attendance): `app/api/institution/attendance`
- [Timetables](https://github.com/sapatil2212/edutechunite/blob/master/app/dashboard/academic/timetable/page.tsx): `app/dashboard/academic/timetable/page.tsx`

### Assessment

- [Exam management](https://github.com/sapatil2212/edutechunite/tree/master/app/api/exams): `app/api/exams`
- [Results and reports](https://github.com/sapatil2212/edutechunite/blob/master/app/api/exams/%5BexamId%5D/analytics/route.ts): `app/api/exams/[examId]/analytics/route.ts`

### Finance

- [Fee management](https://github.com/sapatil2212/edutechunite/tree/master/app/api/institution/finance): `app/api/institution/finance`
- [Receipt delivery](https://github.com/sapatil2212/edutechunite/blob/master/app/api/receipts/%5BreceiptNumber%5D/route.ts): `app/api/receipts/[receiptNumber]/route.ts`

### User portals

- [Student portal](https://github.com/sapatil2212/edutechunite/tree/master/app/(student)/student): `app/(student)/student`
- [Parent portal](https://github.com/sapatil2212/edutechunite/tree/master/app/(parent)/parent): `app/(parent)/parent`
- [Teacher portal](https://github.com/sapatil2212/edutechunite/tree/master/app/(teacher)/teacher): `app/(teacher)/teacher`

### Shared platform

- [Authentication](https://github.com/sapatil2212/edutechunite/blob/master/lib/auth.ts): `lib/auth.ts`
- [JWT identity](https://github.com/sapatil2212/edutechunite/blob/master/lib/jwt.ts): `lib/jwt.ts`
- [Prisma data store](https://github.com/sapatil2212/edutechunite/blob/master/lib/prisma.ts): `lib/prisma.ts`
- [Publishing visibility](https://github.com/sapatil2212/edutechunite/blob/master/lib/services/visibility-service.ts): `lib/services/visibility-service.ts`
- [Notifications](https://github.com/sapatil2212/edutechunite/blob/master/lib/services/notification-service.ts): `lib/services/notification-service.ts`
- [AI assistants](https://github.com/sapatil2212/edutechunite/blob/master/components/ai/AIAssistantWidget.tsx): `components/ai/AIAssistantWidget.tsx`

### Other components

- **School staff**
- **Student**
- **Parent**

## Connections

- School staff → Sign-in pages: signs in
- School staff → Institution onboarding: sets up
- Student → Student portal: views learning
- Parent → Parent portal: tracks children
- School staff → Student records: manages students
- School staff → Academic setup: configures academics
- School staff → Assignments: manages assignments
- School staff → Attendance: tracks attendance
- School staff → Timetables: plans schedules
- School staff → Exam management: creates exams
- Exam management → Results and reports: supports reporting
- School staff → Fee management: manages fees
- Fee management → Receipt delivery: issues receipts
- School staff → Institution oversight: institution oversight
- Student records → Authentication: checks session (evidence: `app/api/institution/students/route.ts`)
- Student records → Prisma data store: writes student data (evidence: `app/api/institution/students/route.ts`)
- Assignments → Authentication: checks session (evidence: `app/api/institution/assignments/route.ts`)
- Assignments → JWT identity: checks JWT (evidence: `app/api/institution/assignments/route.ts`)
- Assignments → Prisma data store: reads and writes (evidence: `app/api/institution/assignments/route.ts`)
- Academic setup → Authentication: checks session (evidence: `app/api/institution/academic-units/route.ts`)
- Academic setup → JWT identity: checks JWT (evidence: `app/api/institution/academic-units/route.ts`)
- Academic setup → Prisma data store: reads and writes (evidence: `app/api/institution/academic-units/route.ts`)
- Exam management → Authentication: checks session (evidence: `app/api/exams/route.ts`)
- Exam management → Prisma data store: reads and writes (evidence: `app/api/exams/route.ts`)
- Receipt delivery → Authentication: checks session (evidence: `app/api/receipts/[receiptNumber]/route.ts`)
- Receipt delivery → Prisma data store: reads payment data (evidence: `app/api/receipts/[receiptNumber]/route.ts`)
- Publishing visibility → Prisma data store: updates timetable (evidence: `lib/services/visibility-service.ts`)
- Publishing visibility → Notifications: sends notifications (evidence: `lib/services/visibility-service.ts`)
