# silverarrow77/ai-reminder-web-app architecture

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

- Interactive diagram: https://gitdiagram.com/silverarrow77/ai-reminder-web-app
- Repository: https://github.com/silverarrow77/ai-reminder-web-app

## Overview

Promptly is a task-reminder web app. The main workflow is organizing tasks in lists, managing due dates and completion, then receiving reminders and reviewing AI productivity reports; list sharing and friend management are distinct collaboration features. The graph preserves these documented-by-source capabilities and their API/data boundaries. Some UI and service files are unsampled, so only relationships supported by excerpts or the source index are connected.

Main entry points: [`lib/prisma.ts`](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/prisma.ts) (Prisma Database), [`app/lists/page.tsx`](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/lists/page.tsx) (List Workspace), [`lib/taskScheduler.ts`](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/taskScheduler.ts) (Task Scheduler), [`app/lists/useListsStates.ts`](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/lists/useListsStates.ts) (List State)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity"]
  node_signup["Signup UI<br/>[SignUpForm.tsx]"]
  node_login["Login UI<br/>[LoginForm.tsx]"]
  node_auth_api["Auth API<br/>[route.ts]"]
  node_oauth["Google OAuth<br/>[route.ts]"]
end

subgraph group_tasks["Tasks and Lists"]
  node_list_page["List Workspace<br/>[page.tsx]"]
  node_list_state["List State<br/>[useListsStates.ts]"]
  node_sidebar["List Sidebar<br/>[ListSidebar.tsx]"]
  node_task_card["Task Card<br/>[TaskCard.tsx]"]
  node_ai_menu["AI Task Menu<br/>[AiMenu.tsx]"]
  node_task_api["Task API<br/>[route.ts]"]
  node_task_item_api["Task Update API<br/>[route.ts]"]
  node_category["Task Categorization<br/>[taskCategory.ts]"]
  node_lists_api["Lists API<br/>[route.ts]"]
end

subgraph group_collab["Collaboration"]
  node_friends_ui["Friends UI<br/>[FriendsPage.tsx]"]
  node_friends_api["Friends API<br/>[route.ts]"]
  node_requests_api["Friend Requests<br/>[route.ts]"]
  node_collab_modal["Collaborator Controls"]
  node_permissions_api["List Permissions<br/>[route.ts]"]
end

subgraph group_insights["Reports and Reminders"]
  node_report_ui["Report Cards<br/>[ReportCards.tsx]"]
  node_report_api["Reports API<br/>[route.ts]"]
  node_report_service["AI Report Service<br/>[aiReportService.ts]"]
  node_scheduler["Task Scheduler<br/>[taskScheduler.ts]"]
  node_reset["Daily Task Reset<br/>[taskReset.ts]"]
end

subgraph group_storage["Persistence"]
  node_db[("Prisma Database<br/>[prisma.ts]")]
end

node_user(("User"))
node_email["Email Service"]

node_user -->|"signs up"| node_signup
node_user -.->|"signs in"| node_login
node_signup -.->|"submits to"| node_auth_api
node_login -.->|"submits to"| node_auth_api
node_user -.->|"starts sign-in"| node_oauth
node_list_page -->|"uses state"| node_list_state
node_list_page -->|"renders"| node_sidebar
node_list_page -->|"renders"| node_task_card
node_list_page -->|"renders"| node_ai_menu
node_list_page -->|"renders"| node_friends_ui
node_list_page -->|"renders"| node_collab_modal
node_list_state -.->|"fetches lists"| node_lists_api
node_list_state -.->|"manages tasks"| node_task_api
node_task_api -->|"classifies tasks"| node_category
node_task_item_api -->|"classifies updates"| node_category
node_task_api -->|"reads and writes"| node_db
node_task_item_api -->|"reads and writes"| node_db
node_lists_api -->|"reads and writes"| node_db
node_friends_ui -.->|"manages friends"| node_friends_api
node_friends_ui -.->|"manages requests"| node_requests_api
node_friends_api -->|"reads and writes"| node_db
node_requests_api -->|"reads and writes"| node_db
node_list_page -.->|"not shown"| node_report_ui
node_collab_modal -.->|"configures access"| node_permissions_api
node_permissions_api -->|"reads and writes"| node_db
node_user -->|"views reports"| node_report_ui
node_report_ui -.->|"requests reports"| node_report_api
node_report_api -->|"generates or fetches"| node_report_service
node_report_service -.->|"uses task data"| node_db
node_scheduler -->|"ensures daily reset"| node_reset
node_scheduler -->|"queries tasks"| node_db
node_scheduler -->|"sends reminders"| node_email
node_scheduler -->|"records notifications"| node_db
node_reset -.->|"uses persistence"| node_db

