# rasulbi/ai-content-creator-market-place-platform--- architecture

> Architecture diagram of the GitHub repository rasulbi/ai-content-creator-market-place-platform---, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rasulbi/ai-content-creator-market-place-platform---
- Repository: https://github.com/rasulbi/ai-content-creator-market-place-platform---

## Overview

AI Creator Marketplace connects brands seeking campaign creators with creators presenting profiles, portfolios, skills, and verification. The main brand workflow is to explore creator matches, evaluate ranked candidates, and use AI assistance; creators can maintain their profiles and portfolios. AI routes also provide campaign/profile analysis, verification, chat, and content generation. Authentication and Supabase-backed APIs support account and campaign workflows. The README documents the broader capabilities; several route and UI implementations were not sampled, so those relationships are represented only where documented or indexed.

Main entry points: [`lib/ai/ai-service.ts`](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/ai/ai-service.ts) (AI service), [`app/brand/dashboard/page.tsx`](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/brand/dashboard/page.tsx) (Brand dashboard), [`lib/supabase/server.ts`](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/supabase/server.ts) (Supabase server client), [`app/creator/dashboard/page.tsx`](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/creator/dashboard/page.tsx) (Creator dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Marketplace experience"]
  node_landing["Role selection<br/>[page.tsx]"]
  node_login["Login and signup<br/>[LoginForm.tsx]"]
  node_brand_dashboard["Brand dashboard<br/>[page.tsx]"]
  node_creator_dashboard["Creator dashboard<br/>[page.tsx]"]
  node_profile_pages["Creator profile pages<br/>[page.tsx]"]
  node_assistant_ui["AI assistant workspace<br/>[page.tsx]"]
end

subgraph group_ai["AI and matching"]
  node_ai_routes["AI analysis routes"]
  node_advisor_route["AI advisor route<br/>[route.ts]"]
  node_content_route["AI content route<br/>[route.ts]"]
  node_ai_service["AI service<br/>[ai-service.ts]"]
  node_scoring["Match scoring<br/>[scoring-engine.ts]"]
end

subgraph group_creator["Creator management"]
  node_creator_catalog[("Creator catalog<br/>[creators-data.ts]")]
  node_creator_store["Creator updates<br/>[creators-store.ts]"]
  node_passport_store[("Skill passport")]
end

subgraph group_platform["Platform services"]
  node_auth_api["Authentication routes"]
  node_auth_server["Server authentication<br/>[auth-server.ts]"]
  node_campaign_api["Campaign routes"]
  node_portfolio_api["Portfolio routes"]
  node_supabase_server["Supabase server client<br/>[server.ts]"]
  node_storage_helpers["Storage helpers<br/>[storage-helpers.ts]"]
end

node_brand(("Brand user"))
node_creator_user(("Creator user"))
node_supabase[("Supabase")]
node_openrouter{{"OpenRouter API"}}
node_grok{{"xAI Grok API"}}
node_openai{{"OpenAI API"}}

node_brand -->|"chooses role"| node_landing
node_creator_user -->|"chooses role"| node_landing
node_landing -->|"opens login"| node_login
node_login -->|"authenticates"| node_auth_api
node_auth_api -->|"delegates auth"| node_auth_server
node_brand -.->|"manages campaigns"| node_brand_dashboard
node_brand_dashboard -.->|"requests matching"| node_ai_routes
node_brand_dashboard -->|"browses creators"| node_creator_catalog
node_brand_dashboard -->|"reads updates"| node_creator_store
node_brand_dashboard -.->|"opens assistance"| node_assistant_ui
node_creator_user -.->|"manages account"| node_creator_dashboard
node_creator_dashboard -->|"reads updates"| node_creator_store
node_creator_dashboard -->|"reads passport"| node_passport_store
node_creator_user -.->|"edits profile"| node_profile_pages
node_profile_pages -->|"reads updates"| node_creator_store
node_profile_pages -->|"reads passport"| node_passport_store
node_assistant_ui -.->|"sends requests"| node_advisor_route
node_ai_routes -.->|"uses AI service"| node_ai_service
node_ai_service -->|"delegates scoring"| node_scoring
node_ai_service -->|"uses creator data"| node_creator_catalog
node_advisor_route -->|"loads conversations"| node_supabase_server
node_content_route -->|"uses AI service"| node_ai_service
node_campaign_api -->|"uses client"| node_supabase_server
node_portfolio_api -->|"uses client"| node_supabase_server
node_supabase_server -->|"connects to"| node_supabase
node_storage_helpers -->|"creates clients"| node_supabase_server
node_storage_helpers -.->|"manages files"| node_supabase
node_ai_service -.->|"calls provider"| node_openrouter
node_ai_service -.->|"calls provider"| node_grok
node_content_route -.->|"generates content"| node_openai

click node_landing "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/page.tsx"
click node_login "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/components/auth/LoginForm.tsx"
click node_brand_dashboard "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/brand/dashboard/page.tsx"
click node_creator_dashboard "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/creator/dashboard/page.tsx"
click node_profile_pages "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/creator/profile/page.tsx"
click node_assistant_ui "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/assistant/page.tsx"
click node_auth_api "https://github.com/rasulbi/ai-content-creator-market-place-platform---/tree/main/app/api/auth"
click node_auth_server "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/auth-server.ts"
click node_ai_routes "https://github.com/rasulbi/ai-content-creator-market-place-platform---/tree/main/app/api/ai"
click node_advisor_route "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/api/ai-advisor/route.ts"
click node_content_route "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/api/ai-content/route.ts"
click node_ai_service "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/ai/ai-service.ts"
click node_scoring "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/ai/scoring-engine.ts"
click node_creator_catalog "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/creators-data.ts"
click node_creator_store "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/creators-store.ts"
click node_passport_store "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/skill-passport-store.ts"
click node_campaign_api "https://github.com/rasulbi/ai-content-creator-market-place-platform---/tree/main/app/api/v1/campaigns"
click node_portfolio_api "https://github.com/rasulbi/ai-content-creator-market-place-platform---/tree/main/app/api/v1/portfolio"
click node_supabase_server "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/supabase/server.ts"
click node_storage_helpers "https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/supabase/storage-helpers.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_landing,node_login,node_brand_dashboard,node_creator_dashboard,node_profile_pages,node_assistant_ui,node_brand,node_creator_user toneBlue
class node_ai_routes,node_advisor_route,node_content_route,node_ai_service,node_scoring,node_supabase toneAmber
class node_creator_catalog,node_creator_store,node_passport_store,node_openrouter,node_grok,node_openai toneMint
class node_auth_api,node_auth_server,node_campaign_api,node_portfolio_api,node_supabase_server,node_storage_helpers toneRose
```

## Components

### Marketplace experience

- [Role selection](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/page.tsx): `app/page.tsx`
- [Login and signup](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/components/auth/LoginForm.tsx): `components/auth/LoginForm.tsx`
- [Brand dashboard](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/brand/dashboard/page.tsx): `app/brand/dashboard/page.tsx`
- [Creator dashboard](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/creator/dashboard/page.tsx): `app/creator/dashboard/page.tsx`
- [Creator profile pages](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/creator/profile/page.tsx): `app/creator/profile/page.tsx`
- [AI assistant workspace](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/assistant/page.tsx): `app/assistant/page.tsx`

### AI and matching

- [AI analysis routes](https://github.com/rasulbi/ai-content-creator-market-place-platform---/tree/main/app/api/ai): `app/api/ai`
- [AI advisor route](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/api/ai-advisor/route.ts): `app/api/ai-advisor/route.ts`
- [AI content route](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/app/api/ai-content/route.ts): `app/api/ai-content/route.ts`
- [AI service](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/ai/ai-service.ts): `lib/ai/ai-service.ts`
- [Match scoring](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/ai/scoring-engine.ts): `lib/ai/scoring-engine.ts`

### Creator management

- [Creator catalog](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/creators-data.ts): `lib/creators-data.ts`
- [Creator updates](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/creators-store.ts): `lib/creators-store.ts`
- [Skill passport](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/skill-passport-store.ts): `lib/skill-passport-store.ts`

### Platform services

- [Authentication routes](https://github.com/rasulbi/ai-content-creator-market-place-platform---/tree/main/app/api/auth): `app/api/auth`
- [Server authentication](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/auth-server.ts): `lib/auth-server.ts`
- [Campaign routes](https://github.com/rasulbi/ai-content-creator-market-place-platform---/tree/main/app/api/v1/campaigns): `app/api/v1/campaigns`
- [Portfolio routes](https://github.com/rasulbi/ai-content-creator-market-place-platform---/tree/main/app/api/v1/portfolio): `app/api/v1/portfolio`
- [Supabase server client](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/supabase/server.ts): `lib/supabase/server.ts`
- [Storage helpers](https://github.com/rasulbi/ai-content-creator-market-place-platform---/blob/main/lib/supabase/storage-helpers.ts): `lib/supabase/storage-helpers.ts`

### Other components

- **Brand user**
- **Creator user**
- **Supabase**
- **OpenRouter API**
- **xAI Grok API**
- **OpenAI API**

## Connections

- Brand user → Role selection: chooses role (evidence: `app/page.tsx`)
- Creator user → Role selection: chooses role (evidence: `app/page.tsx`)
- Role selection → Login and signup: opens login (evidence: `app/page.tsx`)
- Login and signup → Authentication routes: authenticates
- Authentication routes → Server authentication: delegates auth (evidence: `app/api/auth/login/route.ts`)
- Brand user → Brand dashboard: manages campaigns (evidence: `README.md`)
- Brand dashboard → AI analysis routes: requests matching (evidence: `README.md`)
- Brand dashboard → Creator catalog: browses creators (evidence: `app/brand/dashboard/page.tsx`)
- Brand dashboard → Creator updates: reads updates (evidence: `app/brand/dashboard/page.tsx`)
- Brand dashboard → AI assistant workspace: opens assistance (evidence: `README.md`)
- Creator user → Creator dashboard: manages account (evidence: `README.md`)
- Creator dashboard → Creator updates: reads updates (evidence: `app/creator/dashboard/page.tsx`)
- Creator dashboard → Skill passport: reads passport (evidence: `app/creator/dashboard/page.tsx`)
- Creator user → Creator profile pages: edits profile (evidence: `README.md`)
- Creator profile pages → Creator updates: reads updates (evidence: `app/creator/profile/page.tsx`)
- Creator profile pages → Skill passport: reads passport (evidence: `app/creator/profile/page.tsx`)
- AI assistant workspace → AI advisor route: sends requests (evidence: `README.md`)
- AI analysis routes → AI service: uses AI service (evidence: `README.md`)
- AI service → Match scoring: delegates scoring (evidence: `lib/ai/ai-service.ts`)
- AI service → Creator catalog: uses creator data (evidence: `lib/ai/ai-service.ts`)
- AI advisor route → Supabase server client: loads conversations (evidence: `app/api/ai-advisor/route.ts`)
- AI content route → AI service: uses AI service (evidence: `app/api/ai-content/route.ts`)
- Campaign routes → Supabase server client: uses client (evidence: `app/api/v1/campaigns/route.ts`)
- Portfolio routes → Supabase server client: uses client (evidence: `app/api/v1/portfolio/route.ts`)
- Supabase server client → Supabase: connects to (evidence: `lib/supabase/server.ts`)
- Storage helpers → Supabase server client: creates clients (evidence: `lib/supabase/storage-helpers.ts`)
- Storage helpers → Supabase: manages files
- AI service → OpenRouter API: calls provider (evidence: `README.md`)
- AI service → xAI Grok API: calls provider (evidence: `README.md`)
- AI content route → OpenAI API: generates content (evidence: `README.md`)
