# ericcolegame/maplestoryclassicworld_top architecture

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

- Interactive diagram: https://gitdiagram.com/ericcolegame/maplestoryclassicworld_top
- Repository: https://github.com/ericcolegame/maplestoryclassicworld_top

## Overview

This is a multilingual MapleStory Classic World wiki and guide site. Visitors enter through locale-specific pages: the home page presents highlights and links, while content-type and article routes load MDX content for browsing and reading. The main internal layer is the filesystem-backed content service, which discovers localized pages and navigation groups. The site also provides shared navigation, language and theme controls, advertising, legal pages, and search-engine-facing routes. Edges reflect shown imports/calls or indexed references; unsampled route and layout wiring is omitted where not established.

Main entry points: [`src/components/site.tsx`](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/site.tsx) (Site shell and navigation), [`src/app/[locale]/[...slug]/page.tsx`](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/%5Blocale%5D/%5B...slug%5D/page.tsx) (Wiki routes), [`src/lib/content.ts`](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/lib/content.ts) (MDX content service), [`src/components/ads/AdBanner.tsx`](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/ads/AdBanner.tsx) (Ad placements)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Pages and content"]
  node_home["Localized homepage<br/>[page.tsx]"]
  node_homeclient["Homepage experience<br/>[HomePageClient.tsx]"]
  node_wikiroute["Wiki routes<br/>[page.tsx]"]
  node_legalroutes["Legal pages<br/>[page.tsx]"]
  node_legal["Legal page layout<br/>[legal-page.tsx]"]
end

subgraph group_content["Content services"]
  node_contentlib["MDX content service<br/>[content.ts]"]
  node_navconfig["Content navigation config<br/>[navigation.ts]"]
  node_mdxcomponents["MDX components<br/>[mdx-components.tsx]"]
  node_i18nrouting["Locale routing<br/>[routing.ts]"]
  node_i18nrequest["Locale messages<br/>[request.ts]"]
end

subgraph group_shell["Shared site UI"]
  node_site["Site shell and navigation<br/>[site.tsx]"]
  node_langswitch["Language switcher"]
  node_navgroup["Collapsible nav group"]
  node_toc["Table of contents"]
end

