# akash0422-core/taskflow architecture

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

- Interactive diagram: https://gitdiagram.com/akash0422-core/taskflow
- Repository: https://github.com/akash0422-core/taskflow

## Overview

Taskflow is a project and task manager with React web and Expo mobile clients backed by one Express REST API and PostgreSQL. Users sign in or register, then view dashboard summaries and manage projects and tasks; both clients persist authentication tokens and call the same API. The API authenticates requests, scopes project/task operations to the signed-in user, and returns dashboard aggregates. The schema and README document user-owned projects and project-linked tasks. The server excerpt establishes these routes and database operations; unsampled validation and schema details are not expanded.

Main entry points: [`apps/api/src/server.js`](https://github.com/akash0422-core/taskflow/blob/main/apps/api/src/server.js) (REST server), [`apps/web/src/ui.jsx`](https://github.com/akash0422-core/taskflow/blob/main/apps/web/src/ui.jsx) (Web workspace), [`apps/web/src/api.js`](https://github.com/akash0422-core/taskflow/blob/main/apps/web/src/api.js) (Web API client), [`apps/mobile/app/index.jsx`](https://github.com/akash0422-core/taskflow/blob/main/apps/mobile/app/index.jsx) (Mobile workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["User clients"]
  node_webui["Web workspace<br/>[ui.jsx]"]
  node_webapi["Web API client<br/>[api.js]"]
  node_mobileui["Mobile workspace<br/>[index.jsx]"]
  node_mobileapi["Mobile API client<br/>[api.js]"]
end

subgraph group_api["API services"]
  node_express["REST server<br/>[server.js]"]
  node_auth["Authentication<br/>[server.js]"]
  node_projects["Project operations<br/>[server.js]"]
  node_tasks["Task operations<br/>[server.js]"]
  node_dashboard["Dashboard summaries<br/>[server.js]"]
end

subgraph group_data["Persistent data"]
  node_postgres[("PostgreSQL")]
  node_schema["Prisma data model<br/>[schema.prisma]"]
end

node_user(("Taskflow user"))

node_user -->|"uses"| node_webui
node_user -->|"uses"| node_mobileui
node_webui -->|"calls"| node_webapi
node_mobileui -->|"calls"| node_mobileapi
node_webapi -->|"requests"| node_express
node_mobileapi -->|"requests"| node_express
node_express -->|"routes"| node_auth
node_express -->|"routes"| node_projects
node_express -->|"routes"| node_tasks
node_express -->|"routes"| node_dashboard
node_auth -->|"reads/writes"| node_postgres
node_projects -->|"reads/writes"| node_postgres
node_tasks -->|"reads/writes"| node_postgres
node_dashboard -->|"aggregates"| node_postgres
node_schema -->|"models"| node_postgres

click node_webui "https://github.com/akash0422-core/taskflow/blob/main/apps/web/src/ui.jsx"
click node_webapi "https://github.com/akash0422-core/taskflow/blob/main/apps/web/src/api.js"
click node_mobileui "https://github.com/akash0422-core/taskflow/blob/main/apps/mobile/app/index.jsx"
click node_mobileapi "https://github.com/akash0422-core/taskflow/blob/main/apps/mobile/src/api.js"
click node_express "https://github.com/akash0422-core/taskflow/blob/main/apps/api/src/server.js"
click node_auth "https://github.com/akash0422-core/taskflow/blob/main/apps/api/src/server.js"
click node_projects "https://github.com/akash0422-core/taskflow/blob/main/apps/api/src/server.js"
click node_tasks "https://github.com/akash0422-core/taskflow/blob/main/apps/api/src/server.js"
click node_dashboard "https://github.com/akash0422-core/taskflow/blob/main/apps/api/src/server.js"
click node_schema "https://github.com/akash0422-core/taskflow/blob/main/apps/api/prisma/schema.prisma"

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_webui,node_webapi,node_mobileui,node_mobileapi toneBlue
class node_express,node_auth,node_projects,node_tasks,node_dashboard toneAmber
class node_postgres,node_schema toneMint
class node_user toneRose
```

## Components

### User clients

- [Web workspace](https://github.com/akash0422-core/taskflow/blob/main/apps/web/src/ui.jsx): `apps/web/src/ui.jsx`
- [Web API client](https://github.com/akash0422-core/taskflow/blob/main/apps/web/src/api.js): `apps/web/src/api.js`
- [Mobile workspace](https://github.com/akash0422-core/taskflow/blob/main/apps/mobile/app/index.jsx): `apps/mobile/app/index.jsx`
- [Mobile API client](https://github.com/akash0422-core/taskflow/blob/main/apps/mobile/src/api.js): `apps/mobile/src/api.js`

### API services

- [REST server](https://github.com/akash0422-core/taskflow/blob/main/apps/api/src/server.js): `apps/api/src/server.js`
- [Authentication](https://github.com/akash0422-core/taskflow/blob/main/apps/api/src/server.js): `apps/api/src/server.js`
- [Project operations](https://github.com/akash0422-core/taskflow/blob/main/apps/api/src/server.js): `apps/api/src/server.js`
- [Task operations](https://github.com/akash0422-core/taskflow/blob/main/apps/api/src/server.js): `apps/api/src/server.js`
- [Dashboard summaries](https://github.com/akash0422-core/taskflow/blob/main/apps/api/src/server.js): `apps/api/src/server.js`

### Persistent data

- **PostgreSQL**
- [Prisma data model](https://github.com/akash0422-core/taskflow/blob/main/apps/api/prisma/schema.prisma): `apps/api/prisma/schema.prisma`

### Other components

- **Taskflow user**

## Connections

- Taskflow user → Web workspace: uses (evidence: `README.md`)
- Taskflow user → Mobile workspace: uses (evidence: `README.md`)
- Web workspace → Web API client: calls (evidence: `apps/web/src/ui.jsx`)
- Mobile workspace → Mobile API client: calls (evidence: `apps/mobile/app/index.jsx`)
- Web API client → REST server: requests (evidence: `README.md`)
- Mobile API client → REST server: requests (evidence: `README.md`)
- REST server → Authentication: routes (evidence: `apps/api/src/server.js`)
- REST server → Project operations: routes (evidence: `apps/api/src/server.js`)
- REST server → Task operations: routes (evidence: `apps/api/src/server.js`)
- REST server → Dashboard summaries: routes (evidence: `apps/api/src/server.js`)
- Authentication → PostgreSQL: reads/writes (evidence: `apps/api/src/server.js`)
- Project operations → PostgreSQL: reads/writes (evidence: `apps/api/src/server.js`)
- Task operations → PostgreSQL: reads/writes (evidence: `apps/api/src/server.js`)
- Dashboard summaries → PostgreSQL: aggregates (evidence: `apps/api/src/server.js`)
- Prisma data model → PostgreSQL: models (evidence: `README.md`)
