# asmitha-gavini/vyntrav architecture

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

- Interactive diagram: https://gitdiagram.com/asmitha-gavini/vyntrav
- Repository: https://github.com/asmitha-gavini/vyntrav

## Overview

GenCraft is a two-sided marketplace for AI content creators and brands. The workflow runs from account access and creator onboarding or brand brief creation, through creator discovery and matching, to applications, delivery, and simulated payment tracking. Creator portfolios and starter projects support discovery and creator development; the AI tools directory and brief assistant are additional product capabilities. The frontend-to-API boundary and several backend imports are evidenced by excerpts or the SOURCE INDEX; some feature-level wiring is documented only in the README.

Main entry points: [`frontend/src/api.js`](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/api.js) (HTTP API client), [`frontend/src/App.jsx`](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/App.jsx) (React application), [`backend/main.py`](https://github.com/asmitha-gavini/vyntrav/blob/main/backend/main.py) (FastAPI application), [`backend/database.py`](https://github.com/asmitha-gavini/vyntrav/blob/main/backend/database.py) (Marketplace database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Marketplace frontend"]
  node_app["React application<br/>[App.jsx]"]
  node_api["HTTP API client<br/>[api.js]"]
end

subgraph group_identity["Identity and onboarding"]
  node_auth_ui["Authentication state<br/>[AuthContext.jsx]"]
  node_auth_routes["Auth endpoints<br/>[auth.py]"]
  node_auth_service["Session and password service<br/>[auth.py]"]
  node_onboarding["Creator onboarding"]
end

subgraph group_creator["Creator marketplace"]
  node_creator_search["Creator search<br/>[CreatorsPage.jsx]"]
  node_creator_profiles["Creator profiles and portfolios<br/>[creators.py]"]
  node_portfolio_editor["Portfolio manager"]
  node_starter_studio["Starter Studio<br/>[StarterStudio.jsx]"]
  node_tools_directory["AI tools directory"]
  node_tool_catalog["AI tools catalog<br/>[aiToolsData.js]"]
  node_matcher["Explainable matching<br/>[matcher.py]"]
end

subgraph group_campaign["Briefs and engagement"]
  node_brief_builder["Brief builder<br/>[NewBriefPage.jsx]"]
  node_brief_pages["Briefs and applications<br/>[briefs.py]"]
  node_brief_ai["AI brief assistant<br/>[brief_ai.py]"]
  node_engagement_ui["Engagement tracking"]
  node_dashboard["Creator and brand dashboard<br/>[DashboardPage.jsx]"]
end

subgraph group_storage["Data and integrations"]
  node_backend["FastAPI application<br/>[main.py]"]
  node_database[("Marketplace database<br/>[database.py]")]
  node_seed["Marketplace seed data<br/>[seed.py]"]
  node_oauth{{"OAuth providers"}}
  node_gemini{{"Google Gemini"}}
end

node_user(("Marketplace users"))

node_user -->|"uses"| node_app
node_app -->|"provides auth"| node_auth_ui
node_app -->|"routes to"| node_creator_search
node_app -->|"routes to"| node_onboarding
node_app -->|"routes to"| node_brief_builder
node_app -->|"routes to"| node_dashboard
node_auth_ui -->|"calls"| node_api
node_onboarding -->|"updates profile"| node_api
node_creator_search -->|"searches creators"| node_api
node_creator_search -->|"uses catalog"| node_tool_catalog
node_tools_directory -->|"uses catalog"| node_tool_catalog
node_portfolio_editor -->|"manages portfolio"| node_api
node_brief_builder -->|"creates briefs"| node_api
node_brief_builder -->|"uses catalog"| node_tool_catalog
node_engagement_ui -->|"tracks engagement"| node_api
node_dashboard -->|"renders"| node_starter_studio
node_dashboard -->|"renders"| node_engagement_ui
node_dashboard -->|"renders"| node_portfolio_editor
node_api -->|"HTTP requests"| node_backend
node_backend -->|"mounts"| node_auth_routes
node_backend -->|"mounts"| node_creator_profiles
node_backend -->|"mounts"| node_brief_pages
node_auth_routes -->|"uses"| node_auth_service
node_auth_routes -->|"exchanges credentials"| node_oauth
node_creator_profiles -->|"reads and writes"| node_database
node_brief_pages -->|"reads and writes"| node_database
node_brief_pages -->|"requests matches"| node_matcher
node_brief_pages -->|"requests drafts"| node_brief_ai
node_brief_ai -->|"calls REST API"| node_gemini
node_matcher -->|"loads marketplace data"| node_database
node_backend -->|"initializes"| node_database
node_database -->|"loads seed data"| node_seed

click node_app "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/App.jsx"
click node_api "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/api.js"
click node_auth_ui "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/context/AuthContext.jsx"
click node_auth_routes "https://github.com/asmitha-gavini/vyntrav/blob/main/backend/routers/auth.py"
click node_auth_service "https://github.com/asmitha-gavini/vyntrav/blob/main/backend/services/auth.py"
click node_onboarding "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/pages/CompleteProfilePage.jsx"
click node_creator_search "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/pages/CreatorsPage.jsx"
click node_creator_profiles "https://github.com/asmitha-gavini/vyntrav/blob/main/backend/routers/creators.py"
click node_portfolio_editor "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/components/PortfolioManagerModal.jsx"
click node_starter_studio "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/components/StarterStudio.jsx"
click node_tools_directory "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/pages/AIToolsDirectoryPage.jsx"
click node_tool_catalog "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/data/aiToolsData.js"
click node_matcher "https://github.com/asmitha-gavini/vyntrav/blob/main/backend/services/matcher.py"
click node_brief_builder "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/pages/NewBriefPage.jsx"
click node_brief_pages "https://github.com/asmitha-gavini/vyntrav/blob/main/backend/routers/briefs.py"
click node_brief_ai "https://github.com/asmitha-gavini/vyntrav/blob/main/backend/services/brief_ai.py"
click node_engagement_ui "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/components/EngagementTracker.jsx"
click node_dashboard "https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/pages/DashboardPage.jsx"
click node_backend "https://github.com/asmitha-gavini/vyntrav/blob/main/backend/main.py"
click node_database "https://github.com/asmitha-gavini/vyntrav/blob/main/backend/database.py"
click node_seed "https://github.com/asmitha-gavini/vyntrav/blob/main/dataset/seed.py"

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_api,node_user toneBlue
class node_auth_ui,node_auth_routes,node_auth_service,node_onboarding toneAmber
class node_creator_search,node_creator_profiles,node_portfolio_editor,node_starter_studio,node_tools_directory,node_tool_catalog,node_matcher toneMint
class node_brief_builder,node_brief_pages,node_brief_ai,node_engagement_ui,node_dashboard toneRose
class node_backend,node_database,node_seed,node_oauth,node_gemini toneIndigo
```

## Components

### Marketplace frontend

- [React application](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [HTTP API client](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/api.js): `frontend/src/api.js`

### Identity and onboarding

- [Authentication state](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Auth endpoints](https://github.com/asmitha-gavini/vyntrav/blob/main/backend/routers/auth.py): `backend/routers/auth.py`
- [Session and password service](https://github.com/asmitha-gavini/vyntrav/blob/main/backend/services/auth.py): `backend/services/auth.py`
- [Creator onboarding](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/pages/CompleteProfilePage.jsx): `frontend/src/pages/CompleteProfilePage.jsx`

### Creator marketplace

- [Creator search](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/pages/CreatorsPage.jsx): `frontend/src/pages/CreatorsPage.jsx`
- [Creator profiles and portfolios](https://github.com/asmitha-gavini/vyntrav/blob/main/backend/routers/creators.py): `backend/routers/creators.py`
- [Portfolio manager](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/components/PortfolioManagerModal.jsx): `frontend/src/components/PortfolioManagerModal.jsx`
- [Starter Studio](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/components/StarterStudio.jsx): `frontend/src/components/StarterStudio.jsx`
- [AI tools directory](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/pages/AIToolsDirectoryPage.jsx): `frontend/src/pages/AIToolsDirectoryPage.jsx`
- [AI tools catalog](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/data/aiToolsData.js): `frontend/src/data/aiToolsData.js`
- [Explainable matching](https://github.com/asmitha-gavini/vyntrav/blob/main/backend/services/matcher.py): `backend/services/matcher.py`

### Briefs and engagement

- [Brief builder](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/pages/NewBriefPage.jsx): `frontend/src/pages/NewBriefPage.jsx`
- [Briefs and applications](https://github.com/asmitha-gavini/vyntrav/blob/main/backend/routers/briefs.py): `backend/routers/briefs.py`
- [AI brief assistant](https://github.com/asmitha-gavini/vyntrav/blob/main/backend/services/brief_ai.py): `backend/services/brief_ai.py`
- [Engagement tracking](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/components/EngagementTracker.jsx): `frontend/src/components/EngagementTracker.jsx`
- [Creator and brand dashboard](https://github.com/asmitha-gavini/vyntrav/blob/main/frontend/src/pages/DashboardPage.jsx): `frontend/src/pages/DashboardPage.jsx`

### Data and integrations

- [FastAPI application](https://github.com/asmitha-gavini/vyntrav/blob/main/backend/main.py): `backend/main.py`
- [Marketplace database](https://github.com/asmitha-gavini/vyntrav/blob/main/backend/database.py): `backend/database.py`
- [Marketplace seed data](https://github.com/asmitha-gavini/vyntrav/blob/main/dataset/seed.py): `dataset/seed.py`
- **OAuth providers**
- **Google Gemini**

### Other components

- **Marketplace users**

## Connections

- Marketplace users → React application: uses (evidence: `README.md`)
- React application → Authentication state: provides auth (evidence: `frontend/src/App.jsx`)
- React application → Creator search: routes to (evidence: `frontend/src/App.jsx`)
- React application → Creator onboarding: routes to (evidence: `frontend/src/App.jsx`)
- React application → Brief builder: routes to (evidence: `frontend/src/App.jsx`)
- React application → Creator and brand dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Authentication state → HTTP API client: calls (evidence: `frontend/src/context/AuthContext.jsx`)
- Creator onboarding → HTTP API client: updates profile (evidence: `frontend/src/pages/CompleteProfilePage.jsx`)
- Creator search → HTTP API client: searches creators (evidence: `frontend/src/pages/CreatorsPage.jsx`)
- Creator search → AI tools catalog: uses catalog (evidence: `frontend/src/pages/CreatorsPage.jsx`)
- AI tools directory → AI tools catalog: uses catalog (evidence: `frontend/src/pages/AIToolsDirectoryPage.jsx`)
- Portfolio manager → HTTP API client: manages portfolio (evidence: `frontend/src/components/PortfolioManagerModal.jsx`)
- Brief builder → HTTP API client: creates briefs (evidence: `frontend/src/pages/NewBriefPage.jsx`)
- Brief builder → AI tools catalog: uses catalog (evidence: `frontend/src/pages/NewBriefPage.jsx`)
- Engagement tracking → HTTP API client: tracks engagement (evidence: `frontend/src/components/EngagementTracker.jsx`)
- Creator and brand dashboard → Starter Studio: renders (evidence: `frontend/src/pages/DashboardPage.jsx`)
- Creator and brand dashboard → Engagement tracking: renders (evidence: `frontend/src/pages/DashboardPage.jsx`)
- Creator and brand dashboard → Portfolio manager: renders (evidence: `frontend/src/pages/DashboardPage.jsx`)
- HTTP API client → FastAPI application: HTTP requests (evidence: `README.md`)
- FastAPI application → Auth endpoints: mounts (evidence: `backend/main.py`)
- FastAPI application → Creator profiles and portfolios: mounts (evidence: `backend/main.py`)
- FastAPI application → Briefs and applications: mounts (evidence: `backend/main.py`)
- Auth endpoints → Session and password service: uses (evidence: `backend/routers/auth.py`)
- Auth endpoints → OAuth providers: exchanges credentials (evidence: `README.md`)
- Creator profiles and portfolios → Marketplace database: reads and writes (evidence: `backend/routers/creators.py`)
- Briefs and applications → Marketplace database: reads and writes (evidence: `backend/routers/briefs.py`)
- Briefs and applications → Explainable matching: requests matches (evidence: `backend/routers/briefs.py`)
- Briefs and applications → AI brief assistant: requests drafts (evidence: `backend/routers/briefs.py`)
- AI brief assistant → Google Gemini: calls REST API (evidence: `README.md`)
- Explainable matching → Marketplace database: loads marketplace data (evidence: `backend/services/matcher.py`)
- FastAPI application → Marketplace database: initializes (evidence: `backend/main.py`)
- Marketplace database → Marketplace seed data: loads seed data (evidence: `backend/database.py`)
