# abinav-kishore/arc architecture

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

- Interactive diagram: https://gitdiagram.com/abinav-kishore/arc
- Repository: https://github.com/abinav-kishore/arc

## Overview

#### Purpose and Runtime
A universal student-profile/dashboard client built with Expo and React Native, targeting Android, iOS, and web. It aggregates academic/professional profile information, coding-platform statistics, projects, skills, resumes, and update notifications. Startup and platform packaging are defined by `package.json`, `app.json`, and `eas.json`.

#### Application Entry and Routing
Expo Router provides file-based navigation from the `app/` directory. The root route shell is `app/_layout.tsx`; `app/index.tsx` is the default landing route. Feature routes include `app/profile.tsx`, `app/student.tsx`, `app/resume.tsx`, and individual platform routes such as `app/github.tsx`, `app/leetcode.tsx`, and `app/codeforces.tsx`. Authentication navigation is isolated under `app/login.tsx` and `app/auth/callback.tsx`.

#### Screen-to-Component Boundary
Route files appear to be lightweight adapters over reusable JavaScript screen components in `src/components/`. The primary dashboard/profile surfaces are `src/components/StudentDashboardPage.js`, `src/components/StudentProfilePage.js`, and `src/components/ProfileCard.js`. This separates URL/navigation concerns from feature rendering and permits shared profile views across routes.

#### Identity, Student State, and Backend Access
Shared application state is organized through React contexts: student/domain data in `src/lib/student-context.js`, authorization behavior in `src/lib/permissions-context.js`, and update/alert state in `src/lib/notifications-context.js`. `src/lib/supabase.js` is the backend integration boundary, likely supporting authentication and persisted student data; the callback route at `app/auth/callback.tsx` closes the auth redirect flow. Field-level permission schema support is represented by `sql/create_field_permissions.sql`.

#### Profile Content and Controlled Updates
Profile data is rendered as structured sections: skills via `src/components/SkillsList.js`, projects via `src/components/ProjectsList.js`, and resume presentation via `src/components/ResumeCard.js` and `src/components/ResumePage.js`. Permission-aware change tracking is surfaced through `src/components/FieldHistoryModal.js`, `src/components/PendingUpdatesList.js`, and `src/components/UpdateAlertBanner.js`. The control flow is likely: backend/context loads student fields and permissions, views render allowed data, and pending/history UI exposes managed edits.

#### Coding and External Profile Integrations
Dedicated feature components model external developer-profile sources: `src/components/GitHubPage.js`, `src/components/LeetCodePage.js`, `src/components/CodeforcesPage.js`, `src/components/CodeChefPage.js`, and `src/components/SkillrackPage.js`. `src/components/CodingStats.js` is the likely aggregation/display layer for coding metrics. Corresponding route entry points, including `app/github.tsx`, `app/leetcode.tsx`, and `app/skillrack.tsx`, keep each integration independently navigable. LinkedIn is similarly represented by `app/linkedin.tsx` and `src/components/LinkedInPage.js`.

#### Shared Presentation
Cross-cutting UI includes `src/components/HeaderBar.js`, `src/components/Loader.js`, and `src/components/EmptyState.js`. Theming is centralized in `src/lib/theme.js` and `constants/theme.ts`, with platform-aware color hooks under `hooks/use-color-scheme.ts` and `hooks/use-theme-color.ts`. This is a client-side presentation boundary; Supabase is the identifiable external service, while coding platforms are represented as external profile/stat domains.

