# ipelino/rwanda-academic-hub architecture

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

- Interactive diagram: https://gitdiagram.com/ipelino/rwanda-academic-hub
- Repository: https://github.com/ipelino/rwanda-academic-hub

## Overview

Rwanda Academic Hub is a proposed shared discovery and event-management platform for Rwanda’s academic community. Its visible runtime is organized around discovery, event details and RSVP, staged event creation, authentication, and user or organizer dashboards. The README supports the cross-institution discovery goal and identifies organizers, but no source excerpts or detailed feature documentation were provided; therefore, relationships among implementation modules and the database are omitted rather than inferred.

Main entry points: [`assets/js/page-index.js`](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-index.js) (Event discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Event discovery"]
  node_discovery_page["Event discovery<br/>[page-index.js]"]
end

subgraph group_events["Event workflows"]
  node_event_detail["Event details"]
  node_attendee_rsvp["Attendee RSVP"]
  node_create_step1["Event basics"]
  node_create_step2["Event media"]
  node_create_step3["Event publishing"]
  node_organizer_dashboard["Organizer dashboard"]
end

subgraph group_accounts["Identity and profiles"]
  node_auth["Authentication<br/>[auth.js]"]
  node_user_dashboard["User dashboard"]
  node_university_profile["University profile"]
end

subgraph group_data["Data layer"]
  node_supabase_client["Supabase client<br/>[supabase-client.js]"]
  node_events_api["Events API<br/>[events-api.js]"]
  node_profile_trigger["Profile trigger"]
  node_count_triggers["Count triggers"]
  node_view_count_rpc["View count RPC"]
  node_rls_policies["Access policies"]
end

node_community(("Academic community"))

node_community -->|"discovers events"| node_discovery_page

click node_discovery_page "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-index.js"
click node_event_detail "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-event-detail.js"
click node_attendee_rsvp "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-attendee-rsvp.js"
click node_create_step1 "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-create-step1.js"
click node_create_step2 "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-create-step2.js"
click node_create_step3 "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-create-step3.js"
click node_organizer_dashboard "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-organizer-dashboard.js"
click node_auth "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/auth.js"
click node_user_dashboard "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-user-dashboard.js"
click node_university_profile "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-university-profile.js"
click node_supabase_client "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/supabase-client.js"
click node_events_api "https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/events-api.js"
click node_profile_trigger "https://github.com/ipelino/rwanda-academic-hub/blob/main/supabase/migrations/001_profile_trigger.sql"
click node_count_triggers "https://github.com/ipelino/rwanda-academic-hub/blob/main/supabase/migrations/002_counts_triggers.sql"
click node_view_count_rpc "https://github.com/ipelino/rwanda-academic-hub/blob/main/supabase/migrations/003_view_count_rpc.sql"
click node_rls_policies "https://github.com/ipelino/rwanda-academic-hub/blob/main/supabase/migrations/004_rls_policies.sql"

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_discovery_page toneBlue
class node_event_detail,node_attendee_rsvp,node_create_step1,node_create_step2,node_create_step3,node_organizer_dashboard toneAmber
class node_auth,node_user_dashboard,node_university_profile toneMint
class node_supabase_client,node_events_api,node_profile_trigger,node_count_triggers,node_view_count_rpc,node_rls_policies toneRose
class node_community toneIndigo
```

## Components

### Event discovery

- [Event discovery](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-index.js): `assets/js/page-index.js`

### Event workflows

- [Event details](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-event-detail.js): `assets/js/page-event-detail.js`
- [Attendee RSVP](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-attendee-rsvp.js): `assets/js/page-attendee-rsvp.js`
- [Event basics](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-create-step1.js): `assets/js/page-create-step1.js`
- [Event media](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-create-step2.js): `assets/js/page-create-step2.js`
- [Event publishing](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-create-step3.js): `assets/js/page-create-step3.js`
- [Organizer dashboard](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-organizer-dashboard.js): `assets/js/page-organizer-dashboard.js`

### Identity and profiles

- [Authentication](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/auth.js): `assets/js/auth.js`
- [User dashboard](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-user-dashboard.js): `assets/js/page-user-dashboard.js`
- [University profile](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/page-university-profile.js): `assets/js/page-university-profile.js`

### Data layer

- [Supabase client](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/supabase-client.js): `assets/js/supabase-client.js`
- [Events API](https://github.com/ipelino/rwanda-academic-hub/blob/main/assets/js/events-api.js): `assets/js/events-api.js`
- [Profile trigger](https://github.com/ipelino/rwanda-academic-hub/blob/main/supabase/migrations/001_profile_trigger.sql): `supabase/migrations/001_profile_trigger.sql`
- [Count triggers](https://github.com/ipelino/rwanda-academic-hub/blob/main/supabase/migrations/002_counts_triggers.sql): `supabase/migrations/002_counts_triggers.sql`
- [View count RPC](https://github.com/ipelino/rwanda-academic-hub/blob/main/supabase/migrations/003_view_count_rpc.sql): `supabase/migrations/003_view_count_rpc.sql`
- [Access policies](https://github.com/ipelino/rwanda-academic-hub/blob/main/supabase/migrations/004_rls_policies.sql): `supabase/migrations/004_rls_policies.sql`

### Other components

- **Academic community**

## Connections

- Academic community → Event discovery: discovers events
