# blackscythe123/cc-website-2026 architecture

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

- Interactive diagram: https://gitdiagram.com/blackscythe123/cc-website-2026
- Repository: https://github.com/blackscythe123/cc-website-2026

## Overview

This monorepo provides a centralized editorial studio and a community portal ecosystem. The main workflow is authoring and reviewing posts in CMS Studio, committing approved content through GitHub pull requests, then presenting club-wide and vertical-specific articles on the central and standalone portals. The README documents the broad editorial and publishing flow; sampled excerpts verify portal-page calls to post-reading helpers. Most CMS implementation details and some portal readers were not sampled, so those internal links are omitted or marked unverified.

Main entry points: [`apps/cms-studio/src/app/admin/page.tsx`](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/admin/page.tsx) (Canvas editor), [`apps/main-portal/src/app/page.tsx`](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/app/page.tsx) (Community home), [`apps/main-portal/src/lib/posts.ts`](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/lib/posts.ts) (Main post reader), [`apps/ai-ml-portal/src/lib/posts.ts`](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/ai-ml-portal/src/lib/posts.ts) (Vertical post reader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editorial["Editorial Studio"]
  node_cms_editor["Canvas editor<br/>[page.tsx]"]
  node_cms_posts["Post management<br/>[route.ts]"]
  node_cms_drafts["Draft and recovery<br/>[route.ts]"]
  node_draft_storage[("Local draft storage<br/>[draftStorage.ts]")]
  node_media["Media staging<br/>[route.ts]"]
  node_repurpose["Post repurposing<br/>[repurposer.ts]"]
  node_reviews["Editorial reviews<br/>[route.ts]"]
  node_roles["Roles and requests<br/>[route.ts]"]
end

subgraph group_content["Content and Approval"]
  node_github["GitHub repository"]
  node_schema["Content schema<br/>[index.ts]"]
end

subgraph group_community["Community Portal"]
  node_main_site["Community home<br/>[page.tsx]"]
  node_main_sections["Club sections"]
  node_vertical_showcase["Vertical showcase<br/>[page.tsx]"]
  node_search["Portal search<br/>[SearchModal.tsx]"]
  node_blog_feed["Cross-vertical blog<br/>[page.tsx]"]
  node_blog_article["Blog article<br/>[page.tsx]"]
  node_main_posts["Main post reader<br/>[posts.ts]"]
end

subgraph group_verticals["Vertical Portals"]
  node_vertical_template["Portal template<br/>[page.tsx]"]
  node_vertical_reader["Vertical post reader<br/>[posts.ts]"]
  node_vertical_article["Vertical article page<br/>[page.tsx]"]
end

node_member(("Club member"))

node_member -->|"writes posts"| node_cms_editor
node_cms_editor -.->|"saves drafts"| node_cms_drafts
node_cms_drafts -.->|"recovers locally"| node_draft_storage
node_cms_editor -.->|"stages media"| node_media
node_cms_editor -.->|"repurposes posts"| node_repurpose
node_cms_editor -.->|"manages posts"| node_cms_posts
node_cms_posts -->|"creates pull requests"| node_github
node_reviews -->|"approves changes"| node_github
node_roles -.->|"controls access"| node_cms_editor
node_github -.->|"validated against"| node_schema
node_github -->|"provides published content"| node_main_posts
node_github -->|"provides vertical posts"| node_vertical_reader
node_main_site -.->|"renders sections"| node_main_sections
node_main_site -.->|"links showcase"| node_vertical_showcase
node_main_site -.->|"opens search"| node_search
node_blog_feed -.->|"reads posts"| node_main_posts
node_blog_article -.->|"loads article"| node_main_posts
node_vertical_template -->|"loads feed"| node_vertical_reader
node_vertical_article -->|"loads article"| node_vertical_reader

click node_cms_editor "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/admin/page.tsx"
click node_cms_posts "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/api/posts/manage/route.ts"
click node_cms_drafts "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/api/posts/draft/route.ts"
click node_draft_storage "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/lib/draftStorage.ts"
click node_media "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/api/upload/route.ts"
click node_repurpose "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/lib/repurposer.ts"
click node_reviews "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/api/posts/reviews/route.ts"
click node_roles "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/api/roles/requests/route.ts"
click node_schema "https://github.com/blackscythe123/cc-website-2026/blob/main/packages/content-schema/src/index.ts"
click node_main_site "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/app/page.tsx"
click node_main_sections "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/components/ProjectsSection.tsx"
click node_vertical_showcase "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/app/verticals/%5Bslug%5D/page.tsx"
click node_search "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/components/SearchModal.tsx"
click node_blog_feed "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/app/blog/page.tsx"
click node_blog_article "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/app/blog/%5Bvertical%5D/%5Bslug%5D/page.tsx"
click node_main_posts "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/lib/posts.ts"
click node_vertical_template "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/vertical-portal-template/src/app/page.tsx"
click node_vertical_reader "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/ai-ml-portal/src/lib/posts.ts"
click node_vertical_article "https://github.com/blackscythe123/cc-website-2026/blob/main/apps/ai-ml-portal/src/app/posts/%5Bslug%5D/page.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_cms_editor,node_cms_posts,node_cms_drafts,node_draft_storage,node_media,node_repurpose,node_reviews,node_roles toneBlue
class node_github,node_schema toneAmber
class node_main_site,node_main_sections,node_vertical_showcase,node_search,node_blog_feed,node_blog_article,node_main_posts toneMint
class node_vertical_template,node_vertical_reader,node_vertical_article toneRose
class node_member toneIndigo
```

## Components

### Editorial Studio

- [Canvas editor](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/admin/page.tsx): `apps/cms-studio/src/app/admin/page.tsx`
- [Post management](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/api/posts/manage/route.ts): `apps/cms-studio/src/app/api/posts/manage/route.ts`
- [Draft and recovery](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/api/posts/draft/route.ts): `apps/cms-studio/src/app/api/posts/draft/route.ts`
- [Local draft storage](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/lib/draftStorage.ts): `apps/cms-studio/src/lib/draftStorage.ts`
- [Media staging](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/api/upload/route.ts): `apps/cms-studio/src/app/api/upload/route.ts`
- [Post repurposing](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/lib/repurposer.ts): `apps/cms-studio/src/lib/repurposer.ts`
- [Editorial reviews](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/api/posts/reviews/route.ts): `apps/cms-studio/src/app/api/posts/reviews/route.ts`
- [Roles and requests](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/cms-studio/src/app/api/roles/requests/route.ts): `apps/cms-studio/src/app/api/roles/requests/route.ts`

### Content and Approval

- **GitHub repository**
- [Content schema](https://github.com/blackscythe123/cc-website-2026/blob/main/packages/content-schema/src/index.ts): `packages/content-schema/src/index.ts`

### Community Portal

- [Community home](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/app/page.tsx): `apps/main-portal/src/app/page.tsx`
- [Club sections](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/components/ProjectsSection.tsx): `apps/main-portal/src/components/ProjectsSection.tsx`
- [Vertical showcase](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/app/verticals/%5Bslug%5D/page.tsx): `apps/main-portal/src/app/verticals/[slug]/page.tsx`
- [Portal search](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/components/SearchModal.tsx): `apps/main-portal/src/components/SearchModal.tsx`
- [Cross-vertical blog](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/app/blog/page.tsx): `apps/main-portal/src/app/blog/page.tsx`
- [Blog article](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/app/blog/%5Bvertical%5D/%5Bslug%5D/page.tsx): `apps/main-portal/src/app/blog/[vertical]/[slug]/page.tsx`
- [Main post reader](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/main-portal/src/lib/posts.ts): `apps/main-portal/src/lib/posts.ts`

### Vertical Portals

- [Portal template](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/vertical-portal-template/src/app/page.tsx): `apps/vertical-portal-template/src/app/page.tsx`
- [Vertical post reader](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/ai-ml-portal/src/lib/posts.ts): `apps/ai-ml-portal/src/lib/posts.ts`
- [Vertical article page](https://github.com/blackscythe123/cc-website-2026/blob/main/apps/ai-ml-portal/src/app/posts/%5Bslug%5D/page.tsx): `apps/ai-ml-portal/src/app/posts/[slug]/page.tsx`

### Other components

- **Club member**

## Connections

- Club member → Canvas editor: writes posts (evidence: `README.md`)
- Canvas editor → Draft and recovery: saves drafts
- Draft and recovery → Local draft storage: recovers locally
- Canvas editor → Media staging: stages media
- Canvas editor → Post repurposing: repurposes posts
- Canvas editor → Post management: manages posts
- Post management → GitHub repository: creates pull requests (evidence: `README.md`)
- Editorial reviews → GitHub repository: approves changes (evidence: `README.md`)
- Roles and requests → Canvas editor: controls access
- GitHub repository → Content schema: validated against
- GitHub repository → Main post reader: provides published content (evidence: `README.md`)
- GitHub repository → Vertical post reader: provides vertical posts (evidence: `README.md`)
- Community home → Club sections: renders sections
- Community home → Vertical showcase: links showcase
- Community home → Portal search: opens search
- Cross-vertical blog → Main post reader: reads posts
- Blog article → Main post reader: loads article
- Portal template → Vertical post reader: loads feed
- Vertical article page → Vertical post reader: loads article (evidence: `apps/ai-ml-portal/src/app/posts/[slug]/page.tsx`)
