# antojerrin/workify architecture

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

- Interactive diagram: https://gitdiagram.com/antojerrin/workify
- Repository: https://github.com/antojerrin/workify

## Overview

WoRkIFy is a workshop-hosting platform. Users browse workshops, register, and manage registrations and profile details; workshop attendees can also request LinkedIn reviews. Hosts and administrators manage workshops, meeting links, registrations, and reviews. The graph reflects the frontend routes, shared state, API modules, Supabase integration, and the documented review-function invocation. The README is brief, and the review function and database schema were not excerpted, so their internal behavior and relationships are not expanded.

Main entry points: [`frontend/src/App.tsx`](https://github.com/antojerrin/workify/blob/main/frontend/src/App.tsx) (App routing), [`frontend/src/lib/supabase.ts`](https://github.com/antojerrin/workify/blob/main/frontend/src/lib/supabase.ts) (Supabase client), [`frontend/src/components/dashboard/DashboardPage.tsx`](https://github.com/antojerrin/workify/blob/main/frontend/src/components/dashboard/DashboardPage.tsx) (Attendee dashboard), [`frontend/src/api/reviews.ts`](https://github.com/antojerrin/workify/blob/main/frontend/src/api/reviews.ts) (Review API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_app["App routing<br/>[App.tsx]"]
  node_landing["Landing sections<br/>[LandingPage.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_context["Shared app state<br/>[WorkifyContext.tsx]"]
end

subgraph group_workshops["Workshop experience"]
  node_workshops_page["Workshop browsing<br/>[WorkshopsPage.tsx]"]
  node_workshop_detail["Workshop details"]
  node_host_modal["Host workshop"]
end

subgraph group_account["Account and review"]
  node_dashboard["Attendee dashboard<br/>[DashboardPage.tsx]"]
  node_profile["User profile<br/>[ProfilePage.tsx]"]
  node_profile_edit["Profile editor"]
  node_auth_modal["Authentication<br/>[AuthModal.tsx]"]
  node_review_modal["LinkedIn review"]
  node_admin["Admin console<br/>[AdminPage.tsx]"]
end

subgraph group_services["Platform services"]
  node_workshop_api["Workshop API<br/>[workshops.ts]"]
  node_registration_api["Registration queries<br/>[registrations.ts]"]
  node_profile_api["Profile queries<br/>[profile.ts]"]
  node_admin_api["Admin operations<br/>[admin.ts]"]
  node_links_api["Meeting links<br/>[links.ts]"]
  node_reviews_api["Review API<br/>[reviews.ts]"]
  node_supabase_client["Supabase client<br/>[supabase.ts]"]
  node_database[("Platform database")]
  node_review_function["Review edge function<br/>[index.ts]"]
end

node_visitor(("Visitor"))
node_supabase["Supabase"]

node_visitor -->|"opens"| node_app
node_app -->|"provides state"| node_context
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_workshops_page
node_app -->|"routes to"| node_workshop_detail
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_profile
node_app -->|"routes to"| node_admin
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_host_modal
node_app -->|"renders"| node_auth_modal
node_workshops_page -->|"opens"| node_workshop_detail
node_workshop_detail -->|"gets meeting links"| node_links_api
node_dashboard -->|"loads registrations"| node_registration_api
node_dashboard -->|"loads reviews"| node_reviews_api
node_dashboard -->|"gets meeting links"| node_links_api
node_dashboard -->|"opens review"| node_review_modal
node_profile -->|"renders editor"| node_profile_edit
node_profile -->|"loads registrations"| node_registration_api
node_profile -->|"loads reviews"| node_reviews_api
node_review_modal -->|"submits review"| node_reviews_api
node_admin -->|"manages workshops"| node_admin_api
node_context -->|"loads and registers"| node_workshop_api
node_context -->|"loads profile"| node_profile_api
node_context -->|"checks admin"| node_admin_api
node_workshop_api -->|"queries"| node_supabase_client
node_registration_api -->|"queries"| node_supabase_client
node_profile_api -->|"queries"| node_supabase_client
node_admin_api -->|"queries"| node_supabase_client
node_links_api -->|"queries"| node_supabase_client
node_reviews_api -->|"queries and invokes"| node_supabase_client
node_supabase_client -->|"connects"| node_supabase
node_supabase -.->|"stores platform data"| node_database
node_reviews_api -->|"invokes"| node_review_function

click node_app "https://github.com/antojerrin/workify/blob/main/frontend/src/App.tsx"
click node_landing "https://github.com/antojerrin/workify/blob/main/frontend/src/components/landing/LandingPage.tsx"
click node_navbar "https://github.com/antojerrin/workify/blob/main/frontend/src/components/layout/Navbar.tsx"
click node_workshops_page "https://github.com/antojerrin/workify/blob/main/frontend/src/components/workshops/WorkshopsPage.tsx"
click node_workshop_detail "https://github.com/antojerrin/workify/blob/main/frontend/src/components/workshops/WorkshopDetailPage.tsx"
click node_host_modal "https://github.com/antojerrin/workify/blob/main/frontend/src/components/workshops/HostWorkshopModal.tsx"
click node_dashboard "https://github.com/antojerrin/workify/blob/main/frontend/src/components/dashboard/DashboardPage.tsx"
click node_profile "https://github.com/antojerrin/workify/blob/main/frontend/src/components/profile/ProfilePage.tsx"
click node_profile_edit "https://github.com/antojerrin/workify/blob/main/frontend/src/components/profile/ProfileEditForm.tsx"
click node_auth_modal "https://github.com/antojerrin/workify/blob/main/frontend/src/components/auth/AuthModal.tsx"
click node_review_modal "https://github.com/antojerrin/workify/blob/main/frontend/src/components/reviews/LinkedInReviewModal.tsx"
click node_admin "https://github.com/antojerrin/workify/blob/main/frontend/src/components/admin/AdminPage.tsx"
click node_context "https://github.com/antojerrin/workify/blob/main/frontend/src/context/WorkifyContext.tsx"
click node_workshop_api "https://github.com/antojerrin/workify/blob/main/frontend/src/api/workshops.ts"
click node_registration_api "https://github.com/antojerrin/workify/blob/main/frontend/src/api/registrations.ts"
click node_profile_api "https://github.com/antojerrin/workify/blob/main/frontend/src/api/profile.ts"
click node_admin_api "https://github.com/antojerrin/workify/blob/main/frontend/src/api/admin.ts"
click node_links_api "https://github.com/antojerrin/workify/blob/main/frontend/src/api/links.ts"
click node_reviews_api "https://github.com/antojerrin/workify/blob/main/frontend/src/api/reviews.ts"
click node_supabase_client "https://github.com/antojerrin/workify/blob/main/frontend/src/lib/supabase.ts"
click node_database "https://github.com/antojerrin/workify/blob/main/backend/supabase/migrations/20261002000000_full_schema.sql"
click node_review_function "https://github.com/antojerrin/workify/blob/main/backend/supabase/functions/review-linkedin/index.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_app,node_landing,node_navbar,node_context toneBlue
class node_workshops_page,node_workshop_detail,node_host_modal toneAmber
class node_dashboard,node_profile,node_profile_edit,node_auth_modal,node_review_modal,node_admin toneMint
class node_workshop_api,node_registration_api,node_profile_api,node_admin_api,node_links_api,node_reviews_api,node_supabase_client,node_database,node_review_function toneRose
class node_visitor,node_supabase toneIndigo
```

## Components

### User experience

- [App routing](https://github.com/antojerrin/workify/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Landing sections](https://github.com/antojerrin/workify/blob/main/frontend/src/components/landing/LandingPage.tsx): `frontend/src/components/landing/LandingPage.tsx`
- [Navigation](https://github.com/antojerrin/workify/blob/main/frontend/src/components/layout/Navbar.tsx): `frontend/src/components/layout/Navbar.tsx`
- [Shared app state](https://github.com/antojerrin/workify/blob/main/frontend/src/context/WorkifyContext.tsx): `frontend/src/context/WorkifyContext.tsx`

### Workshop experience

- [Workshop browsing](https://github.com/antojerrin/workify/blob/main/frontend/src/components/workshops/WorkshopsPage.tsx): `frontend/src/components/workshops/WorkshopsPage.tsx`
- [Workshop details](https://github.com/antojerrin/workify/blob/main/frontend/src/components/workshops/WorkshopDetailPage.tsx): `frontend/src/components/workshops/WorkshopDetailPage.tsx`
- [Host workshop](https://github.com/antojerrin/workify/blob/main/frontend/src/components/workshops/HostWorkshopModal.tsx): `frontend/src/components/workshops/HostWorkshopModal.tsx`

### Account and review

- [Attendee dashboard](https://github.com/antojerrin/workify/blob/main/frontend/src/components/dashboard/DashboardPage.tsx): `frontend/src/components/dashboard/DashboardPage.tsx`
- [User profile](https://github.com/antojerrin/workify/blob/main/frontend/src/components/profile/ProfilePage.tsx): `frontend/src/components/profile/ProfilePage.tsx`
- [Profile editor](https://github.com/antojerrin/workify/blob/main/frontend/src/components/profile/ProfileEditForm.tsx): `frontend/src/components/profile/ProfileEditForm.tsx`
- [Authentication](https://github.com/antojerrin/workify/blob/main/frontend/src/components/auth/AuthModal.tsx): `frontend/src/components/auth/AuthModal.tsx`
- [LinkedIn review](https://github.com/antojerrin/workify/blob/main/frontend/src/components/reviews/LinkedInReviewModal.tsx): `frontend/src/components/reviews/LinkedInReviewModal.tsx`
- [Admin console](https://github.com/antojerrin/workify/blob/main/frontend/src/components/admin/AdminPage.tsx): `frontend/src/components/admin/AdminPage.tsx`

### Platform services

- [Workshop API](https://github.com/antojerrin/workify/blob/main/frontend/src/api/workshops.ts): `frontend/src/api/workshops.ts`
- [Registration queries](https://github.com/antojerrin/workify/blob/main/frontend/src/api/registrations.ts): `frontend/src/api/registrations.ts`
- [Profile queries](https://github.com/antojerrin/workify/blob/main/frontend/src/api/profile.ts): `frontend/src/api/profile.ts`
- [Admin operations](https://github.com/antojerrin/workify/blob/main/frontend/src/api/admin.ts): `frontend/src/api/admin.ts`
- [Meeting links](https://github.com/antojerrin/workify/blob/main/frontend/src/api/links.ts): `frontend/src/api/links.ts`
- [Review API](https://github.com/antojerrin/workify/blob/main/frontend/src/api/reviews.ts): `frontend/src/api/reviews.ts`
- [Supabase client](https://github.com/antojerrin/workify/blob/main/frontend/src/lib/supabase.ts): `frontend/src/lib/supabase.ts`
- [Platform database](https://github.com/antojerrin/workify/blob/main/backend/supabase/migrations/20261002000000_full_schema.sql): `backend/supabase/migrations/20261002000000_full_schema.sql`
- [Review edge function](https://github.com/antojerrin/workify/blob/main/backend/supabase/functions/review-linkedin/index.ts): `backend/supabase/functions/review-linkedin/index.ts`

### Other components

- **Visitor**
- **Supabase**

## Connections

- Visitor → App routing: opens (evidence: `frontend/src/App.tsx`)
- App routing → Shared app state: provides state (evidence: `frontend/src/App.tsx`)
- App routing → Landing sections: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Workshop browsing: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Workshop details: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Attendee dashboard: routes to (evidence: `frontend/src/App.tsx`)
- App routing → User profile: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Admin console: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Navigation: renders (evidence: `frontend/src/App.tsx`)
- App routing → Host workshop: renders (evidence: `frontend/src/App.tsx`)
- App routing → Authentication: renders (evidence: `frontend/src/App.tsx`)
- Workshop browsing → Workshop details: opens (evidence: `frontend/src/components/workshops/WorkshopsPage.tsx`)
- Workshop details → Meeting links: gets meeting links (evidence: `frontend/src/components/workshops/WorkshopDetailPage.tsx`)
- Attendee dashboard → Registration queries: loads registrations (evidence: `frontend/src/components/dashboard/DashboardPage.tsx`)
- Attendee dashboard → Review API: loads reviews (evidence: `frontend/src/components/dashboard/DashboardPage.tsx`)
- Attendee dashboard → Meeting links: gets meeting links (evidence: `frontend/src/components/dashboard/DashboardPage.tsx`)
- Attendee dashboard → LinkedIn review: opens review (evidence: `frontend/src/components/dashboard/DashboardPage.tsx`)
- User profile → Profile editor: renders editor (evidence: `frontend/src/components/profile/ProfilePage.tsx`)
- User profile → Registration queries: loads registrations (evidence: `frontend/src/components/profile/ProfilePage.tsx`)
- User profile → Review API: loads reviews (evidence: `frontend/src/components/profile/ProfilePage.tsx`)
- LinkedIn review → Review API: submits review (evidence: `frontend/src/components/reviews/LinkedInReviewModal.tsx`)
- Admin console → Admin operations: manages workshops (evidence: `frontend/src/components/admin/AdminPage.tsx`)
- Shared app state → Workshop API: loads and registers (evidence: `frontend/src/context/WorkifyContext.tsx`)
- Shared app state → Profile queries: loads profile (evidence: `frontend/src/context/WorkifyContext.tsx`)
- Shared app state → Admin operations: checks admin (evidence: `frontend/src/context/WorkifyContext.tsx`)
- Workshop API → Supabase client: queries (evidence: `frontend/src/api/workshops.ts`)
- Registration queries → Supabase client: queries (evidence: `frontend/src/api/registrations.ts`)
- Profile queries → Supabase client: queries (evidence: `frontend/src/api/profile.ts`)
- Admin operations → Supabase client: queries (evidence: `frontend/src/api/admin.ts`)
- Meeting links → Supabase client: queries (evidence: `frontend/src/api/links.ts`)
- Review API → Supabase client: queries and invokes (evidence: `frontend/src/api/reviews.ts`)
- Supabase client → Supabase: connects (evidence: `frontend/src/lib/supabase.ts`)
- Supabase → Platform database: stores platform data
- Review API → Review edge function: invokes (evidence: `frontend/src/api/reviews.ts`)
