# marvel-run/marvel-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/marvel-run/marvel-frontend
- Repository: https://github.com/marvel-run/marvel-frontend

## Overview

MARVEL RUN 2026 KOREA is a Next.js frontend with coming-soon and live public modes plus an operations console. The attendee journey covers event information, registration, payment, and application lookup; public notices and inquiries are supporting capabilities. Administrators manage applications, members, capacity, boards, legal content, popups, and reporting. Edges reflect README-described capabilities and relationships visible in indexed excerpts; unsampled route and service wiring is not inferred beyond documented links.

Main entry points: [`src/app/page.tsx`](https://github.com/marvel-run/marvel-frontend/blob/develop/src/app/page.tsx) (Mode Router), [`src/components/main/register`](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/register) (Registration), [`src/components/main/payment`](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/payment) (Payment), [`src/layouts/admin/AdminLayout.tsx`](https://github.com/marvel-run/marvel-frontend/blob/develop/src/layouts/admin/AdminLayout.tsx) (Admin Shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site Modes"]
  node_mode["Mode Router<br/>[page.tsx]"]
  node_coming["Coming Soon"]
end

subgraph group_public["Public Experience"]
  node_home["Event Home<br/>[HomePage.tsx]"]
  node_eventinfo["Event Information<br/>[event.ts]"]
  node_guide["Guide &amp; Kit"]
  node_directions["Directions"]
  node_boards["Public Boards"]
end

subgraph group_entry["Registration &amp; Payment"]
  node_register["Registration"]
  node_regoptions["Registration Options"]
  node_registrationapi["Registration Service<br/>[registrations.ts]"]
  node_lookup["Application Lookup"]
  node_payment["Payment"]
  node_paymentlib["Payment Integration"]
end

subgraph group_admin["Operations Console"]
  node_adminlayout["Admin Shell<br/>[AdminLayout.tsx]"]
  node_adminauth["Admin Authentication<br/>[auth.ts]"]
  node_applications["Application Management"]
  node_members["Member Management"]
  node_capacity["Capacity Management"]
  node_adminboards["Board Management"]
  node_admincontent["Content &amp; Legal"]
  node_dashboard["Reports &amp; Dashboard"]
end

subgraph group_api["External Services"]
  node_publicapi{{"Public API"}}
  node_adminapi{{"Admin API"}}
  node_toss{{"Toss Payments"}}
  node_kakao{{"Kakao Maps"}}
end

node_visitor(("Attendee"))

node_visitor -->|"visits"| node_mode
node_mode -->|"selects mode"| node_coming
node_mode -->|"selects mode"| node_home
node_home -.->|"uses event data"| node_eventinfo
node_visitor -->|"browses"| node_guide
node_visitor -->|"browses"| node_directions
node_visitor -->|"reads or writes"| node_boards
node_visitor -->|"applies"| node_register
node_register -->|"loads options"| node_regoptions
node_regoptions -->|"fetches options"| node_publicapi
node_register -.->|"submits registration"| node_registrationapi
node_registrationapi -->|"calls API"| node_publicapi
node_visitor -->|"pays"| node_payment
node_payment -->|"uses widget"| node_toss
node_payment -.->|"uses payment logic"| node_paymentlib
node_visitor -->|"checks application"| node_lookup
node_lookup -->|"queries API"| node_publicapi
node_directions -->|"shows map"| node_kakao
node_adminlayout -.->|"checks session"| node_adminauth
node_adminlayout -.->|"hosts routes"| node_applications
node_applications -.->|"loads and updates"| node_adminapi
node_members -.->|"manages members"| node_adminapi
node_capacity -.->|"manages capacity"| node_adminapi
node_adminboards -.->|"manages boards"| node_adminapi
node_admincontent -.->|"updates content"| node_adminapi
node_dashboard -->|"loads reports"| node_adminapi
node_visitor -->|"administers"| node_adminlayout
node_adminauth -->|"authenticates"| node_adminapi

click node_mode "https://github.com/marvel-run/marvel-frontend/blob/develop/src/app/page.tsx"
click node_coming "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/coming-soon"
click node_home "https://github.com/marvel-run/marvel-frontend/blob/develop/src/components/main/home/HomePage.tsx"
click node_eventinfo "https://github.com/marvel-run/marvel-frontend/blob/develop/src/lib/event.ts"
click node_guide "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/guide"
click node_directions "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/directions"
click node_boards "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/notices"
click node_register "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/register"
click node_regoptions "https://github.com/marvel-run/marvel-frontend/blob/develop/src/components/main/register/useRegistrationOptions.ts"
click node_registrationapi "https://github.com/marvel-run/marvel-frontend/blob/develop/src/services/main/registrations.ts"
click node_lookup "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/lookup"
click node_payment "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/payment"
click node_paymentlib "https://github.com/marvel-run/marvel-frontend/tree/develop/src/lib/payment"
click node_adminlayout "https://github.com/marvel-run/marvel-frontend/blob/develop/src/layouts/admin/AdminLayout.tsx"
click node_adminauth "https://github.com/marvel-run/marvel-frontend/blob/develop/src/services/admin/auth.ts"
click node_applications "https://github.com/marvel-run/marvel-frontend/blob/develop/src/components/admin/applications/ApplicationsListPage.tsx"
click node_members "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/admin/members"
click node_capacity "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/admin/capacities"
click node_adminboards "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/admin/boards"
click node_admincontent "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/admin/content"
click node_dashboard "https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/admin/dashboard"

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_mode,node_coming toneBlue
class node_home,node_eventinfo,node_guide,node_directions,node_boards toneAmber
class node_register,node_regoptions,node_registrationapi,node_lookup,node_payment,node_paymentlib toneMint
class node_adminlayout,node_adminauth,node_applications,node_members,node_capacity,node_adminboards,node_admincontent,node_dashboard toneRose
class node_publicapi,node_adminapi,node_toss,node_kakao,node_visitor toneIndigo
```

## Components

### Site Modes

- [Mode Router](https://github.com/marvel-run/marvel-frontend/blob/develop/src/app/page.tsx): `src/app/page.tsx`
- [Coming Soon](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/coming-soon): `src/components/coming-soon`

### Public Experience

- [Event Home](https://github.com/marvel-run/marvel-frontend/blob/develop/src/components/main/home/HomePage.tsx): `src/components/main/home/HomePage.tsx`
- [Event Information](https://github.com/marvel-run/marvel-frontend/blob/develop/src/lib/event.ts): `src/lib/event.ts`
- [Guide & Kit](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/guide): `src/components/main/guide`
- [Directions](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/directions): `src/components/main/directions`
- [Public Boards](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/notices): `src/components/main/notices`

### Registration & Payment

- [Registration](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/register): `src/components/main/register`
- [Registration Options](https://github.com/marvel-run/marvel-frontend/blob/develop/src/components/main/register/useRegistrationOptions.ts): `src/components/main/register/useRegistrationOptions.ts`
- [Registration Service](https://github.com/marvel-run/marvel-frontend/blob/develop/src/services/main/registrations.ts): `src/services/main/registrations.ts`
- [Application Lookup](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/lookup): `src/components/main/lookup`
- [Payment](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/main/payment): `src/components/main/payment`
- [Payment Integration](https://github.com/marvel-run/marvel-frontend/tree/develop/src/lib/payment): `src/lib/payment`

### Operations Console

- [Admin Shell](https://github.com/marvel-run/marvel-frontend/blob/develop/src/layouts/admin/AdminLayout.tsx): `src/layouts/admin/AdminLayout.tsx`
- [Admin Authentication](https://github.com/marvel-run/marvel-frontend/blob/develop/src/services/admin/auth.ts): `src/services/admin/auth.ts`
- [Application Management](https://github.com/marvel-run/marvel-frontend/blob/develop/src/components/admin/applications/ApplicationsListPage.tsx): `src/components/admin/applications/ApplicationsListPage.tsx`
- [Member Management](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/admin/members): `src/components/admin/members`
- [Capacity Management](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/admin/capacities): `src/components/admin/capacities`
- [Board Management](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/admin/boards): `src/components/admin/boards`
- [Content & Legal](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/admin/content): `src/components/admin/content`
- [Reports & Dashboard](https://github.com/marvel-run/marvel-frontend/tree/develop/src/components/admin/dashboard): `src/components/admin/dashboard`

### External Services

- **Public API**
- **Admin API**
- **Toss Payments**
- **Kakao Maps**

### Other components

- **Attendee**

## Connections

- Attendee → Mode Router: visits (evidence: `README.md`)
- Mode Router → Coming Soon: selects mode (evidence: `src/app/page.tsx`)
- Mode Router → Event Home: selects mode (evidence: `src/app/page.tsx`)
- Event Home → Event Information: uses event data
- Attendee → Guide & Kit: browses (evidence: `README.md`)
- Attendee → Directions: browses (evidence: `README.md`)
- Attendee → Public Boards: reads or writes (evidence: `README.md`)
- Attendee → Registration: applies (evidence: `README.md`)
- Registration → Registration Options: loads options (evidence: `src/components/main/register/useRegistrationOptions.ts`)
- Registration Options → Public API: fetches options (evidence: `src/components/main/register/useRegistrationOptions.ts`)
- Registration → Registration Service: submits registration
- Registration Service → Public API: calls API (evidence: `README.md`)
- Attendee → Payment: pays (evidence: `README.md`)
- Payment → Toss Payments: uses widget (evidence: `README.md`)
- Payment → Payment Integration: uses payment logic
- Attendee → Application Lookup: checks application (evidence: `README.md`)
- Application Lookup → Public API: queries API (evidence: `README.md`)
- Directions → Kakao Maps: shows map (evidence: `README.md`)
- Admin Shell → Admin Authentication: checks session
- Admin Shell → Application Management: hosts routes
- Application Management → Admin API: loads and updates
- Member Management → Admin API: manages members
- Capacity Management → Admin API: manages capacity
- Board Management → Admin API: manages boards
- Content & Legal → Admin API: updates content
- Reports & Dashboard → Admin API: loads reports (evidence: `README.md`)
- Attendee → Admin Shell: administers (evidence: `README.md`)
- Admin Authentication → Admin API: authenticates (evidence: `src/services/admin/auth.ts`)
