# prasannakumar14352/ai-muse-studio-27 architecture

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

- Interactive diagram: https://gitdiagram.com/prasannakumar14352/ai-muse-studio-27
- Repository: https://github.com/prasannakumar14352/ai-muse-studio-27

## Overview

CreatorFlow AI is a content-creation and marketing platform with a public landing and pricing experience, authenticated workspace, and distinct tools for research, planning, and producing social, image, video, and promotional content. The visible entry flow runs from the landing page through sign-in into the authenticated shell; individual creation routes are represented as major product capabilities, but their internal generation steps are not connected because their implementation was not sampled. The repository also includes an internal HQ metrics/leads dashboard. Evidence for edges is limited to the supplied excerpts and SOURCE INDEX references.

Main entry points: [`src/routes/_authenticated/route.tsx`](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/route.tsx) (Authenticated workspace), [`src/components/app-shell.tsx`](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/components/app-shell.tsx) (Workspace shell), [`src/integrations/supabase/client.ts`](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/integrations/supabase/client.ts) (Supabase client), [`hq/src/App.tsx`](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/hq/src/App.tsx) (HQ dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and workspace"]
  node_landing["Landing experience<br/>[index.tsx]"]
  node_pricing["Pricing<br/>[pricing.tsx]"]
  node_authentication["Sign in<br/>[auth.tsx]"]
  node_route_map["Application routes<br/>[routeTree.gen.ts]"]
  node_workspace_gate["Authenticated workspace<br/>[route.tsx]"]
  node_app_shell["Workspace shell<br/>[app-shell.tsx]"]
end

subgraph group_creation["Creation tools"]
  node_video_creation["Video creation<br/>[videos.tsx]"]
  node_image_creation["Image creation<br/>[images.tsx]"]
  node_carousel_creation["Carousel creation<br/>[carousels.tsx]"]
  node_promo_video["Promo videos<br/>[promo-videos.tsx]"]
  node_thumbnails["Thumbnail creation<br/>[thumbnails.tsx]"]
  node_agent_runtime["Agent runtime<br/>[core.server.ts]"]
end

subgraph group_planning["Planning and insight"]
  node_research["Research<br/>[research.tsx]"]
  node_calendar["Content calendar<br/>[calendar.tsx]"]
end

subgraph group_platform["Account platform"]
  node_access_control["Access control<br/>[access.ts]"]
  node_plan_access["Plan access"]
  node_supabase_client["Supabase client<br/>[client.ts]"]
end

subgraph group_operations["Operations"]
  node_hq["HQ dashboard<br/>[App.tsx]"]
  node_hq_dashboard["Metrics dashboard<br/>[Dashboard.tsx]"]
  node_hq_leads["Lead metrics<br/>[Leads.tsx]"]
  node_hq_format["HQ formatting<br/>[format.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_landing
node_landing -->|"links to"| node_authentication
node_authentication -->|"uses"| node_supabase_client
node_workspace_gate -->|"checks session"| node_supabase_client
node_workspace_gate -->|"renders"| node_app_shell
node_workspace_gate -->|"gates routes"| node_plan_access
node_workspace_gate -.->|"registered in"| node_route_map
node_app_shell -->|"uses"| node_supabase_client
node_app_shell -->|"checks access"| node_access_control
node_app_shell -->|"checks plan"| node_plan_access
node_hq -->|"renders"| node_hq_dashboard
node_hq -->|"renders"| node_hq_leads
node_hq -.->|"loads metrics"| node_supabase_client
node_hq_dashboard -->|"uses formatting"| node_hq_format
node_hq_leads -->|"uses formatting"| node_hq_format

click node_landing "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/index.tsx"
click node_pricing "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/pricing.tsx"
click node_authentication "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/auth.tsx"
click node_route_map "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routeTree.gen.ts"
click node_workspace_gate "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/route.tsx"
click node_app_shell "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/components/app-shell.tsx"
click node_video_creation "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/videos.tsx"
click node_image_creation "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/images.tsx"
click node_carousel_creation "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/carousels.tsx"
click node_promo_video "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/promo-videos.tsx"
click node_research "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/research.tsx"
click node_calendar "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/calendar.tsx"
click node_thumbnails "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/thumbnails.tsx"
click node_agent_runtime "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/lib/agents/core.server.ts"
click node_access_control "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/lib/access.ts"
click node_plan_access "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/lib/use-plan-access.tsx"
click node_supabase_client "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/integrations/supabase/client.ts"
click node_hq "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/hq/src/App.tsx"
click node_hq_dashboard "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/hq/src/Dashboard.tsx"
click node_hq_leads "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/hq/src/Leads.tsx"
click node_hq_format "https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/hq/src/format.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_pricing,node_authentication,node_route_map,node_workspace_gate,node_app_shell toneBlue
class node_video_creation,node_image_creation,node_carousel_creation,node_promo_video,node_thumbnails,node_agent_runtime toneAmber
class node_research,node_calendar toneMint
class node_access_control,node_plan_access,node_supabase_client toneRose
class node_hq,node_hq_dashboard,node_hq_leads,node_hq_format,node_visitor toneIndigo
```

## Components

### Entry and workspace

- [Landing experience](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/index.tsx): `src/routes/index.tsx`
- [Pricing](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/pricing.tsx): `src/routes/pricing.tsx`
- [Sign in](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/auth.tsx): `src/routes/auth.tsx`
- [Application routes](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routeTree.gen.ts): `src/routeTree.gen.ts`
- [Authenticated workspace](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/route.tsx): `src/routes/_authenticated/route.tsx`
- [Workspace shell](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/components/app-shell.tsx): `src/components/app-shell.tsx`

### Creation tools

- [Video creation](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/videos.tsx): `src/routes/_authenticated/videos.tsx`
- [Image creation](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/images.tsx): `src/routes/_authenticated/images.tsx`
- [Carousel creation](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/carousels.tsx): `src/routes/_authenticated/carousels.tsx`
- [Promo videos](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/promo-videos.tsx): `src/routes/_authenticated/promo-videos.tsx`
- [Thumbnail creation](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/thumbnails.tsx): `src/routes/_authenticated/thumbnails.tsx`
- [Agent runtime](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/lib/agents/core.server.ts): `src/lib/agents/core.server.ts`

### Planning and insight

- [Research](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/research.tsx): `src/routes/_authenticated/research.tsx`
- [Content calendar](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/routes/_authenticated/calendar.tsx): `src/routes/_authenticated/calendar.tsx`

### Account platform

- [Access control](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/lib/access.ts): `src/lib/access.ts`
- [Plan access](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/lib/use-plan-access.tsx): `src/lib/use-plan-access.tsx`
- [Supabase client](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/src/integrations/supabase/client.ts): `src/integrations/supabase/client.ts`

### Operations

- [HQ dashboard](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/hq/src/App.tsx): `hq/src/App.tsx`
- [Metrics dashboard](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/hq/src/Dashboard.tsx): `hq/src/Dashboard.tsx`
- [Lead metrics](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/hq/src/Leads.tsx): `hq/src/Leads.tsx`
- [HQ formatting](https://github.com/prasannakumar14352/ai-muse-studio-27/blob/main/hq/src/format.ts): `hq/src/format.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Landing experience: opens (evidence: `src/routes/index.tsx`)
- Landing experience → Sign in: links to (evidence: `src/routes/index.tsx`)
- Sign in → Supabase client: uses (evidence: `src/routes/auth.tsx`)
- Authenticated workspace → Supabase client: checks session (evidence: `src/routes/_authenticated/route.tsx`)
- Authenticated workspace → Workspace shell: renders (evidence: `src/routes/_authenticated/route.tsx`)
- Authenticated workspace → Plan access: gates routes (evidence: `src/routes/_authenticated/route.tsx`)
- Authenticated workspace → Application routes: registered in (evidence: `src/routeTree.gen.ts`)
- Workspace shell → Supabase client: uses (evidence: `src/components/app-shell.tsx`)
- Workspace shell → Access control: checks access (evidence: `src/components/app-shell.tsx`)
- Workspace shell → Plan access: checks plan (evidence: `src/components/app-shell.tsx`)
- HQ dashboard → Metrics dashboard: renders (evidence: `hq/src/App.tsx`)
- HQ dashboard → Lead metrics: renders (evidence: `hq/src/App.tsx`)
- HQ dashboard → Supabase client: loads metrics
- Metrics dashboard → HQ formatting: uses formatting (evidence: `hq/src/Dashboard.tsx`)
- Lead metrics → HQ formatting: uses formatting (evidence: `hq/src/Leads.tsx`)
