# muhammads1364/edumotive architecture

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

- Interactive diagram: https://gitdiagram.com/muhammads1364/edumotive
- Repository: https://github.com/muhammads1364/edumotive

## Overview

EduMotive is the public education magazine, with a visitor workflow from routed pages to editorial content, issue reading, and subscription/account features. Motive Admin manages the magazine’s editorial and operational content; UniMedia provides a companion campus-media experience. The apps use ZiteJS endpoints and share Turso-backed data through the repository’s database package. Several routes and endpoint implementations were not sampled, so their internal call relationships are not asserted.

Main entry points: [`apps/edumotive/src/App.tsx`](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/App.tsx) (Public routes), [`apps/unimedia/src/App.tsx`](https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/App.tsx) (Media routes), [`apps/motive-admin/src/App.tsx`](https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/App.tsx) (Admin console), [`apps/edumotive/src/lib/db.ts`](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/lib/db.ts) (App DB clients)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["EduMotive Public Site"]
  node_edu_routes["Public routes<br/>[App.tsx]"]
  node_edu_layout["Site layout<br/>[Layout.tsx]"]
  node_edu_content["Editorial content<br/>[content.ts]"]
  node_edu_auth["Visitor accounts<br/>[auth.tsx]"]
  node_edu_article["Articles and authors<br/>[ArticlePage.tsx]"]
  node_edu_issues["Magazine reader"]
  node_edu_subscribe["Subscriptions<br/>[SubscribePage.tsx]"]
  node_edu_account["Account and writing<br/>[AccountPage.tsx]"]
  node_edu_other["Programs and news<br/>[NewsPage.tsx]"]
end

subgraph group_admin["Motive Admin"]
  node_admin_routes["Admin console<br/>[App.tsx]"]
  node_admin_articles["Article moderation<br/>[ArticlesAdmin.tsx]"]
  node_admin_crud["Content management<br/>[CrudPage.tsx]"]
  node_admin_config["Site configuration<br/>[ConfigPages.tsx]"]
  node_admin_planner["Editorial planner<br/>[PlannerAdmin.tsx]"]
  node_admin_subs["Subscription admin"]
  node_admin_access["Admin access<br/>[admin.ts]"]
end

subgraph group_media["UniMedia"]
  node_media_routes["Media routes<br/>[App.tsx]"]
  node_media_feed["Campus feed<br/>[PostCard.tsx]"]
  node_media_create["Post creation<br/>[NewPost.tsx]"]
  node_media_stories["Stories<br/>[StoriesBar.tsx]"]
  node_media_profile["Media profiles<br/>[ProfilePage.tsx]"]
  node_media_auth["Media accounts<br/>[auth.tsx]"]
end

