# kiranism/next-shadcn-dashboard-starter architecture

> Architecture diagram of the GitHub repository kiranism/next-shadcn-dashboard-starter, 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/kiranism/next-shadcn-dashboard-starter
- Repository: https://github.com/kiranism/next-shadcn-dashboard-starter

## Overview

This repository is a Next.js admin-dashboard starter for SaaS and internal-tool interfaces. Users enter through the dashboard shell, then work with analytics, product and user tables, forms, and account capabilities; the product and user APIs currently use generated in-memory mock data. The README documents Clerk authentication, organization workspaces, billing, themes, chat, Kanban, and notifications as additional capabilities. Source excerpts show API-to-mock-store calls and product-service delegation; several UI and feature connections are documented rather than excerpted, so those edges cite the README.

Main entry points: [`src/features/products/components`](https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/features/products/components) (Product tables and forms), [`src/features/users/components`](https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/features/users/components) (User tables and forms), [`src/app/dashboard/layout.tsx`](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/dashboard/layout.tsx) (Dashboard shell), [`src/components/forms/fields`](https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/components/forms/fields) (Composable form fields)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard experience"]
  node_home["Dashboard shell<br/>[layout.tsx]"]
  node_overview["Analytics overview<br/>[overview.tsx]"]
end

subgraph group_management["Data management"]
  node_product_pages["Product pages<br/>[page.tsx]"]
  node_product_ui["Product tables and forms"]
  node_product_api["Product data service<br/>[service.ts]"]
  node_product_routes["Product API routes<br/>[route.ts]"]
  node_product_store[("Mock product store<br/>[mock-api.ts]")]
  node_user_pages["User management page<br/>[page.tsx]"]
  node_user_ui["User tables and forms"]
  node_user_service["User data service<br/>[service.ts]"]
  node_user_routes["User API routes<br/>[route.ts]"]
  node_user_store[("Mock user store<br/>[mock-api-users.ts]")]
end

subgraph group_identity["Identity and plans"]
  node_auth["Authentication"]
  node_workspaces["Organization workspaces<br/>[page.tsx]"]
  node_billing["Billing and plans<br/>[page.tsx]"]
end

subgraph group_interactive["Interactive features"]
  node_chat["Chat and AI chat<br/>[chat-view-page.tsx]"]
  node_kanban["Kanban board<br/>[kanban-board.tsx]"]
  node_notifications["Notifications"]
  node_ai_service["AI chat service<br/>[chat.ts]"]
end

subgraph group_shared["Shared foundations"]
  node_forms["Composable form fields"]
  node_table_state["Table state and parsing<br/>[use-data-table.ts]"]
  node_query["Query cache provider<br/>[query-provider.tsx]"]
  node_ui["UI component library"]
  node_themes["Theme switching<br/>[theme-selector.tsx]"]
end

node_user(("Dashboard user"))

node_user -->|"opens"| node_home
node_home -->|"shows"| node_overview
node_user -->|"manages products"| node_product_pages
node_product_pages -->|"renders"| node_product_ui
node_product_ui -->|"requests data"| node_product_api
node_product_api -->|"delegates"| node_product_store
node_product_routes -->|"reads and writes"| node_product_store
node_user -->|"manages users"| node_user_pages
node_user_pages -->|"renders"| node_user_ui
node_user_ui -->|"requests data"| node_user_service
node_user_service -->|"delegates"| node_user_store
node_user_routes -->|"reads and writes"| node_user_store
node_user -->|"signs in"| node_auth
node_user -->|"manages teams"| node_workspaces
node_user -->|"manages plans"| node_billing
node_user -->|"submits forms"| node_forms
node_product_ui -.->|"uses"| node_forms
node_user_ui -.->|"uses"| node_forms
node_product_ui -.->|"uses table state"| node_table_state
node_user_ui -.->|"uses table state"| node_table_state
node_product_ui -->|"uses query cache"| node_query
node_user_ui -->|"uses query cache"| node_query
node_home -.->|"uses components"| node_ui
node_user -->|"uses chat"| node_chat
node_chat -.->|"requests AI responses"| node_ai_service
node_user -->|"organizes tasks"| node_kanban
node_user -->|"views alerts"| node_notifications
node_user -->|"switches themes"| node_themes

