# manjunathmi/odu-learner-companion architecture

> Architecture diagram of the GitHub repository manjunathmi/odu-learner-companion, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/manjunathmi/odu-learner-companion
- Repository: https://github.com/manjunathmi/odu-learner-companion

## Overview

ODU Learner Companion is a collaborative learning-path platform. Learners discover paths, join a shared space, follow learning materials, track progress, and keep notes; creators can also create paths, while path managers handle memberships and invitations. Separate capabilities include profiles, feedback, a document library, and platform administration. The graph follows documented workflows and sampled/import-index relationships; many route handlers and feature implementations were not sampled, so their internal connections are left broad or omitted.

Main entry points: [`components/PathBoard.tsx`](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/PathBoard.tsx) (Path board), [`lib/supabase/server.ts`](https://github.com/manjunathmi/odu-learner-companion/blob/main/lib/supabase/server.ts) (Supabase clients), [`components/journey/JourneyDashboard.tsx`](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/journey/JourneyDashboard.tsx) (Learning journey), [`lib/api.ts`](https://github.com/manjunathmi/odu-learner-companion/blob/main/lib/api.ts) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Discover and learn"]
  node_explore["Path discovery<br/>[page.tsx]"]
  node_discovery_ui["Discovery experience"]
  node_path_card["Learning path card"]
  node_journey["Learning journey"]
end

subgraph group_paths["Learning spaces"]
  node_create_path["Path creation<br/>[CreatePathForm.tsx]"]
  node_path_page["Learning space<br/>[page.tsx]"]
  node_path_board["Path board<br/>[PathBoard.tsx]"]
  node_learning_content["Learning content"]
  node_path_share["Path sharing<br/>[PathShare.tsx]"]
  node_path_api["Path operations"]
  node_member_admin["Membership management<br/>[page.tsx]"]
  node_member_editor["Member editor<br/>[MemberEditor.tsx]"]
end

subgraph group_identity["Identity and account"]
  node_profile["Learner profile<br/>[page.tsx]"]
  node_profile_api["Profile service<br/>[route.ts]"]
  node_auth["Authentication<br/>[AuthForm.tsx]"]
  node_auth_callback["Auth callback<br/>[route.ts]"]
  node_api_client["API client<br/>[api.ts]"]
  node_supabase["Supabase clients<br/>[server.ts]"]
  node_database[("Application data<br/>[database.ts]")]
end

subgraph group_platform["Platform operations"]
  node_documents["Document library<br/>[Library.tsx]"]
  node_document_server["Document catalogue<br/>[server.ts]"]
  node_admin["Platform administration"]
  node_quota["Creator quota<br/>[creator-quota.ts]"]
end

node_learner(("Learner"))

node_learner -->|"discovers paths"| node_explore
node_explore -->|"renders"| node_discovery_ui
node_discovery_ui -->|"displays paths"| node_path_card
node_learner -->|"opens journey"| node_journey
node_journey -->|"offers creation"| node_create_path
node_learner -->|"joins space"| node_path_page
node_path_page -->|"renders"| node_path_board
node_path_board -->|"renders"| node_learning_content
node_path_board -->|"renders"| node_path_share
node_path_board -->|"fetches data"| node_api_client
node_api_client -->|"gets session"| node_supabase
node_learner -->|"manages members"| node_member_admin
node_member_admin -->|"renders"| node_member_editor
node_learner -->|"manages profile"| node_profile
node_profile -->|"calls API"| node_api_client
node_profile_api -->|"reads and writes"| node_supabase
node_learner -->|"signs in"| node_auth
node_auth -.->|"starts callback"| node_auth_callback
node_auth_callback -->|"verifies session"| node_supabase
node_supabase -->|"uses schema types"| node_database
node_learner -->|"reads resources"| node_documents
node_documents -->|"loads catalogue"| node_document_server
node_admin -.->|"manages visibility"| node_document_server
node_journey -->|"shows quota"| node_quota
node_learner -->|"tracks progress and notes"| node_path_api

click node_explore "https://github.com/manjunathmi/odu-learner-companion/blob/main/app/explore/page.tsx"
click node_discovery_ui "https://github.com/manjunathmi/odu-learner-companion/blob/main/components/discovery/DiscoveryExperience.tsx"
click node_path_card "https://github.com/manjunathmi/odu-learner-companion/blob/main/components/LearningPathCard.tsx"
click node_journey "https://github.com/manjunathmi/odu-learner-companion/blob/main/components/journey/JourneyDashboard.tsx"
click node_create_path "https://github.com/manjunathmi/odu-learner-companion/blob/main/components/CreatePathForm.tsx"
click node_path_page "https://github.com/manjunathmi/odu-learner-companion/blob/main/app/paths/%5BpathId%5D/page.tsx"
click node_path_board "https://github.com/manjunathmi/odu-learner-companion/blob/main/components/PathBoard.tsx"
click node_learning_content "https://github.com/manjunathmi/odu-learner-companion/blob/main/components/LearningContent.tsx"
click node_path_share "https://github.com/manjunathmi/odu-learner-companion/blob/main/components/PathShare.tsx"
click node_path_api "https://github.com/manjunathmi/odu-learner-companion/tree/main/app/api/paths"
click node_member_admin "https://github.com/manjunathmi/odu-learner-companion/blob/main/app/account/path-members/page.tsx"
click node_member_editor "https://github.com/manjunathmi/odu-learner-companion/blob/main/components/management/MemberEditor.tsx"
click node_profile "https://github.com/manjunathmi/odu-learner-companion/blob/main/app/profile/page.tsx"
click node_profile_api "https://github.com/manjunathmi/odu-learner-companion/blob/main/app/api/profile/route.ts"
click node_auth "https://github.com/manjunathmi/odu-learner-companion/blob/main/components/AuthForm.tsx"
click node_auth_callback "https://github.com/manjunathmi/odu-learner-companion/blob/main/app/auth/callback/route.ts"
click node_api_client "https://github.com/manjunathmi/odu-learner-companion/blob/main/lib/api.ts"
click node_supabase "https://github.com/manjunathmi/odu-learner-companion/blob/main/lib/supabase/server.ts"
click node_database "https://github.com/manjunathmi/odu-learner-companion/blob/main/types/database.ts"
click node_documents "https://github.com/manjunathmi/odu-learner-companion/blob/main/components/documents/Library.tsx"
click node_document_server "https://github.com/manjunathmi/odu-learner-companion/blob/main/lib/documents/server.ts"
click node_admin "https://github.com/manjunathmi/odu-learner-companion/blob/main/components/admin/PlatformWorkspace.tsx"
click node_quota "https://github.com/manjunathmi/odu-learner-companion/blob/main/lib/creator-quota.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_explore,node_discovery_ui,node_path_card,node_journey toneBlue
class node_create_path,node_path_page,node_path_board,node_learning_content,node_path_share,node_path_api,node_member_admin,node_member_editor toneAmber
class node_profile,node_profile_api,node_auth,node_auth_callback,node_api_client,node_supabase,node_database toneMint
class node_documents,node_document_server,node_admin,node_quota toneRose
class node_learner toneIndigo
```

## Components

### Discover and learn

- [Path discovery](https://github.com/manjunathmi/odu-learner-companion/blob/main/app/explore/page.tsx): `app/explore/page.tsx`
- [Discovery experience](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/discovery/DiscoveryExperience.tsx): `components/discovery/DiscoveryExperience.tsx`
- [Learning path card](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/LearningPathCard.tsx): `components/LearningPathCard.tsx`
- [Learning journey](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/journey/JourneyDashboard.tsx): `components/journey/JourneyDashboard.tsx`

### Learning spaces

- [Path creation](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/CreatePathForm.tsx): `components/CreatePathForm.tsx`
- [Learning space](https://github.com/manjunathmi/odu-learner-companion/blob/main/app/paths/%5BpathId%5D/page.tsx): `app/paths/[pathId]/page.tsx`
- [Path board](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/PathBoard.tsx): `components/PathBoard.tsx`
- [Learning content](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/LearningContent.tsx): `components/LearningContent.tsx`
- [Path sharing](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/PathShare.tsx): `components/PathShare.tsx`
- [Path operations](https://github.com/manjunathmi/odu-learner-companion/tree/main/app/api/paths): `app/api/paths`
- [Membership management](https://github.com/manjunathmi/odu-learner-companion/blob/main/app/account/path-members/page.tsx): `app/account/path-members/page.tsx`
- [Member editor](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/management/MemberEditor.tsx): `components/management/MemberEditor.tsx`

### Identity and account

- [Learner profile](https://github.com/manjunathmi/odu-learner-companion/blob/main/app/profile/page.tsx): `app/profile/page.tsx`
- [Profile service](https://github.com/manjunathmi/odu-learner-companion/blob/main/app/api/profile/route.ts): `app/api/profile/route.ts`
- [Authentication](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/AuthForm.tsx): `components/AuthForm.tsx`
- [Auth callback](https://github.com/manjunathmi/odu-learner-companion/blob/main/app/auth/callback/route.ts): `app/auth/callback/route.ts`
- [API client](https://github.com/manjunathmi/odu-learner-companion/blob/main/lib/api.ts): `lib/api.ts`
- [Supabase clients](https://github.com/manjunathmi/odu-learner-companion/blob/main/lib/supabase/server.ts): `lib/supabase/server.ts`
- [Application data](https://github.com/manjunathmi/odu-learner-companion/blob/main/types/database.ts): `types/database.ts`

### Platform operations

- [Document library](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/documents/Library.tsx): `components/documents/Library.tsx`
- [Document catalogue](https://github.com/manjunathmi/odu-learner-companion/blob/main/lib/documents/server.ts): `lib/documents/server.ts`
- [Platform administration](https://github.com/manjunathmi/odu-learner-companion/blob/main/components/admin/PlatformWorkspace.tsx): `components/admin/PlatformWorkspace.tsx`
- [Creator quota](https://github.com/manjunathmi/odu-learner-companion/blob/main/lib/creator-quota.ts): `lib/creator-quota.ts`

### Other components

- **Learner**

## Connections

- Learner → Path discovery: discovers paths (evidence: `README.md`)
- Path discovery → Discovery experience: renders (evidence: `app/explore/page.tsx`)
- Discovery experience → Learning path card: displays paths (evidence: `components/discovery/DiscoveryExperience.tsx`)
- Learner → Learning journey: opens journey (evidence: `README.md`)
- Learning journey → Path creation: offers creation (evidence: `components/journey/JourneyDashboard.tsx`)
- Learner → Learning space: joins space (evidence: `README.md`)
- Learning space → Path board: renders (evidence: `app/paths/[pathId]/page.tsx`)
- Path board → Learning content: renders (evidence: `components/PathBoard.tsx`)
- Path board → Path sharing: renders (evidence: `components/PathBoard.tsx`)
- Path board → API client: fetches data (evidence: `components/PathBoard.tsx`)
- API client → Supabase clients: gets session (evidence: `lib/api.ts`)
- Learner → Membership management: manages members (evidence: `README.md`)
- Membership management → Member editor: renders (evidence: `app/account/path-members/page.tsx`)
- Learner → Learner profile: manages profile (evidence: `README.md`)
- Learner profile → API client: calls API (evidence: `app/profile/page.tsx`)
- Profile service → Supabase clients: reads and writes (evidence: `app/api/profile/route.ts`)
- Learner → Authentication: signs in (evidence: `README.md`)
- Authentication → Auth callback: starts callback
- Auth callback → Supabase clients: verifies session (evidence: `app/auth/callback/route.ts`)
- Supabase clients → Application data: uses schema types (evidence: `lib/supabase/server.ts`)
- Learner → Document library: reads resources (evidence: `README.md`)
- Document library → Document catalogue: loads catalogue (evidence: `components/documents/Library.tsx`)
- Platform administration → Document catalogue: manages visibility
- Learning journey → Creator quota: shows quota (evidence: `components/journey/JourneyDashboard.tsx`)
- Learner → Path operations: tracks progress and notes (evidence: `README.md`)
