# thibaultminneboo/celcatweb architecture

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

- Interactive diagram: https://gitdiagram.com/thibaultminneboo/celcatweb
- Repository: https://github.com/thibaultminneboo/celcatweb

## Overview

CelcatWeeb is a timetable browser: users browse groups, modules, or teachers, then inspect paginated courses filtered by week and day. Listing and detail pages fetch JSON from Next.js API routes; those routes use Prisma-backed data. The graph preserves the main browse paths and shared course presentation. API-to-database links are based on the SOURCE INDEX references; API implementation details were not excerpted, so finer query behavior is not shown.

Main entry points: [`app/groups/page.tsx`](https://github.com/thibaultminneboo/celcatweb/blob/main/app/groups/page.tsx) (Group timetable), [`app/modules/[name]/page.tsx`](https://github.com/thibaultminneboo/celcatweb/blob/main/app/modules/%5Bname%5D/page.tsx) (Module timetable), [`app/teachers/[name]/page.tsx`](https://github.com/thibaultminneboo/celcatweb/blob/main/app/teachers/%5Bname%5D/page.tsx) (Teacher timetable), [`app/modules/page.tsx`](https://github.com/thibaultminneboo/celcatweb/blob/main/app/modules/page.tsx) (Module listing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_home["Home page<br/>[page.tsx]"]
  node_layout["App layout<br/>[layout.tsx]"]
  node_groupbrowse["Group timetable<br/>[page.tsx]"]
  node_modulebrowse["Module listing<br/>[page.tsx]"]
  node_moduledetail["Module timetable<br/>[page.tsx]"]
  node_teacherbrowse["Teacher listing<br/>[page.tsx]"]
  node_teacherdetail["Teacher timetable<br/>[page.tsx]"]
  node_navbar["Navigation bar<br/>[Navbar.tsx]"]
  node_courses["Course collection<br/>[Courses.tsx]"]
  node_course["Course card<br/>[Course.tsx]"]
  node_weekselect["Week selector<br/>[WeekSelect.tsx]"]
  node_dayselect["Day selector<br/>[DaySelect.tsx]"]
  node_groupselect["Group selector<br/>[GroupSelect.tsx]"]
  node_pagination["Pagination<br/>[Pagination.tsx]"]
  node_loader["Loading indicator<br/>[Loader.tsx]"]
  node_modulecard["Module result<br/>[Module.tsx]"]
  node_teachercard["Teacher result<br/>[Teacher.tsx]"]
  node_empty["Empty results"]
end

subgraph group_api["API routes"]
  node_groupslistapi["Group listing API<br/>[index.ts]"]
  node_groupapi["Group timetable API<br/>[index.ts]"]
  node_modulesapi["Module listing API<br/>[index.ts]"]
  node_moduleapi["Module timetable API<br/>[index.ts]"]
  node_teachersapi["Teacher listing API<br/>[index.ts]"]
  node_teacherapi["Teacher timetable API<br/>[index.ts]"]
  node_weeksapi["Weeks API<br/>[index.ts]"]
end

subgraph group_data["Data access"]
  node_prisma["Prisma client<br/>[prisma.ts]"]
  node_database[("Timetable database<br/>[schema.prisma]")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_visitor -->|"browses"| node_groupbrowse
node_visitor -->|"browses"| node_modulebrowse
node_visitor -->|"browses"| node_teacherbrowse
node_layout -->|"renders"| node_navbar
node_groupbrowse -->|"fetches"| node_groupapi
node_groupbrowse -->|"renders"| node_groupselect
node_groupbrowse -->|"renders"| node_weekselect
node_groupbrowse -->|"renders"| node_dayselect
node_groupbrowse -->|"renders"| node_courses
node_groupbrowse -->|"renders"| node_pagination
node_groupbrowse -->|"renders"| node_loader
node_modulebrowse -->|"fetches"| node_modulesapi
node_modulebrowse -->|"renders"| node_modulecard
node_modulebrowse -->|"renders"| node_pagination
node_modulebrowse -->|"renders"| node_loader
node_modulebrowse -->|"renders"| node_empty
node_moduledetail -->|"fetches"| node_moduleapi
node_moduledetail -->|"renders"| node_weekselect
node_moduledetail -->|"renders"| node_dayselect
node_moduledetail -->|"renders"| node_courses
node_moduledetail -->|"renders"| node_pagination
node_moduledetail -->|"renders"| node_loader
node_teacherbrowse -->|"fetches"| node_teachersapi
node_teacherbrowse -->|"renders"| node_teachercard
node_teacherbrowse -->|"renders"| node_pagination
node_teacherbrowse -->|"renders"| node_loader
node_teacherdetail -->|"fetches"| node_teacherapi
node_teacherdetail -->|"renders"| node_weekselect
node_teacherdetail -->|"renders"| node_dayselect
node_teacherdetail -->|"renders"| node_courses
node_teacherdetail -->|"renders"| node_pagination
node_teacherdetail -->|"renders"| node_loader
node_weekselect -->|"fetches"| node_weeksapi
node_courses -->|"renders"| node_course
node_courses -->|"renders"| node_empty
node_groupslistapi -->|"uses"| node_prisma
node_groupapi -->|"uses"| node_prisma
node_modulesapi -->|"uses"| node_prisma
node_moduleapi -->|"uses"| node_prisma
node_teachersapi -->|"uses"| node_prisma
node_teacherapi -->|"uses"| node_prisma
node_weeksapi -->|"uses"| node_prisma

click node_home "https://github.com/thibaultminneboo/celcatweb/blob/main/app/page.tsx"
click node_layout "https://github.com/thibaultminneboo/celcatweb/blob/main/app/layout.tsx"
click node_groupbrowse "https://github.com/thibaultminneboo/celcatweb/blob/main/app/groups/page.tsx"
click node_modulebrowse "https://github.com/thibaultminneboo/celcatweb/blob/main/app/modules/page.tsx"
click node_moduledetail "https://github.com/thibaultminneboo/celcatweb/blob/main/app/modules/%5Bname%5D/page.tsx"
click node_teacherbrowse "https://github.com/thibaultminneboo/celcatweb/blob/main/app/teachers/page.tsx"
click node_teacherdetail "https://github.com/thibaultminneboo/celcatweb/blob/main/app/teachers/%5Bname%5D/page.tsx"
click node_navbar "https://github.com/thibaultminneboo/celcatweb/blob/main/components/Navbar.tsx"
click node_courses "https://github.com/thibaultminneboo/celcatweb/blob/main/components/Courses.tsx"
click node_course "https://github.com/thibaultminneboo/celcatweb/blob/main/components/Course.tsx"
click node_weekselect "https://github.com/thibaultminneboo/celcatweb/blob/main/components/WeekSelect.tsx"
click node_dayselect "https://github.com/thibaultminneboo/celcatweb/blob/main/components/DaySelect.tsx"
click node_groupselect "https://github.com/thibaultminneboo/celcatweb/blob/main/components/GroupSelect.tsx"
click node_pagination "https://github.com/thibaultminneboo/celcatweb/blob/main/components/Pagination.tsx"
click node_loader "https://github.com/thibaultminneboo/celcatweb/blob/main/components/Loader.tsx"
click node_modulecard "https://github.com/thibaultminneboo/celcatweb/blob/main/components/Module.tsx"
click node_teachercard "https://github.com/thibaultminneboo/celcatweb/blob/main/components/Teacher.tsx"
click node_empty "https://github.com/thibaultminneboo/celcatweb/blob/main/components/ResultsNotFound.tsx"
click node_groupslistapi "https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/groups/index.ts"
click node_groupapi "https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/groups/%5Bname%5D/index.ts"
click node_modulesapi "https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/modules/index.ts"
click node_moduleapi "https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/modules/%5Bname%5D/index.ts"
click node_teachersapi "https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/teachers/index.ts"
click node_teacherapi "https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/teachers/%5Bname%5D/index.ts"
click node_weeksapi "https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/weeks/index.ts"
click node_prisma "https://github.com/thibaultminneboo/celcatweb/blob/main/src/lib/prisma.ts"
click node_database "https://github.com/thibaultminneboo/celcatweb/blob/main/prisma/schema.prisma"

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_home,node_layout,node_groupbrowse,node_modulebrowse,node_moduledetail,node_teacherbrowse,node_teacherdetail,node_navbar,node_courses,node_course,node_weekselect,node_dayselect,node_groupselect,node_pagination,node_loader,node_modulecard,node_teachercard,node_empty toneBlue
class node_groupslistapi,node_groupapi,node_modulesapi,node_moduleapi,node_teachersapi,node_teacherapi,node_weeksapi toneAmber
class node_prisma,node_database toneMint
class node_visitor toneIndigo
```

## Components

### Web experience

- [Home page](https://github.com/thibaultminneboo/celcatweb/blob/main/app/page.tsx): `app/page.tsx`
- [App layout](https://github.com/thibaultminneboo/celcatweb/blob/main/app/layout.tsx): `app/layout.tsx`
- [Group timetable](https://github.com/thibaultminneboo/celcatweb/blob/main/app/groups/page.tsx): `app/groups/page.tsx`
- [Module listing](https://github.com/thibaultminneboo/celcatweb/blob/main/app/modules/page.tsx): `app/modules/page.tsx`
- [Module timetable](https://github.com/thibaultminneboo/celcatweb/blob/main/app/modules/%5Bname%5D/page.tsx): `app/modules/[name]/page.tsx`
- [Teacher listing](https://github.com/thibaultminneboo/celcatweb/blob/main/app/teachers/page.tsx): `app/teachers/page.tsx`
- [Teacher timetable](https://github.com/thibaultminneboo/celcatweb/blob/main/app/teachers/%5Bname%5D/page.tsx): `app/teachers/[name]/page.tsx`
- [Navigation bar](https://github.com/thibaultminneboo/celcatweb/blob/main/components/Navbar.tsx): `components/Navbar.tsx`
- [Course collection](https://github.com/thibaultminneboo/celcatweb/blob/main/components/Courses.tsx): `components/Courses.tsx`
- [Course card](https://github.com/thibaultminneboo/celcatweb/blob/main/components/Course.tsx): `components/Course.tsx`
- [Week selector](https://github.com/thibaultminneboo/celcatweb/blob/main/components/WeekSelect.tsx): `components/WeekSelect.tsx`
- [Day selector](https://github.com/thibaultminneboo/celcatweb/blob/main/components/DaySelect.tsx): `components/DaySelect.tsx`
- [Group selector](https://github.com/thibaultminneboo/celcatweb/blob/main/components/GroupSelect.tsx): `components/GroupSelect.tsx`
- [Pagination](https://github.com/thibaultminneboo/celcatweb/blob/main/components/Pagination.tsx): `components/Pagination.tsx`
- [Loading indicator](https://github.com/thibaultminneboo/celcatweb/blob/main/components/Loader.tsx): `components/Loader.tsx`
- [Module result](https://github.com/thibaultminneboo/celcatweb/blob/main/components/Module.tsx): `components/Module.tsx`
- [Teacher result](https://github.com/thibaultminneboo/celcatweb/blob/main/components/Teacher.tsx): `components/Teacher.tsx`
- [Empty results](https://github.com/thibaultminneboo/celcatweb/blob/main/components/ResultsNotFound.tsx): `components/ResultsNotFound.tsx`

### API routes

- [Group listing API](https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/groups/index.ts): `pages/api/groups/index.ts`
- [Group timetable API](https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/groups/%5Bname%5D/index.ts): `pages/api/groups/[name]/index.ts`
- [Module listing API](https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/modules/index.ts): `pages/api/modules/index.ts`
- [Module timetable API](https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/modules/%5Bname%5D/index.ts): `pages/api/modules/[name]/index.ts`
- [Teacher listing API](https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/teachers/index.ts): `pages/api/teachers/index.ts`
- [Teacher timetable API](https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/teachers/%5Bname%5D/index.ts): `pages/api/teachers/[name]/index.ts`
- [Weeks API](https://github.com/thibaultminneboo/celcatweb/blob/main/pages/api/weeks/index.ts): `pages/api/weeks/index.ts`

### Data access

- [Prisma client](https://github.com/thibaultminneboo/celcatweb/blob/main/src/lib/prisma.ts): `src/lib/prisma.ts`
- [Timetable database](https://github.com/thibaultminneboo/celcatweb/blob/main/prisma/schema.prisma): `prisma/schema.prisma`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens
- Visitor → Group timetable: browses
- Visitor → Module listing: browses
- Visitor → Teacher listing: browses
- App layout → Navigation bar: renders (evidence: `app/layout.tsx`)
- Group timetable → Group timetable API: fetches (evidence: `app/groups/page.tsx`)
- Group timetable → Group selector: renders (evidence: `app/groups/page.tsx`)
- Group timetable → Week selector: renders (evidence: `app/groups/page.tsx`)
- Group timetable → Day selector: renders (evidence: `app/groups/page.tsx`)
- Group timetable → Course collection: renders (evidence: `app/groups/page.tsx`)
- Group timetable → Pagination: renders (evidence: `app/groups/page.tsx`)
- Group timetable → Loading indicator: renders (evidence: `app/groups/page.tsx`)
- Module listing → Module listing API: fetches (evidence: `app/modules/page.tsx`)
- Module listing → Module result: renders (evidence: `app/modules/page.tsx`)
- Module listing → Pagination: renders (evidence: `app/modules/page.tsx`)
- Module listing → Loading indicator: renders (evidence: `app/modules/page.tsx`)
- Module listing → Empty results: renders (evidence: `app/modules/page.tsx`)
- Module timetable → Module timetable API: fetches (evidence: `app/modules/[name]/page.tsx`)
- Module timetable → Week selector: renders (evidence: `app/modules/[name]/page.tsx`)
- Module timetable → Day selector: renders (evidence: `app/modules/[name]/page.tsx`)
- Module timetable → Course collection: renders (evidence: `app/modules/[name]/page.tsx`)
- Module timetable → Pagination: renders (evidence: `app/modules/[name]/page.tsx`)
- Module timetable → Loading indicator: renders (evidence: `app/modules/[name]/page.tsx`)
- Teacher listing → Teacher listing API: fetches (evidence: `app/teachers/page.tsx`)
- Teacher listing → Teacher result: renders (evidence: `app/teachers/page.tsx`)
- Teacher listing → Pagination: renders (evidence: `app/teachers/page.tsx`)
- Teacher listing → Loading indicator: renders (evidence: `app/teachers/page.tsx`)
- Teacher timetable → Teacher timetable API: fetches (evidence: `app/teachers/[name]/page.tsx`)
- Teacher timetable → Week selector: renders (evidence: `app/teachers/[name]/page.tsx`)
- Teacher timetable → Day selector: renders (evidence: `app/teachers/[name]/page.tsx`)
- Teacher timetable → Course collection: renders (evidence: `app/teachers/[name]/page.tsx`)
- Teacher timetable → Pagination: renders (evidence: `app/teachers/[name]/page.tsx`)
- Teacher timetable → Loading indicator: renders (evidence: `app/teachers/[name]/page.tsx`)
- Week selector → Weeks API: fetches (evidence: `components/WeekSelect.tsx`)
- Course collection → Course card: renders (evidence: `components/Courses.tsx`)
- Course collection → Empty results: renders (evidence: `components/Courses.tsx`)
- Group listing API → Prisma client: uses (evidence: `pages/api/groups/index.ts`)
- Group timetable API → Prisma client: uses (evidence: `pages/api/groups/[name]/index.ts`)
- Module listing API → Prisma client: uses (evidence: `pages/api/modules/index.ts`)
- Module timetable API → Prisma client: uses (evidence: `pages/api/modules/[name]/index.ts`)
- Teacher listing API → Prisma client: uses (evidence: `pages/api/teachers/index.ts`)
- Teacher timetable API → Prisma client: uses (evidence: `pages/api/teachers/[name]/index.ts`)
- Weeks API → Prisma client: uses (evidence: `pages/api/weeks/index.ts`)
