# dineshstack/post-scheduler-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/dineshstack/post-scheduler-frontend
- Repository: https://github.com/dineshstack/post-scheduler-frontend

## Overview

PostSync is a frontend dashboard for composing, scheduling, managing, and measuring multi-platform posts; publishing and persistent data operations are performed by a separate Laravel API. The central workflow is user sign-in, compose or edit a post with platform-specific content and media, then save, schedule, or request publishing; users can track posts in the calendar and list and review performance in analytics. The graph includes documented capabilities such as ideas, SEO, blog publishing settings, and account connections. Evidence is limited to the README and indexed excerpts, so some feature-to-API links are documented rather than source-verified.

Main entry points: [`app/dashboard/compose/page.tsx`](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/compose/page.tsx) (Compose and edit), [`lib/hooks/index.ts`](https://github.com/dineshstack/post-scheduler-frontend/blob/main/lib/hooks/index.ts) (Query and mutation hooks), [`app/dashboard/posts/page.tsx`](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/posts/page.tsx) (Post management), [`app/dashboard/analytics/page.tsx`](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/analytics/page.tsx) (Analytics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Content workflow"]
  node_compose["Compose and edit<br/>[page.tsx]"]
  node_editor["Rich text editor<br/>[CKEditorField.tsx]"]
  node_media["Media library"]
  node_caption["AI caption generator"]
  node_seo_titles["SEO title generator"]
  node_posts["Post management<br/>[page.tsx]"]
  node_postedit["Post editor<br/>[page.tsx]"]
  node_postdetail["Post details<br/>[page.tsx]"]
end

subgraph group_distribution["Publishing channels"]
  node_blogsettings["Blog post settings"]
  node_blogseo["Blog SEO checklist"]
  node_devto["Dev.to settings"]
  node_medium["Medium settings"]
end

subgraph group_insights["Planning and insights"]
  node_calendar["Publishing calendar<br/>[page.tsx]"]
  node_dashboard["Dashboard overview<br/>[page.tsx]"]
  node_analytics["Analytics<br/>[page.tsx]"]
  node_ideas["Post ideas<br/>[page.tsx]"]
  node_seo["SEO workspace<br/>[page.tsx]"]
end

subgraph group_identity["Identity and settings"]
  node_authpages["Sign in / register<br/>[page.tsx]"]
  node_authstate["Authentication state<br/>[auth.store.ts]"]
  node_profile["Profile settings<br/>[page.tsx]"]
  node_connections["Platform connections<br/>[page.tsx]"]
end

subgraph group_runtime["Frontend services"]
  node_hooks["Query and mutation hooks<br/>[index.ts]"]
  node_api["Backend API client<br/>[api.ts]"]
  node_layout["Dashboard layout<br/>[AppLayout.tsx]"]
end

node_user(("Dashboard user"))
node_backend{{"PostSync Laravel API"}}

node_user -->|"signs in"| node_authpages
node_authpages -->|"updates session"| node_authstate
node_authstate -->|"authenticates through"| node_api
node_user -->|"creates post"| node_compose
node_compose -->|"edits body"| node_editor
node_compose -->|"chooses media"| node_media
node_compose -->|"generates caption"| node_caption
node_compose -->|"generates title"| node_seo_titles
node_compose -->|"configures blog"| node_blogsettings
node_compose -->|"checks blog SEO"| node_blogseo
node_compose -->|"configures channel"| node_devto
node_compose -->|"configures channel"| node_medium
node_compose -->|"creates post"| node_hooks
node_postedit -->|"loads and updates"| node_hooks
node_posts -->|"queries posts"| node_hooks
node_calendar -.->|"queries schedule"| node_hooks
node_dashboard -.->|"loads overview"| node_hooks
node_analytics -->|"queries metrics"| node_hooks
node_ideas -->|"manages ideas"| node_hooks
node_seo -->|"queries SEO data"| node_hooks
node_connections -->|"manages accounts"| node_hooks
node_profile -->|"loads settings"| node_hooks
node_hooks -->|"calls endpoints"| node_api
node_api -->|"sends API requests"| node_backend
node_user -->|"connects channels"| node_connections
node_user -->|"updates profile"| node_profile
node_user -->|"reviews schedule"| node_calendar
node_user -->|"reviews performance"| node_analytics
node_user -.->|"plans content"| node_ideas
node_user -.->|"optimizes content"| node_seo
node_posts -.->|"opens for editing"| node_postedit
node_posts -.->|"opens details"| node_postdetail
node_compose -->|"renders within"| node_layout
node_posts -->|"renders within"| node_layout
node_analytics -->|"renders within"| node_layout

click node_authpages "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/auth/login/page.tsx"
click node_authstate "https://github.com/dineshstack/post-scheduler-frontend/blob/main/lib/stores/auth.store.ts"
click node_profile "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/settings/profile/page.tsx"
click node_connections "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/settings/connections/page.tsx"
click node_compose "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/compose/page.tsx"
click node_editor "https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/editor/CKEditorField.tsx"
click node_media "https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/media/MediaLibraryModal.tsx"
click node_caption "https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/ai/CaptionGenerator.tsx"
click node_seo_titles "https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/ai/SeoTitleGenerator.tsx"
click node_blogsettings "https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/blog/BlogSettingsPanel.tsx"
click node_blogseo "https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/blog/BlogSeoChecklist.tsx"
click node_devto "https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/devto/DevToSettingsPanel.tsx"
click node_medium "https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/medium/MediumSettingsPanel.tsx"
click node_posts "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/posts/page.tsx"
click node_postedit "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/posts/%5Bid%5D/edit/page.tsx"
click node_postdetail "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/posts/%5Bid%5D/page.tsx"
click node_calendar "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/calendar/page.tsx"
click node_dashboard "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/page.tsx"
click node_analytics "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/analytics/page.tsx"
click node_ideas "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/ideas/page.tsx"
click node_seo "https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/seo/page.tsx"
click node_hooks "https://github.com/dineshstack/post-scheduler-frontend/blob/main/lib/hooks/index.ts"
click node_api "https://github.com/dineshstack/post-scheduler-frontend/blob/main/lib/api.ts"
click node_layout "https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/layout/AppLayout.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_compose,node_editor,node_media,node_caption,node_seo_titles,node_posts,node_postedit,node_postdetail,node_user toneBlue
class node_blogsettings,node_blogseo,node_devto,node_medium toneAmber
class node_calendar,node_dashboard,node_analytics,node_ideas,node_seo,node_backend toneMint
class node_authpages,node_authstate,node_profile,node_connections toneRose
class node_hooks,node_api,node_layout toneIndigo
```

## Components

### Content workflow

- [Compose and edit](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/compose/page.tsx): `app/dashboard/compose/page.tsx`
- [Rich text editor](https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/editor/CKEditorField.tsx): `components/editor/CKEditorField.tsx`
- [Media library](https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/media/MediaLibraryModal.tsx): `components/media/MediaLibraryModal.tsx`
- [AI caption generator](https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/ai/CaptionGenerator.tsx): `components/ai/CaptionGenerator.tsx`
- [SEO title generator](https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/ai/SeoTitleGenerator.tsx): `components/ai/SeoTitleGenerator.tsx`
- [Post management](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/posts/page.tsx): `app/dashboard/posts/page.tsx`
- [Post editor](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/posts/%5Bid%5D/edit/page.tsx): `app/dashboard/posts/[id]/edit/page.tsx`
- [Post details](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/posts/%5Bid%5D/page.tsx): `app/dashboard/posts/[id]/page.tsx`

### Publishing channels

- [Blog post settings](https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/blog/BlogSettingsPanel.tsx): `components/blog/BlogSettingsPanel.tsx`
- [Blog SEO checklist](https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/blog/BlogSeoChecklist.tsx): `components/blog/BlogSeoChecklist.tsx`
- [Dev.to settings](https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/devto/DevToSettingsPanel.tsx): `components/devto/DevToSettingsPanel.tsx`
- [Medium settings](https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/medium/MediumSettingsPanel.tsx): `components/medium/MediumSettingsPanel.tsx`

### Planning and insights

- [Publishing calendar](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/calendar/page.tsx): `app/dashboard/calendar/page.tsx`
- [Dashboard overview](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/page.tsx): `app/dashboard/page.tsx`
- [Analytics](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/analytics/page.tsx): `app/dashboard/analytics/page.tsx`
- [Post ideas](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/ideas/page.tsx): `app/dashboard/ideas/page.tsx`
- [SEO workspace](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/dashboard/seo/page.tsx): `app/dashboard/seo/page.tsx`

### Identity and settings

- [Sign in / register](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/auth/login/page.tsx): `app/auth/login/page.tsx`
- [Authentication state](https://github.com/dineshstack/post-scheduler-frontend/blob/main/lib/stores/auth.store.ts): `lib/stores/auth.store.ts`
- [Profile settings](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/settings/profile/page.tsx): `app/settings/profile/page.tsx`
- [Platform connections](https://github.com/dineshstack/post-scheduler-frontend/blob/main/app/settings/connections/page.tsx): `app/settings/connections/page.tsx`

### Frontend services

- [Query and mutation hooks](https://github.com/dineshstack/post-scheduler-frontend/blob/main/lib/hooks/index.ts): `lib/hooks/index.ts`
- [Backend API client](https://github.com/dineshstack/post-scheduler-frontend/blob/main/lib/api.ts): `lib/api.ts`
- [Dashboard layout](https://github.com/dineshstack/post-scheduler-frontend/blob/main/components/layout/AppLayout.tsx): `components/layout/AppLayout.tsx`

### Other components

- **Dashboard user**
- **PostSync Laravel API**

## Connections

- Dashboard user → Sign in / register: signs in
- Sign in / register → Authentication state: updates session (evidence: `app/auth/login/page.tsx`)
- Authentication state → Backend API client: authenticates through (evidence: `lib/stores/auth.store.ts`)
- Dashboard user → Compose and edit: creates post
- Compose and edit → Rich text editor: edits body (evidence: `app/dashboard/compose/page.tsx`)
- Compose and edit → Media library: chooses media (evidence: `app/dashboard/compose/page.tsx`)
- Compose and edit → AI caption generator: generates caption (evidence: `app/dashboard/compose/page.tsx`)
- Compose and edit → SEO title generator: generates title (evidence: `app/dashboard/compose/page.tsx`)
- Compose and edit → Blog post settings: configures blog (evidence: `app/dashboard/compose/page.tsx`)
- Compose and edit → Blog SEO checklist: checks blog SEO (evidence: `app/dashboard/compose/page.tsx`)
- Compose and edit → Dev.to settings: configures channel (evidence: `app/dashboard/compose/page.tsx`)
- Compose and edit → Medium settings: configures channel (evidence: `app/dashboard/compose/page.tsx`)
- Compose and edit → Query and mutation hooks: creates post (evidence: `app/dashboard/compose/page.tsx`)
- Post editor → Query and mutation hooks: loads and updates (evidence: `app/dashboard/posts/[id]/edit/page.tsx`)
- Post management → Query and mutation hooks: queries posts (evidence: `app/dashboard/posts/page.tsx`)
- Publishing calendar → Query and mutation hooks: queries schedule
- Dashboard overview → Query and mutation hooks: loads overview (evidence: `app/dashboard/page.tsx`)
- Analytics → Query and mutation hooks: queries metrics (evidence: `app/dashboard/analytics/page.tsx`)
- Post ideas → Query and mutation hooks: manages ideas (evidence: `app/dashboard/ideas/page.tsx`)
- SEO workspace → Query and mutation hooks: queries SEO data (evidence: `app/dashboard/seo/page.tsx`)
- Platform connections → Query and mutation hooks: manages accounts (evidence: `app/settings/connections/page.tsx`)
- Profile settings → Query and mutation hooks: loads settings (evidence: `app/settings/profile/page.tsx`)
- Query and mutation hooks → Backend API client: calls endpoints (evidence: `lib/hooks/index.ts`)
- Backend API client → PostSync Laravel API: sends API requests
- Dashboard user → Platform connections: connects channels
- Dashboard user → Profile settings: updates profile
- Dashboard user → Publishing calendar: reviews schedule
- Dashboard user → Analytics: reviews performance
- Dashboard user → Post ideas: plans content
- Dashboard user → SEO workspace: optimizes content
- Post management → Post editor: opens for editing
- Post management → Post details: opens details
- Compose and edit → Dashboard layout: renders within (evidence: `app/dashboard/compose/page.tsx`)
- Post management → Dashboard layout: renders within (evidence: `app/dashboard/posts/page.tsx`)
- Analytics → Dashboard layout: renders within (evidence: `app/dashboard/analytics/page.tsx`)