click node_signup "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/ui/SignUpForm.tsx"
click node_login "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/ui/LoginForm.tsx"
click node_auth_api "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/auth/signup/route.ts"
click node_oauth "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/auth/google/start/route.ts"
click node_list_page "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/lists/page.tsx"
click node_list_state "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/lists/useListsStates.ts"
click node_sidebar "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/tasks/ListSidebar.tsx"
click node_task_card "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/tasks/TaskCard.tsx"
click node_ai_menu "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/tasks/AiMenu.tsx"
click node_task_api "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/tasks/route.ts"
click node_task_item_api "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/tasks/%5Bid%5D/route.ts"
click node_category "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/taskCategory.ts"
click node_lists_api "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/lists/route.ts"
click node_friends_ui "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/friends/FriendsPage.tsx"
click node_friends_api "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/friends/route.ts"
click node_requests_api "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/friends/requests/route.ts"
click node_collab_modal "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/lists/CollaboratorsModal.tsx"
click node_permissions_api "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/lists/%5BlistId%5D/permissions/route.ts"
click node_report_ui "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/reports/ReportCards.tsx"
click node_report_api "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/reports/route.ts"
click node_report_service "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/aiReportService.ts"
click node_scheduler "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/taskScheduler.ts"
click node_reset "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/taskReset.ts"
click node_db "https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/prisma.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_signup,node_login,node_auth_api,node_oauth,node_user toneBlue
class node_list_page,node_list_state,node_sidebar,node_task_card,node_ai_menu,node_task_api,node_task_item_api,node_category,node_lists_api toneAmber
class node_friends_ui,node_friends_api,node_requests_api,node_collab_modal,node_permissions_api toneMint
class node_report_ui,node_report_api,node_report_service,node_scheduler,node_reset toneRose
class node_db,node_email toneIndigo
```

## Components

### Identity

- [Signup UI](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/ui/SignUpForm.tsx): `components/ui/SignUpForm.tsx`
- [Login UI](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/ui/LoginForm.tsx): `components/ui/LoginForm.tsx`
- [Auth API](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/auth/signup/route.ts): `app/api/auth/signup/route.ts`
- [Google OAuth](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/auth/google/start/route.ts): `app/api/auth/google/start/route.ts`

### Tasks and Lists

- [List Workspace](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/lists/page.tsx): `app/lists/page.tsx`
- [List State](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/lists/useListsStates.ts): `app/lists/useListsStates.ts`
- [List Sidebar](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/tasks/ListSidebar.tsx): `components/tasks/ListSidebar.tsx`
- [Task Card](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/tasks/TaskCard.tsx): `components/tasks/TaskCard.tsx`
- [AI Task Menu](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/tasks/AiMenu.tsx): `components/tasks/AiMenu.tsx`
- [Task API](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/tasks/route.ts): `app/api/tasks/route.ts`
- [Task Update API](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/tasks/%5Bid%5D/route.ts): `app/api/tasks/[id]/route.ts`
- [Task Categorization](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/taskCategory.ts): `lib/taskCategory.ts`
- [Lists API](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/lists/route.ts): `app/api/lists/route.ts`

### Collaboration

- [Friends UI](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/friends/FriendsPage.tsx): `components/friends/FriendsPage.tsx`
- [Friends API](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/friends/route.ts): `app/api/friends/route.ts`
- [Friend Requests](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/friends/requests/route.ts): `app/api/friends/requests/route.ts`
- [Collaborator Controls](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/lists/CollaboratorsModal.tsx): `components/lists/CollaboratorsModal.tsx`
- [List Permissions](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/lists/%5BlistId%5D/permissions/route.ts): `app/api/lists/[listId]/permissions/route.ts`

### Reports and Reminders

- [Report Cards](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/components/reports/ReportCards.tsx): `components/reports/ReportCards.tsx`
- [Reports API](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/app/api/reports/route.ts): `app/api/reports/route.ts`
- [AI Report Service](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/aiReportService.ts): `lib/aiReportService.ts`
- [Task Scheduler](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/taskScheduler.ts): `lib/taskScheduler.ts`
- [Daily Task Reset](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/taskReset.ts): `lib/taskReset.ts`

### Persistence

- [Prisma Database](https://github.com/silverarrow77/ai-reminder-web-app/blob/main/lib/prisma.ts): `lib/prisma.ts`

### Other components

- **User**
- **Email Service**

## Connections

- User → Signup UI: signs up
- User → Login UI: signs in
- Signup UI → Auth API: submits to
- Login UI → Auth API: submits to
- User → Google OAuth: starts sign-in
- List Workspace → List State: uses state (evidence: `app/lists/page.tsx`)
- List Workspace → List Sidebar: renders (evidence: `app/lists/page.tsx`)
- List Workspace → Task Card: renders (evidence: `app/lists/page.tsx`)
- List Workspace → AI Task Menu: renders (evidence: `app/lists/page.tsx`)
- List Workspace → Friends UI: renders (evidence: `app/lists/page.tsx`)
- List Workspace → Collaborator Controls: renders (evidence: `app/lists/page.tsx`)
- List State → Lists API: fetches lists
- List State → Task API: manages tasks
- Task API → Task Categorization: classifies tasks (evidence: `app/api/tasks/route.ts`)
- Task Update API → Task Categorization: classifies updates (evidence: `app/api/tasks/[id]/route.ts`)
- Task API → Prisma Database: reads and writes (evidence: `app/api/tasks/route.ts`)
- Task Update API → Prisma Database: reads and writes (evidence: `app/api/tasks/[id]/route.ts`)
- Lists API → Prisma Database: reads and writes (evidence: `app/api/lists/route.ts`)
- Friends UI → Friends API: manages friends
- Friends UI → Friend Requests: manages requests
- Friends API → Prisma Database: reads and writes (evidence: `app/api/friends/route.ts`)
- Friend Requests → Prisma Database: reads and writes (evidence: `app/api/friends/requests/route.ts`)
- List Workspace → Report Cards: not shown
- Collaborator Controls → List Permissions: configures access
- List Permissions → Prisma Database: reads and writes (evidence: `app/api/lists/[listId]/permissions/route.ts`)
- User → Report Cards: views reports
- Report Cards → Reports API: requests reports
- Reports API → AI Report Service: generates or fetches (evidence: `app/api/reports/route.ts`)
- AI Report Service → Prisma Database: uses task data
- Task Scheduler → Daily Task Reset: ensures daily reset (evidence: `lib/taskScheduler.ts`)
- Task Scheduler → Prisma Database: queries tasks (evidence: `lib/taskScheduler.ts`)
- Task Scheduler → Email Service: sends reminders (evidence: `lib/taskScheduler.ts`)
- Task Scheduler → Prisma Database: records notifications (evidence: `lib/taskScheduler.ts`)
- Daily Task Reset → Prisma Database: uses persistence
