# nekko-lab/mo-hp architecture

> Architecture diagram of the GitHub repository nekko-lab/mo-hp, 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/nekko-lab/mo-hp
- Repository: https://github.com/nekko-lab/mo-hp

## Overview

Miku’s Origin is a Japanese university club’s official website, presenting its activities, members, club information, and recruitment details. Visitors browse these pages; the activities page additionally fetches published entries from Growi, converts and sanitizes their Markdown, then provides tag filtering and detail views. The shared layout supplies site-wide navigation and footer elements. The source excerpts show the activities data flow and revalidation handler; other page connections are based on the README’s file-based routing description. Some UI and deployment details were not sampled.

Main entry points: [`app/activities/page.tsx`](https://github.com/nekko-lab/mo-hp/blob/master/app/activities/page.tsx) (Activity page), [`app/page.tsx`](https://github.com/nekko-lab/mo-hp/blob/master/app/page.tsx) (Home page), [`app/layout.tsx`](https://github.com/nekko-lab/mo-hp/blob/master/app/layout.tsx) (Site layout), [`app/recruit/page.tsx`](https://github.com/nekko-lab/mo-hp/blob/master/app/recruit/page.tsx) (Recruitment guide)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Public Pages"]
  node_home["Home page<br/>[page.tsx]"]
  node_about["Club overview<br/>[page.tsx]"]
  node_members["Member profiles<br/>[page.tsx]"]
  node_recruit["Recruitment guide<br/>[page.tsx]"]
end

subgraph group_activities["Activity Publishing"]
  node_activity_page["Activity page<br/>[page.tsx]"]
  node_activity_model["Activity data model<br/>[types.ts]"]
  node_growi_fetch["Growi content fetch<br/>[GrowiFetch.ts]"]
  node_markdown["Markdown sanitizer<br/>[markdown.ts]"]
  node_activity_ui["Activity browser"]
end

subgraph group_shared["Shared Site UI"]
  node_layout["Site layout<br/>[layout.tsx]"]
  node_header["Header<br/>[Header.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_console_art["Console artwork<br/>[ConsoleArt.tsx]"]
end

subgraph group_integrations["External Services"]
  node_revalidate["Cache revalidation API<br/>[route.ts]"]
  node_growi[("Growi CMS")]
  node_form["Google Forms"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens"| node_home
node_visitor -->|"opens"| node_about
node_visitor -->|"opens"| node_members
node_visitor -->|"opens"| node_recruit
node_visitor -->|"opens"| node_activity_page
node_home -->|"links to"| node_about
node_home -->|"links to"| node_recruit
node_home -->|"links to"| node_activity_page
node_activity_page -->|"fetches entries"| node_growi_fetch
node_growi_fetch -->|"reads pages"| node_growi
node_activity_page -->|"renders Markdown"| node_markdown
node_activity_page -->|"shapes data"| node_activity_model
node_activity_page -->|"passes activities"| node_activity_ui
node_revalidate -->|"expires cache"| node_growi_fetch
node_recruit -->|"links to"| node_form
node_layout -->|"renders"| node_header
node_layout -->|"renders"| node_footer
node_layout -->|"renders"| node_console_art

click node_home "https://github.com/nekko-lab/mo-hp/blob/master/app/page.tsx"
click node_about "https://github.com/nekko-lab/mo-hp/blob/master/app/about/page.tsx"
click node_members "https://github.com/nekko-lab/mo-hp/blob/master/app/members/page.tsx"
click node_recruit "https://github.com/nekko-lab/mo-hp/blob/master/app/recruit/page.tsx"
click node_activity_page "https://github.com/nekko-lab/mo-hp/blob/master/app/activities/page.tsx"
click node_activity_model "https://github.com/nekko-lab/mo-hp/blob/master/app/activities/types.ts"
click node_growi_fetch "https://github.com/nekko-lab/mo-hp/blob/master/app/activities/GrowiFetch.ts"
click node_markdown "https://github.com/nekko-lab/mo-hp/blob/master/app/activities/markdown.ts"
click node_activity_ui "https://github.com/nekko-lab/mo-hp/blob/master/app/activities/ActivitiesClient.tsx"
click node_revalidate "https://github.com/nekko-lab/mo-hp/blob/master/app/api/revalidate/route.ts"
click node_layout "https://github.com/nekko-lab/mo-hp/blob/master/app/layout.tsx"
click node_header "https://github.com/nekko-lab/mo-hp/blob/master/app/.components/Header.tsx"
click node_footer "https://github.com/nekko-lab/mo-hp/blob/master/app/.components/Footer.tsx"
click node_console_art "https://github.com/nekko-lab/mo-hp/blob/master/app/.components/ConsoleArt.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_about,node_members,node_recruit toneBlue
class node_activity_page,node_activity_model,node_growi_fetch,node_markdown,node_activity_ui toneAmber
class node_layout,node_header,node_footer,node_console_art toneMint
class node_revalidate,node_growi,node_form toneRose
class node_visitor toneIndigo
```

## Components

### Public Pages

- [Home page](https://github.com/nekko-lab/mo-hp/blob/master/app/page.tsx): `app/page.tsx`
- [Club overview](https://github.com/nekko-lab/mo-hp/blob/master/app/about/page.tsx): `app/about/page.tsx`
- [Member profiles](https://github.com/nekko-lab/mo-hp/blob/master/app/members/page.tsx): `app/members/page.tsx`
- [Recruitment guide](https://github.com/nekko-lab/mo-hp/blob/master/app/recruit/page.tsx): `app/recruit/page.tsx`

### Activity Publishing

- [Activity page](https://github.com/nekko-lab/mo-hp/blob/master/app/activities/page.tsx): `app/activities/page.tsx`
- [Activity data model](https://github.com/nekko-lab/mo-hp/blob/master/app/activities/types.ts): `app/activities/types.ts`
- [Growi content fetch](https://github.com/nekko-lab/mo-hp/blob/master/app/activities/GrowiFetch.ts): `app/activities/GrowiFetch.ts`
- [Markdown sanitizer](https://github.com/nekko-lab/mo-hp/blob/master/app/activities/markdown.ts): `app/activities/markdown.ts`
- [Activity browser](https://github.com/nekko-lab/mo-hp/blob/master/app/activities/ActivitiesClient.tsx): `app/activities/ActivitiesClient.tsx`

### Shared Site UI

- [Site layout](https://github.com/nekko-lab/mo-hp/blob/master/app/layout.tsx): `app/layout.tsx`
- [Header](https://github.com/nekko-lab/mo-hp/blob/master/app/.components/Header.tsx): `app/.components/Header.tsx`
- [Footer](https://github.com/nekko-lab/mo-hp/blob/master/app/.components/Footer.tsx): `app/.components/Footer.tsx`
- [Console artwork](https://github.com/nekko-lab/mo-hp/blob/master/app/.components/ConsoleArt.tsx): `app/.components/ConsoleArt.tsx`

### External Services

- [Cache revalidation API](https://github.com/nekko-lab/mo-hp/blob/master/app/api/revalidate/route.ts): `app/api/revalidate/route.ts`
- **Growi CMS**
- **Google Forms**

### Other components

- **Site visitor**

## Connections

- Site visitor → Home page: opens (evidence: `README.md`)
- Site visitor → Club overview: opens (evidence: `README.md`)
- Site visitor → Member profiles: opens (evidence: `README.md`)
- Site visitor → Recruitment guide: opens (evidence: `README.md`)
- Site visitor → Activity page: opens (evidence: `README.md`)
- Home page → Club overview: links to (evidence: `app/page.tsx`)
- Home page → Recruitment guide: links to (evidence: `app/page.tsx`)
- Home page → Activity page: links to (evidence: `app/page.tsx`)
- Activity page → Growi content fetch: fetches entries (evidence: `app/activities/page.tsx`)
- Growi content fetch → Growi CMS: reads pages (evidence: `app/activities/GrowiFetch.ts`)
- Activity page → Markdown sanitizer: renders Markdown (evidence: `app/activities/page.tsx`)
- Activity page → Activity data model: shapes data (evidence: `app/activities/page.tsx`)
- Activity page → Activity browser: passes activities (evidence: `app/activities/page.tsx`)
- Cache revalidation API → Growi content fetch: expires cache (evidence: `app/api/revalidate/route.ts`)
- Recruitment guide → Google Forms: links to (evidence: `app/recruit/page.tsx`)
- Site layout → Header: renders (evidence: `app/layout.tsx`)
- Site layout → Footer: renders (evidence: `app/layout.tsx`)
- Site layout → Console artwork: renders (evidence: `app/layout.tsx`)