Main entry points: [`app/profile.tsx`](https://github.com/abinav-kishore/arc/blob/main/app/profile.tsx) (Profile routes), [`src/components/StudentProfilePage.js`](https://github.com/abinav-kishore/arc/blob/main/src/components/StudentProfilePage.js) (Student profile), [`app/_layout.tsx`](https://github.com/abinav-kishore/arc/blob/main/app/_layout.tsx) (Root route shell), [`src/components/StudentDashboardPage.js`](https://github.com/abinav-kishore/arc/blob/main/src/components/StudentDashboardPage.js) (Student dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Expo routing"]
  node_router["Root route shell<br/>Expo Router<br/>[_layout.tsx]"]
  node_landing["Landing route<br/>[index.tsx]"]
  node_profile_routes["Profile routes<br/>route adapters<br/>[profile.tsx]"]
  node_auth_routes["Auth routes<br/>route flow<br/>[callback.tsx]"]
end

subgraph group_state["State and backend"]
  node_student_state["Student context<br/>React context<br/>[student-context.js]"]
  node_permissions["Permissions context<br/>React context"]
  node_notifications["Notifications context<br/>React context"]
  node_supabase[("Supabase client<br/>backend boundary<br/>[supabase.js]")]
  node_field_schema["Field permission schema<br/>SQL schema"]
end

subgraph group_profile["Profile features"]
  node_dashboard["Student dashboard<br/>screen component"]
  node_profile_page["Student profile<br/>screen component"]
  node_profile_content["Profile content<br/>section components<br/>[SkillsList.js]"]
  node_controlled_updates["Controlled updates UI<br/>update components"]
end

subgraph group_integrations["External profiles"]
  node_coding_stats["Coding statistics<br/>metrics component<br/>[CodingStats.js]"]
  node_coding_profiles["Coding profile screens<br/>integration components<br/>[GitHubPage.js]"]
  node_linkedin["LinkedIn profile<br/>integration screen<br/>[LinkedInPage.js]"]
end

node_expo{{"Expo runtime<br/>mobile/web client<br/>[package.json]"}}
node_shared_ui["Shared presentation<br/>UI primitives<br/>[HeaderBar.js]"]

node_expo -->|"runs"| node_router
node_router -->|"default route"| node_landing
node_router -->|"navigates"| node_profile_routes
node_router -->|"navigates"| node_auth_routes
node_profile_routes -->|"adapts to"| node_dashboard
node_profile_routes -->|"adapts to"| node_profile_page
node_auth_routes -->|"completes auth"| node_supabase
node_student_state -->|"loads and persists"| node_supabase
node_permissions -->|"uses field policy data"| node_supabase
node_field_schema -->|"defines field permissions"| node_permissions
node_dashboard -->|"reads"| node_student_state
node_profile_page -->|"reads"| node_student_state
node_profile_page -->|"enforces"| node_permissions
node_profile_page -->|"renders"| node_profile_content
node_controlled_updates -->|"displays"| node_notifications
node_controlled_updates -->|"reflects managed edits"| node_permissions
node_dashboard -->|"shows"| node_coding_stats
node_coding_stats -->|"summarizes"| node_coding_profiles
node_profile_routes -->|"opens platform routes"| node_coding_profiles
node_profile_routes -->|"opens route"| node_linkedin
node_dashboard -->|"uses"| node_shared_ui
node_profile_page -->|"uses"| node_shared_ui

click node_expo "https://github.com/abinav-kishore/arc/blob/main/package.json"
click node_router "https://github.com/abinav-kishore/arc/blob/main/app/_layout.tsx"
click node_landing "https://github.com/abinav-kishore/arc/blob/main/app/index.tsx"
click node_profile_routes "https://github.com/abinav-kishore/arc/blob/main/app/profile.tsx"
click node_auth_routes "https://github.com/abinav-kishore/arc/blob/main/app/auth/callback.tsx"
click node_student_state "https://github.com/abinav-kishore/arc/blob/main/src/lib/student-context.js"
click node_permissions "https://github.com/abinav-kishore/arc/blob/main/src/lib/permissions-context.js"
click node_notifications "https://github.com/abinav-kishore/arc/blob/main/src/lib/notifications-context.js"
click node_supabase "https://github.com/abinav-kishore/arc/blob/main/src/lib/supabase.js"
click node_field_schema "https://github.com/abinav-kishore/arc/blob/main/sql/create_field_permissions.sql"
click node_dashboard "https://github.com/abinav-kishore/arc/blob/main/src/components/StudentDashboardPage.js"
click node_profile_page "https://github.com/abinav-kishore/arc/blob/main/src/components/StudentProfilePage.js"
click node_profile_content "https://github.com/abinav-kishore/arc/blob/main/src/components/SkillsList.js"
click node_controlled_updates "https://github.com/abinav-kishore/arc/blob/main/src/components/PendingUpdatesList.js"
click node_coding_stats "https://github.com/abinav-kishore/arc/blob/main/src/components/CodingStats.js"
click node_coding_profiles "https://github.com/abinav-kishore/arc/blob/main/src/components/GitHubPage.js"
click node_linkedin "https://github.com/abinav-kishore/arc/blob/main/src/components/LinkedInPage.js"
click node_shared_ui "https://github.com/abinav-kishore/arc/blob/main/src/components/HeaderBar.js"

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_landing,node_profile_routes,node_auth_routes toneBlue
class node_student_state,node_permissions,node_notifications,node_supabase,node_field_schema toneAmber
class node_dashboard,node_profile_page,node_profile_content,node_controlled_updates toneMint
class node_coding_stats,node_coding_profiles,node_linkedin toneRose
class node_expo,node_shared_ui toneNeutral
```

## Components

### Expo routing

- [Root route shell](https://github.com/abinav-kishore/arc/blob/main/app/_layout.tsx): Expo Router · `app/_layout.tsx`
- [Landing route](https://github.com/abinav-kishore/arc/blob/main/app/index.tsx): route · `app/index.tsx`
- [Profile routes](https://github.com/abinav-kishore/arc/blob/main/app/profile.tsx): route adapters · Student, profile, and resume route entry points. · `app/profile.tsx`
- [Auth routes](https://github.com/abinav-kishore/arc/blob/main/app/auth/callback.tsx): route flow · Login and redirect callback navigation. · `app/auth/callback.tsx`

### State and backend

- [Student context](https://github.com/abinav-kishore/arc/blob/main/src/lib/student-context.js): React context · Provides shared student/domain data. · `src/lib/student-context.js`
- [Permissions context](https://github.com/abinav-kishore/arc/blob/main/src/lib/permissions-context.js): React context · Controls authorization behavior for profile fields. · `src/lib/permissions-context.js`
- [Notifications context](https://github.com/abinav-kishore/arc/blob/main/src/lib/notifications-context.js): React context · Holds update and alert state. · `src/lib/notifications-context.js`
- [Supabase client](https://github.com/abinav-kishore/arc/blob/main/src/lib/supabase.js): backend boundary · Authentication and persisted student-data integration. · `src/lib/supabase.js`
- [Field permission schema](https://github.com/abinav-kishore/arc/blob/main/sql/create_field_permissions.sql): SQL schema · `sql/create_field_permissions.sql`

### Profile features

- [Student dashboard](https://github.com/abinav-kishore/arc/blob/main/src/components/StudentDashboardPage.js): screen component · `src/components/StudentDashboardPage.js`
- [Student profile](https://github.com/abinav-kishore/arc/blob/main/src/components/StudentProfilePage.js): screen component · `src/components/StudentProfilePage.js`
- [Profile content](https://github.com/abinav-kishore/arc/blob/main/src/components/SkillsList.js): section components · Skills, projects, and resume presentation. · `src/components/SkillsList.js`
- [Controlled updates UI](https://github.com/abinav-kishore/arc/blob/main/src/components/PendingUpdatesList.js): update components · Shows pending changes, field history, and alerts. · `src/components/PendingUpdatesList.js`

### External profiles

- [Coding statistics](https://github.com/abinav-kishore/arc/blob/main/src/components/CodingStats.js): metrics component · Aggregates and displays coding-platform metrics. · `src/components/CodingStats.js`
- [Coding profile screens](https://github.com/abinav-kishore/arc/blob/main/src/components/GitHubPage.js): integration components · GitHub, LeetCode, Codeforces, CodeChef, and Skillrack views. · `src/components/GitHubPage.js`
- [LinkedIn profile](https://github.com/abinav-kishore/arc/blob/main/src/components/LinkedInPage.js): integration screen · `src/components/LinkedInPage.js`

### Other components

- [Expo runtime](https://github.com/abinav-kishore/arc/blob/main/package.json): mobile/web client · Builds and packages Android, iOS, and web targets. · `package.json`
- [Shared presentation](https://github.com/abinav-kishore/arc/blob/main/src/components/HeaderBar.js): UI primitives · Header, loading, empty-state, and theme support. · `src/components/HeaderBar.js`

## Connections

- Expo runtime → Root route shell: runs
- Root route shell → Landing route: default route
- Root route shell → Profile routes: navigates
- Root route shell → Auth routes: navigates
- Profile routes → Student dashboard: adapts to
- Profile routes → Student profile: adapts to
- Auth routes → Supabase client: completes auth
- Student context → Supabase client: loads and persists
- Permissions context → Supabase client: uses field policy data
- Field permission schema → Permissions context: defines field permissions
- Student dashboard → Student context: reads
- Student profile → Student context: reads
- Student profile → Permissions context: enforces
- Student profile → Profile content: renders
- Controlled updates UI → Notifications context: displays
- Controlled updates UI → Permissions context: reflects managed edits
- Student dashboard → Coding statistics: shows
- Coding statistics → Coding profile screens: summarizes
- Profile routes → Coding profile screens: opens platform routes
- Profile routes → LinkedIn profile: opens route
- Student dashboard → Shared presentation: uses
- Student profile → Shared presentation: uses