click node_home "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/dashboard/layout.tsx"
click node_overview "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/overview/components/overview.tsx"
click node_product_pages "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/dashboard/product/page.tsx"
click node_product_ui "https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/features/products/components"
click node_product_api "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/products/api/service.ts"
click node_product_routes "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/api/products/route.ts"
click node_product_store "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/constants/mock-api.ts"
click node_user_pages "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/dashboard/users/page.tsx"
click node_user_ui "https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/features/users/components"
click node_user_service "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/users/api/service.ts"
click node_user_routes "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/api/users/route.ts"
click node_user_store "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/constants/mock-api-users.ts"
click node_auth "https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/features/auth/components"
click node_workspaces "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/dashboard/workspaces/page.tsx"
click node_billing "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/dashboard/billing/page.tsx"
click node_forms "https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/components/forms/fields"
click node_table_state "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/hooks/use-data-table.ts"
click node_query "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/components/layout/query-provider.tsx"
click node_ui "https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/components/ui"
click node_chat "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/chat/components/chat-view-page.tsx"
click node_kanban "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/kanban/components/kanban-board.tsx"
click node_notifications "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/notifications/components/notifications-page.tsx"
click node_themes "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/components/themes/theme-selector.tsx"
click node_ai_service "https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/ai-chat/chat.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_overview,node_user toneBlue
class node_product_pages,node_product_ui,node_product_api,node_product_routes,node_product_store,node_user_pages,node_user_ui,node_user_service,node_user_routes,node_user_store toneAmber
class node_auth,node_workspaces,node_billing toneMint
class node_chat,node_kanban,node_notifications,node_ai_service toneRose
class node_forms,node_table_state,node_query,node_ui,node_themes toneIndigo
```

## Components

### Dashboard experience

- [Dashboard shell](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/dashboard/layout.tsx): `src/app/dashboard/layout.tsx`
- [Analytics overview](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/overview/components/overview.tsx): `src/features/overview/components/overview.tsx`

### Data management

- [Product pages](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/dashboard/product/page.tsx): `src/app/dashboard/product/page.tsx`
- [Product tables and forms](https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/features/products/components): `src/features/products/components`
- [Product data service](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/products/api/service.ts): `src/features/products/api/service.ts`
- [Product API routes](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/api/products/route.ts): `src/app/api/products/route.ts`
- [Mock product store](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/constants/mock-api.ts): `src/constants/mock-api.ts`
- [User management page](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/dashboard/users/page.tsx): `src/app/dashboard/users/page.tsx`
- [User tables and forms](https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/features/users/components): `src/features/users/components`
- [User data service](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/users/api/service.ts): `src/features/users/api/service.ts`
- [User API routes](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/api/users/route.ts): `src/app/api/users/route.ts`
- [Mock user store](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/constants/mock-api-users.ts): `src/constants/mock-api-users.ts`

### Identity and plans

- [Authentication](https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/features/auth/components): `src/features/auth/components`
- [Organization workspaces](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/dashboard/workspaces/page.tsx): `src/app/dashboard/workspaces/page.tsx`
- [Billing and plans](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/app/dashboard/billing/page.tsx): `src/app/dashboard/billing/page.tsx`

### Interactive features

- [Chat and AI chat](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/chat/components/chat-view-page.tsx): `src/features/chat/components/chat-view-page.tsx`
- [Kanban board](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/kanban/components/kanban-board.tsx): `src/features/kanban/components/kanban-board.tsx`
- [Notifications](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/notifications/components/notifications-page.tsx): `src/features/notifications/components/notifications-page.tsx`
- [AI chat service](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/features/ai-chat/chat.ts): `src/features/ai-chat/chat.ts`

### Shared foundations

- [Composable form fields](https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/components/forms/fields): `src/components/forms/fields`
- [Table state and parsing](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/hooks/use-data-table.ts): `src/hooks/use-data-table.ts`
- [Query cache provider](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/components/layout/query-provider.tsx): `src/components/layout/query-provider.tsx`
- [UI component library](https://github.com/kiranism/next-shadcn-dashboard-starter/tree/main/src/components/ui): `src/components/ui`
- [Theme switching](https://github.com/kiranism/next-shadcn-dashboard-starter/blob/main/src/components/themes/theme-selector.tsx): `src/components/themes/theme-selector.tsx`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Dashboard shell: opens (evidence: `README.md`)
- Dashboard shell → Analytics overview: shows (evidence: `README.md`)
- Dashboard user → Product pages: manages products (evidence: `README.md`)
- Product pages → Product tables and forms: renders (evidence: `README.md`)
- Product tables and forms → Product data service: requests data (evidence: `README.md`)
- Product data service → Mock product store: delegates (evidence: `src/features/products/api/service.ts`)
- Product API routes → Mock product store: reads and writes (evidence: `src/app/api/products/route.ts`)
- Dashboard user → User management page: manages users (evidence: `README.md`)
- User management page → User tables and forms: renders (evidence: `README.md`)
- User tables and forms → User data service: requests data (evidence: `README.md`)
- User data service → Mock user store: delegates (evidence: `src/features/users/api/service.ts`)
- User API routes → Mock user store: reads and writes (evidence: `src/app/api/users/route.ts`)
- Dashboard user → Authentication: signs in (evidence: `README.md`)
- Dashboard user → Organization workspaces: manages teams (evidence: `README.md`)
- Dashboard user → Billing and plans: manages plans (evidence: `README.md`)
- Dashboard user → Composable form fields: submits forms (evidence: `README.md`)
- Product tables and forms → Composable form fields: uses
- User tables and forms → Composable form fields: uses
- Product tables and forms → Table state and parsing: uses table state
- User tables and forms → Table state and parsing: uses table state
- Product tables and forms → Query cache provider: uses query cache (evidence: `README.md`)
- User tables and forms → Query cache provider: uses query cache (evidence: `README.md`)
- Dashboard shell → UI component library: uses components
- Dashboard user → Chat and AI chat: uses chat (evidence: `README.md`)
- Chat and AI chat → AI chat service: requests AI responses
- Dashboard user → Kanban board: organizes tasks (evidence: `README.md`)
- Dashboard user → Notifications: views alerts (evidence: `README.md`)
- Dashboard user → Theme switching: switches themes (evidence: `README.md`)
