# kulkarniankita/todoist-clone-todovex architecture

> Architecture diagram of the GitHub repository kulkarniankita/todoist-clone-todovex, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kulkarniankita/todoist-clone-todovex
- Repository: https://github.com/kulkarniankita/todoist-clone-todovex

## Overview

Todovex is an AI-assisted task manager with a Next.js interface, Auth.js sign-in, and Convex-backed task and project data. Users enter through the landing/sign-in flow, then navigate inbox, project, today, upcoming, or search views; they can add and complete tasks, organize work, and request AI suggestions. The graph preserves documented subtask, label, and vector-search capabilities. Some Convex implementations and routes are not excerpted, so uncertain backend links are omitted or marked unverified.

Main entry points: [`components/todos/todo-list.tsx`](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/todos/todo-list.tsx) (Task lists), [`app/loggedin/page.tsx`](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/loggedin/page.tsx) (Inbox view), [`components/nav/side-bar.tsx`](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/nav/side-bar.tsx) (Navigation), [`components/todos/todos.tsx`](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/todos/todos.tsx) (Task completion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and identity"]
  node_landing["Landing page<br/>[page.tsx]"]
  node_auth_action["Sign-in action<br/>[auth-action.ts]"]
  node_auth_config["Auth.js config<br/>[auth.ts]"]
  node_auth_route["Auth route<br/>[route.ts]"]
end

subgraph group_workspace["Task workspace"]
  node_inbox["Inbox view<br/>[page.tsx]"]
  node_project_view["Project view<br/>[page.tsx]"]
  node_today["Today view<br/>[page.tsx]"]
  node_upcoming["Upcoming view<br/>[page.tsx]"]
  node_task_list["Task lists<br/>[todo-list.tsx]"]
  node_task_actions["Task completion<br/>[todos.tsx]"]
  node_task_item["Task item<br/>[task.tsx]"]
  node_task_creation["Task creation"]
  node_ai_suggestions["AI suggestions<br/>[suggest-tasks.tsx]"]
end

subgraph group_organize["Organization and search"]
  node_navigation["Navigation<br/>[side-bar.tsx]"]
  node_mobile_navigation["Mobile navigation<br/>[mobile-nav.tsx]"]
  node_search_view["Task search<br/>[page.tsx]"]
  node_project_manage["Project management"]
  node_label_manage["Label management"]
end

subgraph group_services["Backend services"]
  node_todo_api["Todo operations<br/>[todos.ts]"]
  node_project_api["Project operations<br/>[projects.ts]"]
  node_label_api["Label operations<br/>[labels.ts]"]
  node_subtodo_api["Subtask operations<br/>[subTodos.ts]"]
  node_search_api["Vector search<br/>[search.ts]"]
  node_openai_api["OpenAI actions<br/>[openai.ts]"]
  node_auth_adapter["Convex auth adapter<br/>[ConvexAdapter.ts]"]
  node_schema[("Convex schema<br/>[schema.ts]")]
end

subgraph group_shared["Shared UI"]
  node_ui_primitives["UI primitives<br/>[button.tsx]"]
  node_generated_api["API references<br/>[api.js]"]
end

node_visitor(("User"))

node_visitor -->|"opens"| node_landing
node_landing -->|"starts sign-in"| node_auth_action
node_auth_action -->|"uses"| node_auth_config
node_auth_route -->|"routes to"| node_auth_config
node_auth_config -->|"configures"| node_auth_adapter
node_visitor -.->|"opens workspace"| node_inbox
node_inbox -->|"renders"| node_navigation
node_inbox -->|"renders"| node_mobile_navigation
node_inbox -->|"renders"| node_task_list
node_project_view -->|"renders"| node_task_actions
node_project_view -->|"offers"| node_ai_suggestions
node_task_list -->|"renders"| node_task_item
node_task_list -->|"renders"| node_task_actions
node_task_actions -->|"mutates completion"| node_todo_api
node_task_item -->|"opens task editor"| node_task_creation
node_task_creation -.->|"creates tasks"| node_todo_api
node_ai_suggestions -->|"invokes AI"| node_openai_api
node_today -->|"renders"| node_task_list
node_upcoming -.->|"renders"| node_task_list
node_search_view -->|"renders results"| node_task_actions
node_search_view -.->|"queries"| node_search_api
node_search_api -->|"uses embeddings"| node_openai_api
node_navigation -->|"loads projects"| node_project_api
node_navigation -->|"opens creation"| node_project_manage
node_navigation -->|"opens creation"| node_label_manage
node_project_manage -->|"uses mutations"| node_project_api
node_label_manage -->|"uses mutations"| node_label_api
node_ai_suggestions -->|"references functions"| node_generated_api
node_todo_api -.->|"uses data model"| node_schema
node_project_api -.->|"uses data model"| node_schema
node_subtodo_api -.->|"uses data model"| node_schema
node_auth_adapter -->|"uses data model"| node_schema
node_mobile_navigation -.->|"search navigation"| node_search_view

click node_landing "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/page.tsx"
click node_auth_action "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/actions/auth-action.ts"
click node_auth_config "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/auth.ts"
click node_auth_route "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/api/auth/%5B...nextauth%5D/route.ts"
click node_inbox "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/loggedin/page.tsx"
click node_project_view "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/loggedin/projects/%5BprojectId%5D/page.tsx"
click node_today "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/loggedin/today/page.tsx"
click node_upcoming "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/loggedin/upcoming/page.tsx"
click node_task_list "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/todos/todo-list.tsx"
click node_task_actions "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/todos/todos.tsx"
click node_task_item "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/todos/task.tsx"
click node_task_creation "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/add-tasks/add-task-inline.tsx"
click node_ai_suggestions "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/add-tasks/suggest-tasks.tsx"
click node_navigation "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/nav/side-bar.tsx"
click node_mobile_navigation "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/nav/mobile-nav.tsx"
click node_search_view "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/loggedin/search/%5BsearchQuery%5D/page.tsx"
click node_project_manage "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/projects/add-project-dialog.tsx"
click node_label_manage "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/labels/add-label-dialog.tsx"
click node_todo_api "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/todos.ts"
click node_project_api "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/projects.ts"
click node_label_api "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/labels.ts"
click node_subtodo_api "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/subTodos.ts"
click node_search_api "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/search.ts"
click node_openai_api "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/openai.ts"
click node_auth_adapter "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/ConvexAdapter.ts"
click node_schema "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/schema.ts"
click node_ui_primitives "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/ui/button.tsx"
click node_generated_api "https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/_generated/api.js"

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_landing,node_auth_action,node_auth_config,node_auth_route,node_visitor toneBlue
class node_inbox,node_project_view,node_today,node_upcoming,node_task_list,node_task_actions,node_task_item,node_task_creation,node_ai_suggestions toneAmber
class node_navigation,node_mobile_navigation,node_search_view,node_project_manage,node_label_manage toneMint
class node_todo_api,node_project_api,node_label_api,node_subtodo_api,node_search_api,node_openai_api,node_auth_adapter,node_schema toneRose
class node_ui_primitives,node_generated_api toneIndigo
```

## Components

### Entry and identity

- [Landing page](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/page.tsx): `app/page.tsx`
- [Sign-in action](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/actions/auth-action.ts): `actions/auth-action.ts`
- [Auth.js config](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/auth.ts): `auth.ts`
- [Auth route](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/api/auth/%5B...nextauth%5D/route.ts): `app/api/auth/[...nextauth]/route.ts`

### Task workspace

- [Inbox view](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/loggedin/page.tsx): `app/loggedin/page.tsx`
- [Project view](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/loggedin/projects/%5BprojectId%5D/page.tsx): `app/loggedin/projects/[projectId]/page.tsx`
- [Today view](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/loggedin/today/page.tsx): `app/loggedin/today/page.tsx`
- [Upcoming view](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/loggedin/upcoming/page.tsx): `app/loggedin/upcoming/page.tsx`
- [Task lists](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/todos/todo-list.tsx): `components/todos/todo-list.tsx`
- [Task completion](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/todos/todos.tsx): `components/todos/todos.tsx`
- [Task item](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/todos/task.tsx): `components/todos/task.tsx`
- [Task creation](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/add-tasks/add-task-inline.tsx): `components/add-tasks/add-task-inline.tsx`
- [AI suggestions](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/add-tasks/suggest-tasks.tsx): `components/add-tasks/suggest-tasks.tsx`

### Organization and search

- [Navigation](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/nav/side-bar.tsx): `components/nav/side-bar.tsx`
- [Mobile navigation](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/nav/mobile-nav.tsx): `components/nav/mobile-nav.tsx`
- [Task search](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/loggedin/search/%5BsearchQuery%5D/page.tsx): `app/loggedin/search/[searchQuery]/page.tsx`
- [Project management](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/projects/add-project-dialog.tsx): `components/projects/add-project-dialog.tsx`
- [Label management](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/labels/add-label-dialog.tsx): `components/labels/add-label-dialog.tsx`

### Backend services

- [Todo operations](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/todos.ts): `convex/todos.ts`
- [Project operations](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/projects.ts): `convex/projects.ts`
- [Label operations](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/labels.ts): `convex/labels.ts`
- [Subtask operations](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/subTodos.ts): `convex/subTodos.ts`
- [Vector search](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/search.ts): `convex/search.ts`
- [OpenAI actions](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/openai.ts): `convex/openai.ts`
- [Convex auth adapter](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/app/ConvexAdapter.ts): `app/ConvexAdapter.ts`
- [Convex schema](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/schema.ts): `convex/schema.ts`

### Shared UI

- [UI primitives](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/components/ui/button.tsx): `components/ui/button.tsx`
- [API references](https://github.com/kulkarniankita/todoist-clone-todovex/blob/main/convex/_generated/api.js): `convex/_generated/api.js`

### Other components

- **User**

## Connections

- User → Landing page: opens (evidence: `app/page.tsx`)
- Landing page → Sign-in action: starts sign-in (evidence: `app/page.tsx`)
- Sign-in action → Auth.js config: uses (evidence: `actions/auth-action.ts`)
- Auth route → Auth.js config: routes to (evidence: `app/api/auth/[...nextauth]/route.ts`)
- Auth.js config → Convex auth adapter: configures (evidence: `auth.ts`)
- User → Inbox view: opens workspace
- Inbox view → Navigation: renders (evidence: `app/loggedin/page.tsx`)
- Inbox view → Mobile navigation: renders (evidence: `app/loggedin/page.tsx`)
- Inbox view → Task lists: renders (evidence: `app/loggedin/page.tsx`)
- Project view → Task completion: renders (evidence: `app/loggedin/projects/[projectId]/page.tsx`)
- Project view → AI suggestions: offers (evidence: `app/loggedin/projects/[projectId]/page.tsx`)
- Task lists → Task item: renders (evidence: `components/todos/todo-list.tsx`)
- Task lists → Task completion: renders (evidence: `components/todos/todo-list.tsx`)
- Task completion → Todo operations: mutates completion (evidence: `components/todos/todos.tsx`)
- Task item → Task creation: opens task editor (evidence: `components/todos/task.tsx`)
- Task creation → Todo operations: creates tasks
- AI suggestions → OpenAI actions: invokes AI (evidence: `components/add-tasks/suggest-tasks.tsx`)
- Today view → Task lists: renders (evidence: `app/loggedin/today/page.tsx`)
- Upcoming view → Task lists: renders
- Task search → Task completion: renders results (evidence: `app/loggedin/search/[searchQuery]/page.tsx`)
- Task search → Vector search: queries
- Vector search → OpenAI actions: uses embeddings (evidence: `convex/search.ts`)
- Navigation → Project operations: loads projects (evidence: `components/nav/side-bar.tsx`)
- Navigation → Project management: opens creation (evidence: `components/nav/side-bar.tsx`)
- Navigation → Label management: opens creation (evidence: `components/nav/side-bar.tsx`)
- Project management → Project operations: uses mutations (evidence: `components/projects/add-project-dialog.tsx`)
- Label management → Label operations: uses mutations (evidence: `components/labels/add-label-dialog.tsx`)
- AI suggestions → API references: references functions (evidence: `components/add-tasks/suggest-tasks.tsx`)
- Todo operations → Convex schema: uses data model
- Project operations → Convex schema: uses data model
- Subtask operations → Convex schema: uses data model
- Convex auth adapter → Convex schema: uses data model
- Mobile navigation → Task search: search navigation (evidence: `app/loggedin/search/[searchQuery]/page.tsx`)
