# moamentorky8/eclub-project architecture

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

- Interactive diagram: https://gitdiagram.com/moamentorky8/eclub-project
- Repository: https://github.com/moamentorky8/eclub-project

## Overview

E club is a student-club website for exploring activities and club information, then acting on that interest through recommendations or registration. The principal flow is visitor → routed page → catalog-backed discovery or recommendation → event details or registration; contact and gallery are separate capabilities. Registration and contact only validate inputs, and the README says authentication/database setup is pending. Edges are limited to relationships shown in excerpts, the SOURCE INDEX, or README; unsampled route implementations are represented without guessed internal calls.

Main entry points: [`src/lib/data.ts`](https://github.com/moamentorky8/eclub-project/blob/main/src/lib/data.ts) (Club catalog), [`src/routes/recommendations.tsx`](https://github.com/moamentorky8/eclub-project/blob/main/src/routes/recommendations.tsx) (Recommendation form), [`src/routes/register.tsx`](https://github.com/moamentorky8/eclub-project/blob/main/src/routes/register.tsx) (Registration form), [`src/routes/contact.tsx`](https://github.com/moamentorky8/eclub-project/blob/main/src/routes/contact.tsx) (Contact form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Site and routing"]
  node_router["Router<br/>[router.tsx]"]
  node_route_tree["Route registry<br/>[routeTree.gen.ts]"]
  node_root["Root route<br/>[__root.tsx]"]
  node_site_layout["Site layout<br/>[SiteLayout.tsx]"]
end

subgraph group_discovery["Club discovery"]
  node_home["Home page<br/>[index.tsx]"]
  node_event_list["Event listing<br/>[events.index.tsx]"]
  node_event_detail["Event details"]
  node_club_pages["Club pages"]
  node_gallery["Gallery filtering<br/>[gallery.tsx]"]
  node_catalog["Club catalog<br/>[data.ts]"]
  node_event_card["Event card<br/>[EventCard.tsx]"]
end

subgraph group_engagement["Recommendations and forms"]
  node_recommendation_page["Recommendation form"]
  node_recommendation_engine["Recommendation engine<br/>[recommendations.ts]"]
  node_registration["Registration form<br/>[register.tsx]"]
  node_contact["Contact form<br/>[contact.tsx]"]
  node_validation["Input validation<br/>[validation.ts]"]
  node_input_schemas["Input schemas<br/>[input.ts]"]
end

subgraph group_runtime["Shared runtime"]
  node_page_header["Page header<br/>[PageHeader.tsx]"]
  node_seo["SEO metadata<br/>[seo.ts]"]
  node_error_page["Error page<br/>[error-page.ts]"]
  node_preview_storage["Preview auth storage"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens pages"| node_router
node_router -->|"uses routes"| node_route_tree
node_route_tree -->|"registers route"| node_root
node_root -->|"renders layout"| node_site_layout
node_home -->|"reads catalog"| node_catalog
node_home -->|"renders events"| node_event_card
node_event_card -->|"formats event"| node_catalog
node_event_detail -->|"reads event"| node_catalog
node_recommendation_page -->|"requests matches"| node_recommendation_engine
node_recommendation_engine -->|"scores activities"| node_catalog
node_recommendation_engine -->|"validates text"| node_input_schemas
node_registration -->|"validates details"| node_validation
node_contact -->|"validates details"| node_validation
node_contact -->|"renders header"| node_page_header
node_registration -->|"renders header"| node_page_header
node_recommendation_page -->|"renders header"| node_page_header
node_contact -->|"sets metadata"| node_seo
node_registration -->|"sets metadata"| node_seo
node_recommendation_page -->|"sets metadata"| node_seo
node_root -.->|"handles errors"| node_error_page

click node_router "https://github.com/moamentorky8/eclub-project/blob/main/src/router.tsx"
click node_route_tree "https://github.com/moamentorky8/eclub-project/blob/main/src/routeTree.gen.ts"
click node_root "https://github.com/moamentorky8/eclub-project/blob/main/src/routes/__root.tsx"
click node_site_layout "https://github.com/moamentorky8/eclub-project/blob/main/src/components/site/SiteLayout.tsx"
click node_home "https://github.com/moamentorky8/eclub-project/blob/main/src/routes/index.tsx"
click node_event_list "https://github.com/moamentorky8/eclub-project/blob/main/src/routes/events.index.tsx"
click node_event_detail "https://github.com/moamentorky8/eclub-project/blob/main/src/routes/events.%24eventId.tsx"
click node_club_pages "https://github.com/moamentorky8/eclub-project/tree/main/src/routes"
click node_gallery "https://github.com/moamentorky8/eclub-project/blob/main/src/routes/gallery.tsx"
click node_catalog "https://github.com/moamentorky8/eclub-project/blob/main/src/lib/data.ts"
click node_event_card "https://github.com/moamentorky8/eclub-project/blob/main/src/components/site/EventCard.tsx"
click node_recommendation_page "https://github.com/moamentorky8/eclub-project/blob/main/src/routes/recommendations.tsx"
click node_recommendation_engine "https://github.com/moamentorky8/eclub-project/blob/main/src/lib/recommendations.ts"
click node_registration "https://github.com/moamentorky8/eclub-project/blob/main/src/routes/register.tsx"
click node_contact "https://github.com/moamentorky8/eclub-project/blob/main/src/routes/contact.tsx"
click node_validation "https://github.com/moamentorky8/eclub-project/blob/main/src/lib/validation.ts"
click node_input_schemas "https://github.com/moamentorky8/eclub-project/blob/main/src/lib/input.ts"
click node_page_header "https://github.com/moamentorky8/eclub-project/blob/main/src/components/site/PageHeader.tsx"
click node_seo "https://github.com/moamentorky8/eclub-project/blob/main/src/lib/seo.ts"
click node_error_page "https://github.com/moamentorky8/eclub-project/blob/main/src/lib/error-page.ts"
click node_preview_storage "https://github.com/moamentorky8/eclub-project/blob/main/src/integrations/supabase/previewAuthStorage.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_router,node_route_tree,node_root,node_site_layout toneBlue
class node_home,node_event_list,node_event_detail,node_club_pages,node_gallery,node_catalog,node_event_card toneAmber
class node_recommendation_page,node_recommendation_engine,node_registration,node_contact,node_validation,node_input_schemas toneMint
class node_page_header,node_seo,node_error_page,node_preview_storage toneRose
class node_visitor toneIndigo
```

## Components

### Site and routing

- [Router](https://github.com/moamentorky8/eclub-project/blob/main/src/router.tsx): `src/router.tsx`
- [Route registry](https://github.com/moamentorky8/eclub-project/blob/main/src/routeTree.gen.ts): `src/routeTree.gen.ts`
- [Root route](https://github.com/moamentorky8/eclub-project/blob/main/src/routes/__root.tsx): `src/routes/__root.tsx`
- [Site layout](https://github.com/moamentorky8/eclub-project/blob/main/src/components/site/SiteLayout.tsx): `src/components/site/SiteLayout.tsx`

### Club discovery

- [Home page](https://github.com/moamentorky8/eclub-project/blob/main/src/routes/index.tsx): `src/routes/index.tsx`
- [Event listing](https://github.com/moamentorky8/eclub-project/blob/main/src/routes/events.index.tsx): `src/routes/events.index.tsx`
- [Event details](https://github.com/moamentorky8/eclub-project/blob/main/src/routes/events.%24eventId.tsx): `src/routes/events.$eventId.tsx`
- [Club pages](https://github.com/moamentorky8/eclub-project/tree/main/src/routes): `src/routes`
- [Gallery filtering](https://github.com/moamentorky8/eclub-project/blob/main/src/routes/gallery.tsx): `src/routes/gallery.tsx`
- [Club catalog](https://github.com/moamentorky8/eclub-project/blob/main/src/lib/data.ts): `src/lib/data.ts`
- [Event card](https://github.com/moamentorky8/eclub-project/blob/main/src/components/site/EventCard.tsx): `src/components/site/EventCard.tsx`

### Recommendations and forms

- [Recommendation form](https://github.com/moamentorky8/eclub-project/blob/main/src/routes/recommendations.tsx): `src/routes/recommendations.tsx`
- [Recommendation engine](https://github.com/moamentorky8/eclub-project/blob/main/src/lib/recommendations.ts): `src/lib/recommendations.ts`
- [Registration form](https://github.com/moamentorky8/eclub-project/blob/main/src/routes/register.tsx): `src/routes/register.tsx`
- [Contact form](https://github.com/moamentorky8/eclub-project/blob/main/src/routes/contact.tsx): `src/routes/contact.tsx`
- [Input validation](https://github.com/moamentorky8/eclub-project/blob/main/src/lib/validation.ts): `src/lib/validation.ts`
- [Input schemas](https://github.com/moamentorky8/eclub-project/blob/main/src/lib/input.ts): `src/lib/input.ts`

### Shared runtime

- [Page header](https://github.com/moamentorky8/eclub-project/blob/main/src/components/site/PageHeader.tsx): `src/components/site/PageHeader.tsx`
- [SEO metadata](https://github.com/moamentorky8/eclub-project/blob/main/src/lib/seo.ts): `src/lib/seo.ts`
- [Error page](https://github.com/moamentorky8/eclub-project/blob/main/src/lib/error-page.ts): `src/lib/error-page.ts`
- [Preview auth storage](https://github.com/moamentorky8/eclub-project/blob/main/src/integrations/supabase/previewAuthStorage.ts): `src/integrations/supabase/previewAuthStorage.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Router: opens pages
- Router → Route registry: uses routes (evidence: `src/router.tsx`)
- Route registry → Root route: registers route (evidence: `src/routeTree.gen.ts`)
- Root route → Site layout: renders layout (evidence: `src/routes/__root.tsx`)
- Home page → Club catalog: reads catalog (evidence: `src/routes/index.tsx`)
- Home page → Event card: renders events (evidence: `src/routes/index.tsx`)
- Event card → Club catalog: formats event (evidence: `src/components/site/EventCard.tsx`)
- Event details → Club catalog: reads event (evidence: `src/routes/events.$eventId.tsx`)
- Recommendation form → Recommendation engine: requests matches (evidence: `src/routes/recommendations.tsx`)
- Recommendation engine → Club catalog: scores activities (evidence: `src/lib/recommendations.ts`)
- Recommendation engine → Input schemas: validates text (evidence: `src/lib/recommendations.ts`)
- Registration form → Input validation: validates details (evidence: `src/routes/register.tsx`)
- Contact form → Input validation: validates details (evidence: `src/routes/contact.tsx`)
- Contact form → Page header: renders header (evidence: `src/routes/contact.tsx`)
- Registration form → Page header: renders header (evidence: `src/routes/register.tsx`)
- Recommendation form → Page header: renders header (evidence: `src/routes/recommendations.tsx`)
- Contact form → SEO metadata: sets metadata (evidence: `src/routes/contact.tsx`)
- Registration form → SEO metadata: sets metadata (evidence: `src/routes/register.tsx`)
- Recommendation form → SEO metadata: sets metadata (evidence: `src/routes/recommendations.tsx`)
- Root route → Error page: handles errors
