# vivekgandavaram/skilion architecture

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

- Interactive diagram: https://gitdiagram.com/vivekgandavaram/skilion
- Repository: https://github.com/vivekgandavaram/skilion

## Overview

Skilion is a people-first team-formation platform: users discover and evaluate talent, assemble a persistent local Team Cart, get role-based team recommendations, find shared time, schedule a meeting, and move into a project. The graph preserves the README’s major capabilities, including profiles, portfolio uploads, social posts, messaging, and AI-assisted idea breakdown. Evidence is mixed: sampled source shows MongoDB-backed APIs, while the README describes Supabase; the graph reflects the sampled implementation and flags external Gemini as optional.

Main entry points: [`src/lib/mongodb.ts`](https://github.com/vivekgandavaram/skilion/blob/main/src/lib/mongodb.ts) (MongoDB access), [`src/app/api/posts/route.ts`](https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/posts/route.ts) (Posts and feed), [`src/app/api/ai/skill-breakdown/route.ts`](https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/ai/skill-breakdown/route.ts) (Idea skill breakdown), [`src/app/api/team/schedule/route.ts`](https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/team/schedule/route.ts) (Team scheduling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity and Profiles"]
  node_auth["Authentication<br/>[auth.ts]"]
  node_profile["Profile management<br/>[route.ts]"]
end

subgraph group_discovery["Talent and Community"]
  node_people["Talent search<br/>[route.ts]"]
  node_portfolio["Portfolio publishing<br/>[page.tsx]"]
  node_social["Posts and feed<br/>[route.ts]"]
  node_postcard["Post card<br/>[post-card.tsx]"]
  node_report["Content reporting<br/>[report-dialog.tsx]"]
end

subgraph group_team["Team Formation"]
  node_cart["Persistent Team Cart<br/>[use-team-cart.ts]"]
  node_teambutton["Add to team"]
  node_matching["Bond matching<br/>[matching.ts]"]
  node_idea["Idea skill breakdown<br/>[route.ts]"]
end

subgraph group_coordination["Projects and Coordination"]
  node_availability["Availability calculation<br/>[availability.ts]"]
  node_schedule["Team scheduling<br/>[route.ts]"]
  node_calendar["Calendar link builder<br/>[calendar.ts]"]
  node_meet["Meeting experience<br/>[page.tsx]"]
  node_projects["Project workspace<br/>[route.ts]"]
  node_messages["Direct messaging<br/>[route.ts]"]
end

subgraph group_platform["Runtime Services"]
  node_db[("MongoDB access<br/>[mongodb.ts]")]
  node_rate["Rate limiting<br/>[rate-limit.ts]"]
  node_cropper["Image cropper"]
  node_types["Domain document types<br/>[types.ts]"]
end

node_user(("Platform user"))
node_gemini["Gemini API"]

node_user -->|"signs in"| node_auth
node_user -->|"searches talent"| node_people
node_user -->|"manages profile"| node_profile
node_user -->|"publishes work"| node_portfolio
node_user -->|"creates posts"| node_social
node_people -->|"queries profiles"| node_db
node_profile -->|"updates profile"| node_db
node_social -->|"reads and writes posts"| node_db
node_user -->|"selects talent"| node_teambutton
node_teambutton -->|"adds member"| node_cart
node_cart -->|"builds team"| node_matching
node_user -->|"describes idea"| node_idea
node_idea -.->|"requests breakdown"| node_gemini
node_user -->|"offers availability"| node_availability
node_user -->|"schedules kickoff"| node_schedule
node_schedule -->|"writes meeting and team"| node_db
node_schedule -->|"builds calendar link"| node_calendar
node_user -->|"joins meeting"| node_meet
node_user -->|"works on project"| node_projects
node_user -->|"sends messages"| node_messages
node_messages -->|"reads and writes messages"| node_db
node_social -->|"checks limits"| node_rate
node_idea -->|"checks limits"| node_rate
node_auth -->|"loads users"| node_db
node_social -->|"renders feed items"| node_postcard
node_postcard -->|"opens report dialog"| node_report

click node_auth "https://github.com/vivekgandavaram/skilion/blob/main/src/lib/auth.ts"
click node_profile "https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/profile/route.ts"
click node_people "https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/people/route.ts"
click node_portfolio "https://github.com/vivekgandavaram/skilion/blob/main/src/app/profile/portfolio/new/page.tsx"
click node_social "https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/posts/route.ts"
click node_postcard "https://github.com/vivekgandavaram/skilion/blob/main/src/components/post-card.tsx"
click node_report "https://github.com/vivekgandavaram/skilion/blob/main/src/components/report-dialog.tsx"
click node_cart "https://github.com/vivekgandavaram/skilion/blob/main/src/hooks/use-team-cart.ts"
click node_teambutton "https://github.com/vivekgandavaram/skilion/blob/main/src/components/add-to-team-button.tsx"
click node_matching "https://github.com/vivekgandavaram/skilion/blob/main/src/lib/matching.ts"
click node_idea "https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/ai/skill-breakdown/route.ts"
click node_availability "https://github.com/vivekgandavaram/skilion/blob/main/src/lib/availability.ts"
click node_schedule "https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/team/schedule/route.ts"
click node_calendar "https://github.com/vivekgandavaram/skilion/blob/main/src/lib/calendar.ts"
click node_meet "https://github.com/vivekgandavaram/skilion/blob/main/src/app/meet/%5Bid%5D/page.tsx"
click node_projects "https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/projects/route.ts"
click node_messages "https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/messages/route.ts"
click node_db "https://github.com/vivekgandavaram/skilion/blob/main/src/lib/mongodb.ts"
click node_rate "https://github.com/vivekgandavaram/skilion/blob/main/src/lib/rate-limit.ts"
click node_cropper "https://github.com/vivekgandavaram/skilion/blob/main/src/components/image-cropper-modal.tsx"
click node_types "https://github.com/vivekgandavaram/skilion/blob/main/src/lib/models/types.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_auth,node_profile,node_user toneBlue
class node_people,node_portfolio,node_social,node_postcard,node_report toneAmber
class node_cart,node_teambutton,node_matching,node_idea,node_gemini toneMint
class node_availability,node_schedule,node_calendar,node_meet,node_projects,node_messages toneRose
class node_db,node_rate,node_cropper,node_types toneIndigo
```

## Components

### Identity and Profiles

- [Authentication](https://github.com/vivekgandavaram/skilion/blob/main/src/lib/auth.ts): `src/lib/auth.ts`
- [Profile management](https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/profile/route.ts): `src/app/api/profile/route.ts`

### Talent and Community

- [Talent search](https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/people/route.ts): `src/app/api/people/route.ts`
- [Portfolio publishing](https://github.com/vivekgandavaram/skilion/blob/main/src/app/profile/portfolio/new/page.tsx): `src/app/profile/portfolio/new/page.tsx`
- [Posts and feed](https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/posts/route.ts): `src/app/api/posts/route.ts`
- [Post card](https://github.com/vivekgandavaram/skilion/blob/main/src/components/post-card.tsx): `src/components/post-card.tsx`
- [Content reporting](https://github.com/vivekgandavaram/skilion/blob/main/src/components/report-dialog.tsx): `src/components/report-dialog.tsx`

### Team Formation

- [Persistent Team Cart](https://github.com/vivekgandavaram/skilion/blob/main/src/hooks/use-team-cart.ts): `src/hooks/use-team-cart.ts`
- [Add to team](https://github.com/vivekgandavaram/skilion/blob/main/src/components/add-to-team-button.tsx): `src/components/add-to-team-button.tsx`
- [Bond matching](https://github.com/vivekgandavaram/skilion/blob/main/src/lib/matching.ts): `src/lib/matching.ts`
- [Idea skill breakdown](https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/ai/skill-breakdown/route.ts): `src/app/api/ai/skill-breakdown/route.ts`

### Projects and Coordination

- [Availability calculation](https://github.com/vivekgandavaram/skilion/blob/main/src/lib/availability.ts): `src/lib/availability.ts`
- [Team scheduling](https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/team/schedule/route.ts): `src/app/api/team/schedule/route.ts`
- [Calendar link builder](https://github.com/vivekgandavaram/skilion/blob/main/src/lib/calendar.ts): `src/lib/calendar.ts`
- [Meeting experience](https://github.com/vivekgandavaram/skilion/blob/main/src/app/meet/%5Bid%5D/page.tsx): `src/app/meet/[id]/page.tsx`
- [Project workspace](https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/projects/route.ts): `src/app/api/projects/route.ts`
- [Direct messaging](https://github.com/vivekgandavaram/skilion/blob/main/src/app/api/messages/route.ts): `src/app/api/messages/route.ts`

### Runtime Services

- [MongoDB access](https://github.com/vivekgandavaram/skilion/blob/main/src/lib/mongodb.ts): `src/lib/mongodb.ts`
- [Rate limiting](https://github.com/vivekgandavaram/skilion/blob/main/src/lib/rate-limit.ts): `src/lib/rate-limit.ts`
- [Image cropper](https://github.com/vivekgandavaram/skilion/blob/main/src/components/image-cropper-modal.tsx): `src/components/image-cropper-modal.tsx`
- [Domain document types](https://github.com/vivekgandavaram/skilion/blob/main/src/lib/models/types.ts): `src/lib/models/types.ts`

### Other components

- **Platform user**
- **Gemini API**

## Connections

- Platform user → Authentication: signs in (evidence: `README.md`)
- Platform user → Talent search: searches talent (evidence: `README.md`)
- Platform user → Profile management: manages profile (evidence: `README.md`)
- Platform user → Portfolio publishing: publishes work (evidence: `README.md`)
- Platform user → Posts and feed: creates posts (evidence: `README.md`)
- Talent search → MongoDB access: queries profiles (evidence: `src/app/api/people/route.ts`)
- Profile management → MongoDB access: updates profile (evidence: `src/app/api/profile/route.ts`)
- Posts and feed → MongoDB access: reads and writes posts (evidence: `src/app/api/posts/route.ts`)
- Platform user → Add to team: selects talent (evidence: `README.md`)
- Add to team → Persistent Team Cart: adds member (evidence: `src/components/add-to-team-button.tsx`)
- Persistent Team Cart → Bond matching: builds team (evidence: `README.md`)
- Platform user → Idea skill breakdown: describes idea (evidence: `README.md`)
- Idea skill breakdown → Gemini API: requests breakdown (evidence: `README.md`)
- Platform user → Availability calculation: offers availability (evidence: `README.md`)
- Platform user → Team scheduling: schedules kickoff (evidence: `README.md`)
- Team scheduling → MongoDB access: writes meeting and team (evidence: `src/app/api/team/schedule/route.ts`)
- Team scheduling → Calendar link builder: builds calendar link (evidence: `src/app/api/team/schedule/route.ts`)
- Platform user → Meeting experience: joins meeting (evidence: `README.md`)
- Platform user → Project workspace: works on project (evidence: `README.md`)
- Platform user → Direct messaging: sends messages (evidence: `README.md`)
- Direct messaging → MongoDB access: reads and writes messages (evidence: `src/app/api/messages/route.ts`)
- Posts and feed → Rate limiting: checks limits (evidence: `src/app/api/posts/route.ts`)
- Idea skill breakdown → Rate limiting: checks limits (evidence: `src/app/api/ai/skill-breakdown/route.ts`)
- Authentication → MongoDB access: loads users (evidence: `src/lib/auth.ts`)
- Posts and feed → Post card: renders feed items (evidence: `src/components/post-card.tsx`)
- Post card → Content reporting: opens report dialog (evidence: `src/components/post-card.tsx`)