subgraph group_shared["Shared Data"]
  node_db_clients["App DB clients<br/>[db.ts]"]
  node_turso_client["Turso client<br/>[index.ts]"]
  node_turso_store[("Turso database")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_edu_routes
node_edu_routes -->|"wraps routes"| node_edu_layout
node_edu_routes -->|"routes to"| node_edu_article
node_edu_routes -->|"routes to"| node_edu_issues
node_edu_routes -->|"routes to"| node_edu_subscribe
node_edu_routes -->|"routes to"| node_edu_account
node_edu_routes -->|"routes to"| node_edu_other
node_edu_article -->|"reads content"| node_edu_content
node_edu_content -->|"fetches public data"| node_edu_routes
node_edu_routes -->|"provides auth"| node_edu_auth
node_visitor -->|"opens"| node_admin_routes
node_admin_routes -->|"routes to"| node_admin_articles
node_admin_routes -->|"routes to"| node_admin_config
node_admin_routes -->|"routes to"| node_admin_planner
node_admin_routes -->|"routes to"| node_admin_subs
node_admin_articles -.->|"uses CRUD"| node_admin_crud
node_visitor -->|"opens"| node_media_routes
node_media_routes -->|"renders posts"| node_media_feed
node_media_routes -->|"opens composer"| node_media_create
node_media_routes -->|"renders stories"| node_media_stories
node_media_routes -->|"routes to"| node_media_profile
node_media_routes -->|"provides auth"| node_media_auth
node_db_clients -.->|"creates client"| node_turso_client
node_turso_client -->|"reads and writes"| node_turso_store
node_db_clients -->|"connects app data"| node_turso_store

click node_edu_routes "https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/App.tsx"
click node_edu_layout "https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/components/Layout.tsx"
click node_edu_content "https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/lib/content.ts"
click node_edu_auth "https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/lib/auth.tsx"
click node_edu_article "https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/pages/ArticlePage.tsx"
click node_edu_issues "https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/pages/IssueReaderPage.tsx"
click node_edu_subscribe "https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/pages/SubscribePage.tsx"
click node_edu_account "https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/pages/AccountPage.tsx"
click node_edu_other "https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/pages/NewsPage.tsx"
click node_admin_routes "https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/App.tsx"
click node_admin_articles "https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/pages/ArticlesAdmin.tsx"
click node_admin_crud "https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/components/CrudPage.tsx"
click node_admin_config "https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/pages/ConfigPages.tsx"
click node_admin_planner "https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/pages/PlannerAdmin.tsx"
click node_admin_subs "https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/pages/SubscriptionsAdmin.tsx"
click node_admin_access "https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/lib/admin.ts"
click node_media_routes "https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/App.tsx"
click node_media_feed "https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/components/PostCard.tsx"
click node_media_create "https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/components/NewPost.tsx"
click node_media_stories "https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/components/StoriesBar.tsx"
click node_media_profile "https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/pages/ProfilePage.tsx"
click node_media_auth "https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/lib/auth.tsx"
click node_db_clients "https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/lib/db.ts"
click node_turso_client "https://github.com/muhammads1364/edumotive/blob/main/packages/tursodb/index.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_edu_routes,node_edu_layout,node_edu_content,node_edu_auth,node_edu_article,node_edu_issues,node_edu_subscribe,node_edu_account,node_edu_other toneBlue
class node_admin_routes,node_admin_articles,node_admin_crud,node_admin_config,node_admin_planner,node_admin_subs,node_admin_access toneAmber
class node_media_routes,node_media_feed,node_media_create,node_media_stories,node_media_profile,node_media_auth toneMint
class node_db_clients,node_turso_client,node_turso_store toneRose
class node_visitor toneIndigo
```

## Components

### EduMotive Public Site

- [Public routes](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/App.tsx): `apps/edumotive/src/App.tsx`
- [Site layout](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/components/Layout.tsx): `apps/edumotive/src/components/Layout.tsx`
- [Editorial content](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/lib/content.ts): `apps/edumotive/src/lib/content.ts`
- [Visitor accounts](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/lib/auth.tsx): `apps/edumotive/src/lib/auth.tsx`
- [Articles and authors](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/pages/ArticlePage.tsx): `apps/edumotive/src/pages/ArticlePage.tsx`
- [Magazine reader](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/pages/IssueReaderPage.tsx): `apps/edumotive/src/pages/IssueReaderPage.tsx`
- [Subscriptions](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/pages/SubscribePage.tsx): `apps/edumotive/src/pages/SubscribePage.tsx`
- [Account and writing](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/pages/AccountPage.tsx): `apps/edumotive/src/pages/AccountPage.tsx`
- [Programs and news](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/pages/NewsPage.tsx): `apps/edumotive/src/pages/NewsPage.tsx`

### Motive Admin

- [Admin console](https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/App.tsx): `apps/motive-admin/src/App.tsx`
- [Article moderation](https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/pages/ArticlesAdmin.tsx): `apps/motive-admin/src/pages/ArticlesAdmin.tsx`
- [Content management](https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/components/CrudPage.tsx): `apps/motive-admin/src/components/CrudPage.tsx`
- [Site configuration](https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/pages/ConfigPages.tsx): `apps/motive-admin/src/pages/ConfigPages.tsx`
- [Editorial planner](https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/pages/PlannerAdmin.tsx): `apps/motive-admin/src/pages/PlannerAdmin.tsx`
- [Subscription admin](https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/pages/SubscriptionsAdmin.tsx): `apps/motive-admin/src/pages/SubscriptionsAdmin.tsx`
- [Admin access](https://github.com/muhammads1364/edumotive/blob/main/apps/motive-admin/src/lib/admin.ts): `apps/motive-admin/src/lib/admin.ts`

### UniMedia

- [Media routes](https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/App.tsx): `apps/unimedia/src/App.tsx`
- [Campus feed](https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/components/PostCard.tsx): `apps/unimedia/src/components/PostCard.tsx`
- [Post creation](https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/components/NewPost.tsx): `apps/unimedia/src/components/NewPost.tsx`
- [Stories](https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/components/StoriesBar.tsx): `apps/unimedia/src/components/StoriesBar.tsx`
- [Media profiles](https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/pages/ProfilePage.tsx): `apps/unimedia/src/pages/ProfilePage.tsx`
- [Media accounts](https://github.com/muhammads1364/edumotive/blob/main/apps/unimedia/src/lib/auth.tsx): `apps/unimedia/src/lib/auth.tsx`

### Shared Data

- [App DB clients](https://github.com/muhammads1364/edumotive/blob/main/apps/edumotive/src/lib/db.ts): `apps/edumotive/src/lib/db.ts`
- [Turso client](https://github.com/muhammads1364/edumotive/blob/main/packages/tursodb/index.ts): `packages/tursodb/index.ts`
- **Turso database**

### Other components

- **Visitor**

## Connections

- Visitor → Public routes: opens (evidence: `apps/edumotive/src/App.tsx`)
- Public routes → Site layout: wraps routes (evidence: `apps/edumotive/src/App.tsx`)
- Public routes → Articles and authors: routes to (evidence: `apps/edumotive/src/App.tsx`)
- Public routes → Magazine reader: routes to (evidence: `apps/edumotive/src/App.tsx`)
- Public routes → Subscriptions: routes to (evidence: `apps/edumotive/src/App.tsx`)
- Public routes → Account and writing: routes to (evidence: `apps/edumotive/src/App.tsx`)
- Public routes → Programs and news: routes to (evidence: `apps/edumotive/src/App.tsx`)
- Articles and authors → Editorial content: reads content (evidence: `apps/edumotive/src/pages/ArticlePage.tsx`)
- Editorial content → Public routes: fetches public data (evidence: `apps/edumotive/src/lib/content.ts`)
- Public routes → Visitor accounts: provides auth (evidence: `apps/edumotive/src/App.tsx`)
- Visitor → Admin console: opens (evidence: `apps/motive-admin/src/App.tsx`)
- Admin console → Article moderation: routes to (evidence: `apps/motive-admin/src/App.tsx`)
- Admin console → Site configuration: routes to (evidence: `apps/motive-admin/src/App.tsx`)
- Admin console → Editorial planner: routes to (evidence: `apps/motive-admin/src/App.tsx`)
- Admin console → Subscription admin: routes to (evidence: `apps/motive-admin/src/App.tsx`)
- Article moderation → Content management: uses CRUD
- Visitor → Media routes: opens (evidence: `apps/unimedia/src/App.tsx`)
- Media routes → Campus feed: renders posts (evidence: `apps/unimedia/src/App.tsx`)
- Media routes → Post creation: opens composer (evidence: `apps/unimedia/src/App.tsx`)
- Media routes → Stories: renders stories (evidence: `apps/unimedia/src/App.tsx`)
- Media routes → Media profiles: routes to (evidence: `apps/unimedia/src/App.tsx`)
- Media routes → Media accounts: provides auth (evidence: `apps/unimedia/src/App.tsx`)
- App DB clients → Turso client: creates client
- Turso client → Turso database: reads and writes (evidence: `README.md`)
- App DB clients → Turso database: connects app data (evidence: `README.md`)