subgraph group_support["Site capabilities"]
  node_ads["Ad placements<br/>[AdBanner.tsx]"]
  node_adconfig["Ad configuration<br/>[ad-config.ts]"]
  node_stickyad["Dismissible sticky ad"]
  node_nativead["Native banner ad<br/>[NativeBannerAd.tsx]"]
  node_adroute["Ad redirect route<br/>[route.ts]"]
  node_adsfile["Ads.txt endpoint<br/>[route.ts]"]
  node_siteconfig["Site identity config<br/>[site.ts]"]
  node_sitemap["Sitemap endpoint<br/>[sitemap.ts]"]
  node_robots["Robots endpoint<br/>[robots.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_visitor -->|"opens"| node_wikiroute
node_home -->|"renders"| node_homeclient
node_homeclient -->|"places ads"| node_ads
node_homeclient -->|"uses helpers"| node_site
node_wikiroute -->|"loads content"| node_contentlib
node_wikiroute -->|"uses site UI"| node_site
node_wikiroute -->|"places ads"| node_ads
node_contentlib -->|"reads types"| node_navconfig
node_contentlib -->|"uses locales"| node_i18nrouting
node_site -->|"reads navigation"| node_navconfig
node_site -->|"uses nav groups"| node_contentlib
node_site -->|"renders"| node_langswitch
node_site -->|"renders"| node_navgroup
node_site -->|"reads identity"| node_siteconfig
node_langswitch -->|"uses routing"| node_i18nrouting
node_ads -->|"reads settings"| node_adconfig
node_stickyad -->|"renders"| node_ads
node_legalroutes -->|"renders"| node_legal

click node_home "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/%5Blocale%5D/page.tsx"
click node_homeclient "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/%5Blocale%5D/HomePageClient.tsx"
click node_wikiroute "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/%5Blocale%5D/%5B...slug%5D/page.tsx"
click node_legalroutes "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/%5Blocale%5D/about/page.tsx"
click node_legal "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/legal-page.tsx"
click node_contentlib "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/lib/content.ts"
click node_navconfig "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/config/navigation.ts"
click node_mdxcomponents "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/mdx-components.tsx"
click node_i18nrouting "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/i18n/routing.ts"
click node_i18nrequest "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/i18n/request.ts"
click node_site "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/site.tsx"
click node_langswitch "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/language-switcher.tsx"
click node_navgroup "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/collapsible-nav-group.tsx"
click node_toc "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/table-of-contents.tsx"
click node_ads "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/ads/AdBanner.tsx"
click node_adconfig "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/ads/ad-config.ts"
click node_stickyad "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/ads/DismissibleStickyBanner.tsx"
click node_nativead "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/ads/NativeBannerAd.tsx"
click node_adroute "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/ads/%5Bslug%5D/route.ts"
click node_adsfile "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/ads.txt/route.ts"
click node_siteconfig "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/config/site.ts"
click node_sitemap "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/sitemap.ts"
click node_robots "https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/robots.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_home,node_homeclient,node_wikiroute,node_legalroutes,node_legal toneBlue
class node_contentlib,node_navconfig,node_mdxcomponents,node_i18nrouting,node_i18nrequest toneAmber
class node_site,node_langswitch,node_navgroup,node_toc toneMint
class node_ads,node_adconfig,node_stickyad,node_nativead,node_adroute,node_adsfile,node_siteconfig,node_sitemap,node_robots toneRose
class node_visitor toneIndigo
```

## Components

### Pages and content

- [Localized homepage](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/%5Blocale%5D/page.tsx): `src/app/[locale]/page.tsx`
- [Homepage experience](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/%5Blocale%5D/HomePageClient.tsx): `src/app/[locale]/HomePageClient.tsx`
- [Wiki routes](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/%5Blocale%5D/%5B...slug%5D/page.tsx): `src/app/[locale]/[...slug]/page.tsx`
- [Legal pages](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/%5Blocale%5D/about/page.tsx): `src/app/[locale]/about/page.tsx`
- [Legal page layout](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/legal-page.tsx): `src/components/legal-page.tsx`

### Content services

- [MDX content service](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/lib/content.ts): `src/lib/content.ts`
- [Content navigation config](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/config/navigation.ts): `src/config/navigation.ts`
- [MDX components](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/mdx-components.tsx): `src/mdx-components.tsx`
- [Locale routing](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/i18n/routing.ts): `src/i18n/routing.ts`
- [Locale messages](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/i18n/request.ts): `src/i18n/request.ts`

### Shared site UI

- [Site shell and navigation](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/site.tsx): `src/components/site.tsx`
- [Language switcher](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/language-switcher.tsx): `src/components/language-switcher.tsx`
- [Collapsible nav group](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/collapsible-nav-group.tsx): `src/components/collapsible-nav-group.tsx`
- [Table of contents](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/table-of-contents.tsx): `src/components/table-of-contents.tsx`

### Site capabilities

- [Ad placements](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/ads/AdBanner.tsx): `src/components/ads/AdBanner.tsx`
- [Ad configuration](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/ads/ad-config.ts): `src/components/ads/ad-config.ts`
- [Dismissible sticky ad](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/ads/DismissibleStickyBanner.tsx): `src/components/ads/DismissibleStickyBanner.tsx`
- [Native banner ad](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/components/ads/NativeBannerAd.tsx): `src/components/ads/NativeBannerAd.tsx`
- [Ad redirect route](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/ads/%5Bslug%5D/route.ts): `src/app/ads/[slug]/route.ts`
- [Ads.txt endpoint](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/ads.txt/route.ts): `src/app/ads.txt/route.ts`
- [Site identity config](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/config/site.ts): `src/config/site.ts`
- [Sitemap endpoint](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/sitemap.ts): `src/app/sitemap.ts`
- [Robots endpoint](https://github.com/ericcolegame/maplestoryclassicworld_top/blob/main/src/app/robots.ts): `src/app/robots.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Localized homepage: opens (evidence: `src/app/[locale]/page.tsx`)
- Visitor → Wiki routes: opens (evidence: `src/app/[locale]/[...slug]/page.tsx`)
- Localized homepage → Homepage experience: renders (evidence: `src/app/[locale]/page.tsx`)
- Homepage experience → Ad placements: places ads (evidence: `src/app/[locale]/HomePageClient.tsx`)
- Homepage experience → Site shell and navigation: uses helpers (evidence: `src/app/[locale]/HomePageClient.tsx`)
- Wiki routes → MDX content service: loads content (evidence: `src/app/[locale]/[...slug]/page.tsx`)
- Wiki routes → Site shell and navigation: uses site UI (evidence: `src/app/[locale]/[...slug]/page.tsx`)
- Wiki routes → Ad placements: places ads (evidence: `src/app/[locale]/[...slug]/page.tsx`)
- MDX content service → Content navigation config: reads types (evidence: `src/lib/content.ts`)
- MDX content service → Locale routing: uses locales (evidence: `src/lib/content.ts`)
- Site shell and navigation → Content navigation config: reads navigation (evidence: `src/components/site.tsx`)
- Site shell and navigation → MDX content service: uses nav groups (evidence: `src/components/site.tsx`)
- Site shell and navigation → Language switcher: renders (evidence: `src/components/site.tsx`)
- Site shell and navigation → Collapsible nav group: renders (evidence: `src/components/site.tsx`)
- Site shell and navigation → Site identity config: reads identity (evidence: `src/components/site.tsx`)
- Language switcher → Locale routing: uses routing (evidence: `src/components/language-switcher.tsx`)
- Ad placements → Ad configuration: reads settings (evidence: `src/components/ads/AdBanner.tsx`)
- Dismissible sticky ad → Ad placements: renders (evidence: `src/components/ads/DismissibleStickyBanner.tsx`)
- Legal pages → Legal page layout: renders (evidence: `src/app/[locale]/about/page.tsx`)
