# hemantdhaniyar/taskflow architecture

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

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

## Overview

Taskflow is a browser-based task manager. Users sign up or log in, then create, edit, delete, search, filter, and update the status of tasks; the dashboard summarizes task counts and shows recent tasks. The sampled JavaScript stores accounts and per-user tasks in localStorage and builds the task views in the DOM. The file tree and excerpts show no separate backend or additional product modules, so the graph stays focused on this single-file runtime.

Main entry points: [`taskflow/script.js`](https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js) (Task state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Account access"]
  node_auth["Sign up and login<br/>[script.js]"]
  node_session["Current user session<br/>[script.js]"]
end

subgraph group_tasks["Task management"]
  node_task_form["Task editor<br/>[script.js]"]
  node_task_actions["Task updates and deletion<br/>[script.js]"]
  node_task_state["Task state<br/>[script.js]"]
end

subgraph group_views["Task views"]
  node_dashboard["Dashboard summary<br/>[script.js]"]
  node_task_list["Task list and filters<br/>[script.js]"]
  node_task_card["Task cards<br/>[script.js]"]
end

subgraph group_storage["Browser storage"]
  node_local_storage[("localStorage")]
end

node_user(("User"))

node_user -->|"signs in"| node_auth
node_auth -->|"reads and writes accounts"| node_local_storage
node_auth -->|"sets session"| node_session
node_session -->|"loads user tasks"| node_local_storage
node_task_form -->|"creates or edits"| node_task_state
node_task_actions -->|"changes tasks"| node_task_state
node_task_state -->|"saves tasks"| node_local_storage
node_task_state -->|"summarizes"| node_dashboard
node_task_state -->|"filters and lists"| node_task_list
node_task_list -->|"renders"| node_task_card
node_task_card -->|"dispatches actions"| node_task_actions

click node_auth "https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js"
click node_session "https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js"
click node_task_form "https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js"
click node_task_actions "https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js"
click node_task_state "https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js"
click node_dashboard "https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js"
click node_task_list "https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js"
click node_task_card "https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.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_auth,node_session,node_user toneBlue
class node_task_form,node_task_actions,node_task_state toneAmber
class node_dashboard,node_task_list,node_task_card toneMint
class node_local_storage toneRose
```

## Components

### Account access

- [Sign up and login](https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js): `taskflow/script.js`
- [Current user session](https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js): `taskflow/script.js`

### Task management

- [Task editor](https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js): `taskflow/script.js`
- [Task updates and deletion](https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js): `taskflow/script.js`
- [Task state](https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js): `taskflow/script.js`

### Task views

- [Dashboard summary](https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js): `taskflow/script.js`
- [Task list and filters](https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js): `taskflow/script.js`
- [Task cards](https://github.com/hemantdhaniyar/taskflow/blob/main/taskflow/script.js): `taskflow/script.js`

### Browser storage

- **localStorage**

### Other components

- **User**

## Connections

- User → Sign up and login: signs in (evidence: `taskflow/script.js`)
- Sign up and login → localStorage: reads and writes accounts (evidence: `taskflow/script.js`)
- Sign up and login → Current user session: sets session (evidence: `taskflow/script.js`)
- Current user session → localStorage: loads user tasks (evidence: `taskflow/script.js`)
- Task editor → Task state: creates or edits (evidence: `taskflow/script.js`)
- Task updates and deletion → Task state: changes tasks (evidence: `taskflow/script.js`)
- Task state → localStorage: saves tasks (evidence: `taskflow/script.js`)
- Task state → Dashboard summary: summarizes (evidence: `taskflow/script.js`)
- Task state → Task list and filters: filters and lists (evidence: `taskflow/script.js`)
- Task list and filters → Task cards: renders (evidence: `taskflow/script.js`)
- Task cards → Task updates and deletion: dispatches actions (evidence: `taskflow/script.js`)
