# yulanto-developers/freight_digital architecture

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

- Interactive diagram: https://gitdiagram.com/yulanto-developers/freight_digital
- Repository: https://github.com/yulanto-developers/freight_digital

## Overview

Symposium is a Next.js conference and freight-industry marketing site, with public event, editorial, and service pages plus account and admin features. Visitors browse the homepage and dedicated content pages; blog detail pages load Markdown posts and render them as HTML. Account routes provide registration, login, logout, and profile operations backed by MySQL. The graph emphasizes documented component calls and storage operations; several routes and UI connections are inferred from the app structure and are marked unverified rather than asserted as inspected.

Main entry points: [`src/lib/config.ts`](https://github.com/yulanto-developers/freight_digital/blob/main/src/lib/config.ts) (MySQL pool), [`src/app/(site)/blog/[slug]/page.tsx`](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/blog/%5Bslug%5D/page.tsx) (Blog detail), [`src/app/api/profile/route.ts`](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/api/profile/route.ts) (Profile endpoint), [`src/app/page.tsx`](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/page.tsx) (Homepage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Public site"]
  node_home["Homepage<br/>[page.tsx]"]
  node_home_sections["Home sections"]
  node_about_page["About page<br/>[page.tsx]"]
  node_about_components["About components<br/>[index.tsx]"]
  node_services_page["Services page<br/>[page.tsx]"]
  node_schedules_page["Schedules page<br/>[page.tsx]"]
  node_speakers_page["Speakers page<br/>[page.tsx]"]
  node_edition_page["Edition page<br/>[page.tsx]"]
  node_contact_page["Contact page<br/>[page.tsx]"]
end

subgraph group_editorial["Editorial content"]
  node_blog_list["Blog listing<br/>[page.tsx]"]
  node_blog_detail["Blog detail<br/>[page.tsx]"]
  node_blog_components["Blog components<br/>[index.tsx]"]
  node_markdown_store["Markdown posts<br/>[markdown.ts]"]
  node_markdown_html["Markdown renderer<br/>[markdownToHtml.ts]"]
end

subgraph group_accounts["Accounts and admin"]
  node_auth_ui["Sign-in and signup<br/>[index.tsx]"]
  node_signup_ui["Registration UI<br/>[index.tsx]"]
  node_login_api["Login endpoint<br/>[route.ts]"]
  node_register_api["Registration endpoint<br/>[route.ts]"]
  node_logout_api["Logout endpoint<br/>[route.ts]"]
  node_profile_api["Profile endpoint<br/>[route.ts]"]
  node_admin_profile["Admin profile<br/>[page.tsx]"]
  node_auth_mock["Auth mock<br/>[authMock.tsx]"]
end

subgraph group_data["Data access"]
  node_cookie_check["Cookie validation<br/>[CheckCookies.tsx]"]
  node_db_config["MySQL pool<br/>[config.ts]"]
  node_event_data["Event data<br/>[data.tsx]"]
end

node_visitor(("Visitor"))
node_mysql[("MySQL database")]

node_visitor -->|"browses"| node_home
node_home -->|"renders"| node_home_sections
node_visitor -->|"opens"| node_about_page
node_visitor -->|"opens"| node_services_page
node_visitor -->|"opens"| node_schedules_page
node_visitor -->|"opens"| node_speakers_page
node_visitor -->|"opens"| node_edition_page
node_visitor -->|"opens"| node_contact_page
node_about_page -->|"renders"| node_about_components
node_visitor -->|"browses"| node_blog_list
node_blog_list -->|"renders"| node_blog_components
node_visitor -->|"opens post"| node_blog_detail
node_blog_detail -->|"loads posts"| node_markdown_store
node_blog_detail -->|"renders content"| node_markdown_html
node_blog_components -->|"loads posts"| node_markdown_store
node_visitor -.->|"starts sign-in"| node_auth_ui
node_visitor -.->|"starts signup"| node_signup_ui
node_auth_ui -.->|"submits credentials"| node_login_api
node_signup_ui -.->|"submits registration"| node_register_api
node_visitor -.->|"requests logout"| node_logout_api
node_visitor -.->|"manages profile"| node_admin_profile
node_admin_profile -.->|"updates profile"| node_profile_api
node_login_api -->|"queries"| node_db_config
node_register_api -->|"creates accounts"| node_db_config
node_profile_api -->|"validates token"| node_cookie_check
node_profile_api -->|"reads and updates"| node_db_config
node_db_config -->|"creates pool"| node_mysql
node_home_sections -.->|"loads event data"| node_event_data

click node_home "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/page.tsx"
click node_home_sections "https://github.com/yulanto-developers/freight_digital/tree/main/src/components/Home"
click node_about_page "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/about/page.tsx"
click node_about_components "https://github.com/yulanto-developers/freight_digital/blob/main/src/components/about/index.tsx"
click node_services_page "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/services/page.tsx"
click node_schedules_page "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/schedules/page.tsx"
click node_speakers_page "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/speakers/page.tsx"
click node_edition_page "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/edition/page.tsx"
click node_contact_page "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/contact/page.tsx"
click node_blog_list "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/blog/page.tsx"
click node_blog_detail "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/blog/%5Bslug%5D/page.tsx"
click node_blog_components "https://github.com/yulanto-developers/freight_digital/blob/main/src/components/Blog/BlogList/index.tsx"
click node_markdown_store "https://github.com/yulanto-developers/freight_digital/blob/main/src/utils/markdown.ts"
click node_markdown_html "https://github.com/yulanto-developers/freight_digital/blob/main/src/utils/markdownToHtml.ts"
click node_auth_ui "https://github.com/yulanto-developers/freight_digital/blob/main/src/components/Auth/SignIn/index.tsx"
click node_signup_ui "https://github.com/yulanto-developers/freight_digital/blob/main/src/components/Auth/SignUp/index.tsx"
click node_login_api "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/api/login/route.ts"
click node_register_api "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/api/register/route.ts"
click node_logout_api "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/api/logout/route.ts"
click node_profile_api "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/api/profile/route.ts"
click node_admin_profile "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/admin/profile/page.tsx"
click node_cookie_check "https://github.com/yulanto-developers/freight_digital/blob/main/src/lib/CheckCookies.tsx"
click node_db_config "https://github.com/yulanto-developers/freight_digital/blob/main/src/lib/config.ts"
click node_event_data "https://github.com/yulanto-developers/freight_digital/blob/main/src/app/api/data.tsx"
click node_auth_mock "https://github.com/yulanto-developers/freight_digital/blob/main/src/lib/trash/authMock.tsx"

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_home,node_home_sections,node_about_page,node_about_components,node_services_page,node_schedules_page,node_speakers_page,node_edition_page,node_contact_page toneBlue
class node_blog_list,node_blog_detail,node_blog_components,node_markdown_store,node_markdown_html,node_mysql toneAmber
class node_auth_ui,node_signup_ui,node_login_api,node_register_api,node_logout_api,node_profile_api,node_admin_profile,node_auth_mock toneMint
class node_cookie_check,node_db_config,node_event_data toneRose
class node_visitor toneIndigo
```

## Components

### Public site

- [Homepage](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Home sections](https://github.com/yulanto-developers/freight_digital/tree/main/src/components/Home): `src/components/Home`
- [About page](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/about/page.tsx): `src/app/(site)/about/page.tsx`
- [About components](https://github.com/yulanto-developers/freight_digital/blob/main/src/components/about/index.tsx): `src/components/about/index.tsx`
- [Services page](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/services/page.tsx): `src/app/(site)/services/page.tsx`
- [Schedules page](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/schedules/page.tsx): `src/app/(site)/schedules/page.tsx`
- [Speakers page](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/speakers/page.tsx): `src/app/(site)/speakers/page.tsx`
- [Edition page](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/edition/page.tsx): `src/app/(site)/edition/page.tsx`
- [Contact page](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/contact/page.tsx): `src/app/(site)/contact/page.tsx`

### Editorial content

- [Blog listing](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/blog/page.tsx): `src/app/(site)/blog/page.tsx`
- [Blog detail](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/blog/%5Bslug%5D/page.tsx): `src/app/(site)/blog/[slug]/page.tsx`
- [Blog components](https://github.com/yulanto-developers/freight_digital/blob/main/src/components/Blog/BlogList/index.tsx): `src/components/Blog/BlogList/index.tsx`
- [Markdown posts](https://github.com/yulanto-developers/freight_digital/blob/main/src/utils/markdown.ts): `src/utils/markdown.ts`
- [Markdown renderer](https://github.com/yulanto-developers/freight_digital/blob/main/src/utils/markdownToHtml.ts): `src/utils/markdownToHtml.ts`

### Accounts and admin

- [Sign-in and signup](https://github.com/yulanto-developers/freight_digital/blob/main/src/components/Auth/SignIn/index.tsx): `src/components/Auth/SignIn/index.tsx`
- [Registration UI](https://github.com/yulanto-developers/freight_digital/blob/main/src/components/Auth/SignUp/index.tsx): `src/components/Auth/SignUp/index.tsx`
- [Login endpoint](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/api/login/route.ts): `src/app/api/login/route.ts`
- [Registration endpoint](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/api/register/route.ts): `src/app/api/register/route.ts`
- [Logout endpoint](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/api/logout/route.ts): `src/app/api/logout/route.ts`
- [Profile endpoint](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/api/profile/route.ts): `src/app/api/profile/route.ts`
- [Admin profile](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/(site)/admin/profile/page.tsx): `src/app/(site)/admin/profile/page.tsx`
- [Auth mock](https://github.com/yulanto-developers/freight_digital/blob/main/src/lib/trash/authMock.tsx): `src/lib/trash/authMock.tsx`

### Data access

- [Cookie validation](https://github.com/yulanto-developers/freight_digital/blob/main/src/lib/CheckCookies.tsx): `src/lib/CheckCookies.tsx`
- [MySQL pool](https://github.com/yulanto-developers/freight_digital/blob/main/src/lib/config.ts): `src/lib/config.ts`
- [Event data](https://github.com/yulanto-developers/freight_digital/blob/main/src/app/api/data.tsx): `src/app/api/data.tsx`

### Other components

- **Visitor**
- **MySQL database**

## Connections

- Visitor → Homepage: browses
- Homepage → Home sections: renders (evidence: `src/app/page.tsx`)
- Visitor → About page: opens
- Visitor → Services page: opens
- Visitor → Schedules page: opens
- Visitor → Speakers page: opens
- Visitor → Edition page: opens
- Visitor → Contact page: opens
- About page → About components: renders (evidence: `src/app/(site)/about/page.tsx`)
- Visitor → Blog listing: browses
- Blog listing → Blog components: renders (evidence: `src/app/(site)/blog/page.tsx`)
- Visitor → Blog detail: opens post
- Blog detail → Markdown posts: loads posts (evidence: `src/app/(site)/blog/[slug]/page.tsx`)
- Blog detail → Markdown renderer: renders content (evidence: `src/app/(site)/blog/[slug]/page.tsx`)
- Blog components → Markdown posts: loads posts (evidence: `src/components/Blog/BlogList/index.tsx`)
- Visitor → Sign-in and signup: starts sign-in · Inferred; not shown in the code that was read.
- Visitor → Registration UI: starts signup · Inferred; not shown in the code that was read.
- Sign-in and signup → Login endpoint: submits credentials · Inferred; not shown in the code that was read.
- Registration UI → Registration endpoint: submits registration · Inferred; not shown in the code that was read.
- Visitor → Logout endpoint: requests logout · Inferred; not shown in the code that was read.
- Visitor → Admin profile: manages profile · Inferred; not shown in the code that was read.
- Admin profile → Profile endpoint: updates profile · Inferred; not shown in the code that was read.
- Login endpoint → MySQL pool: queries (evidence: `src/app/api/login/route.ts`)
- Registration endpoint → MySQL pool: creates accounts (evidence: `src/app/api/register/route.ts`)
- Profile endpoint → Cookie validation: validates token (evidence: `src/app/api/profile/route.ts`)
- Profile endpoint → MySQL pool: reads and updates (evidence: `src/app/api/profile/route.ts`)
- MySQL pool → MySQL database: creates pool (evidence: `src/lib/config.ts`)
- Home sections → Event data: loads event data · Inferred; not shown in the code that was read. (evidence: `src/components/Home/WorkSpeakers/index.tsx`)
