# parth-s-mhatre/tasky architecture

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

- Interactive diagram: https://gitdiagram.com/parth-s-mhatre/tasky
- Repository: https://github.com/parth-s-mhatre/tasky

## Overview

Tasky is an Expo/React Native task manager. Users authenticate, then create and manage dated tasks, browse/search/filter them in a date-grouped list or calendar, and navigate account settings or sign out. The graph follows the documented workflow and source-index references; unsampled route implementations are represented by their exact route paths, with only documented or evidenced connections included.

Main entry points: [`src/state/taskStore.ts`](https://github.com/parth-s-mhatre/tasky/blob/main/src/state/taskStore.ts) (Task state), [`src/state/authStore.ts`](https://github.com/parth-s-mhatre/tasky/blob/main/src/state/authStore.ts) (Auth state), [`src/components/AppDrawer.tsx`](https://github.com/parth-s-mhatre/tasky/blob/main/src/components/AppDrawer.tsx) (Navigation drawer), [`src/state/useGoogleAuth.ts`](https://github.com/parth-s-mhatre/tasky/blob/main/src/state/useGoogleAuth.ts) (Google sign-in flow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App routes"]
  node_router["Session gate<br/>[_layout.tsx]"]
  node_login["Login and register<br/>[login.tsx]"]
  node_register["Registration route<br/>[register.tsx]"]
  node_home["Home overview<br/>[home.tsx]"]
  node_settings["Account settings<br/>[settings.tsx]"]
  node_drawer["Navigation drawer<br/>[AppDrawer.tsx]"]
end

subgraph group_auth["Authentication"]
  node_authstore["Auth state<br/>[authStore.ts]"]
  node_googleflow["Google sign-in flow<br/>[useGoogleAuth.ts]"]
  node_authrepo["Firebase auth repository<br/>[authRepository.ts]"]
end

subgraph group_tasks["Task management"]
  node_tasklist["Task list<br/>[index.tsx]"]
  node_calendar["Task calendar<br/>[calendar.tsx]"]
  node_newtask["Create task<br/>[new.tsx]"]
  node_details["Task details<br/>[&#91;id&#93;.tsx]"]
  node_form["Task form<br/>[TaskForm.tsx]"]
end

subgraph group_services["Data and domain"]
  node_taskstore["Task state<br/>[taskStore.ts]"]
  node_taskrepo["Firestore task repository<br/>[taskRepository.ts]"]
  node_taskdomain["Task rules and filtering<br/>[task.ts]"]
  node_firebase["Firebase clients<br/>[firebase.ts]"]
end

node_user(("App user"))
node_firestore[("Cloud Firestore")]
node_firebaseauth["Firebase Authentication"]
node_google["Native Google Sign-In"]

node_user -->|"opens app"| node_router
node_router -->|"restores session"| node_authstore
node_user -->|"enters credentials"| node_login
node_user -->|"starts registration"| node_register
node_login -->|"submits auth"| node_authstore
node_register -->|"submits auth"| node_authstore
node_login -->|"starts Google auth"| node_googleflow
node_register -->|"starts Google auth"| node_googleflow
node_googleflow -->|"requests identity"| node_google
node_googleflow -->|"exchanges token"| node_authstore
node_authstore -->|"delegates auth"| node_authrepo
node_authrepo -->|"uses auth client"| node_firebase
node_firebase -->|"initializes client"| node_firebaseauth
node_authstore -->|"resets account tasks"| node_taskstore
node_user -->|"views overview"| node_home
node_user -->|"browses tasks"| node_tasklist
node_user -->|"browses dates"| node_calendar
node_user -->|"creates task"| node_newtask
node_user -->|"opens task"| node_details
node_user -->|"opens settings"| node_settings
node_home -->|"reads task state"| node_taskstore
node_tasklist -->|"reads and updates"| node_taskstore
node_calendar -->|"reads tasks"| node_taskstore
node_newtask -->|"renders form"| node_form
node_newtask -->|"creates task"| node_taskstore
node_details -->|"renders form"| node_form
node_details -->|"updates task"| node_taskstore
node_taskstore -->|"delegates persistence"| node_taskrepo
node_taskstore -->|"filters and sorts"| node_taskdomain
node_taskrepo -->|"gets database client"| node_firebase
node_taskrepo -->|"reads and writes tasks"| node_firestore
node_firebase -->|"initializes database"| node_firestore
node_drawer -->|"signs out"| node_authstore
node_home -->|"renders navigation"| node_drawer
node_settings -->|"renders navigation"| node_drawer
node_tasklist -->|"renders navigation"| node_drawer
node_calendar -->|"renders navigation"| node_drawer

click node_router "https://github.com/parth-s-mhatre/tasky/blob/main/app/_layout.tsx"
click node_login "https://github.com/parth-s-mhatre/tasky/blob/main/app/login.tsx"
click node_register "https://github.com/parth-s-mhatre/tasky/blob/main/app/register.tsx"
click node_home "https://github.com/parth-s-mhatre/tasky/blob/main/app/home.tsx"
click node_settings "https://github.com/parth-s-mhatre/tasky/blob/main/app/settings.tsx"
click node_tasklist "https://github.com/parth-s-mhatre/tasky/blob/main/app/tasks/index.tsx"
click node_calendar "https://github.com/parth-s-mhatre/tasky/blob/main/app/tasks/calendar.tsx"
click node_newtask "https://github.com/parth-s-mhatre/tasky/blob/main/app/tasks/new.tsx"
click node_details "https://github.com/parth-s-mhatre/tasky/blob/main/app/tasks/%5Bid%5D.tsx"
click node_form "https://github.com/parth-s-mhatre/tasky/blob/main/src/components/TaskForm.tsx"
click node_drawer "https://github.com/parth-s-mhatre/tasky/blob/main/src/components/AppDrawer.tsx"
click node_authstore "https://github.com/parth-s-mhatre/tasky/blob/main/src/state/authStore.ts"
click node_googleflow "https://github.com/parth-s-mhatre/tasky/blob/main/src/state/useGoogleAuth.ts"
click node_authrepo "https://github.com/parth-s-mhatre/tasky/blob/main/src/data/authRepository.ts"
click node_taskstore "https://github.com/parth-s-mhatre/tasky/blob/main/src/state/taskStore.ts"
click node_taskrepo "https://github.com/parth-s-mhatre/tasky/blob/main/src/data/taskRepository.ts"
click node_taskdomain "https://github.com/parth-s-mhatre/tasky/blob/main/src/domain/task.ts"
click node_firebase "https://github.com/parth-s-mhatre/tasky/blob/main/src/core/firebase.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_router,node_login,node_register,node_home,node_settings,node_drawer,node_user toneBlue
class node_authstore,node_googleflow,node_authrepo,node_firestore toneAmber
class node_tasklist,node_calendar,node_newtask,node_details,node_form toneMint
class node_taskstore,node_taskrepo,node_taskdomain,node_firebase toneRose
class node_firebaseauth,node_google toneIndigo
```

## Components

### App routes

- [Session gate](https://github.com/parth-s-mhatre/tasky/blob/main/app/_layout.tsx): `app/_layout.tsx`
- [Login and register](https://github.com/parth-s-mhatre/tasky/blob/main/app/login.tsx): `app/login.tsx`
- [Registration route](https://github.com/parth-s-mhatre/tasky/blob/main/app/register.tsx): `app/register.tsx`
- [Home overview](https://github.com/parth-s-mhatre/tasky/blob/main/app/home.tsx): `app/home.tsx`
- [Account settings](https://github.com/parth-s-mhatre/tasky/blob/main/app/settings.tsx): `app/settings.tsx`
- [Navigation drawer](https://github.com/parth-s-mhatre/tasky/blob/main/src/components/AppDrawer.tsx): `src/components/AppDrawer.tsx`

### Authentication

- [Auth state](https://github.com/parth-s-mhatre/tasky/blob/main/src/state/authStore.ts): `src/state/authStore.ts`
- [Google sign-in flow](https://github.com/parth-s-mhatre/tasky/blob/main/src/state/useGoogleAuth.ts): `src/state/useGoogleAuth.ts`
- [Firebase auth repository](https://github.com/parth-s-mhatre/tasky/blob/main/src/data/authRepository.ts): `src/data/authRepository.ts`

### Task management

- [Task list](https://github.com/parth-s-mhatre/tasky/blob/main/app/tasks/index.tsx): `app/tasks/index.tsx`
- [Task calendar](https://github.com/parth-s-mhatre/tasky/blob/main/app/tasks/calendar.tsx): `app/tasks/calendar.tsx`
- [Create task](https://github.com/parth-s-mhatre/tasky/blob/main/app/tasks/new.tsx): `app/tasks/new.tsx`
- [Task details](https://github.com/parth-s-mhatre/tasky/blob/main/app/tasks/%5Bid%5D.tsx): `app/tasks/[id].tsx`
- [Task form](https://github.com/parth-s-mhatre/tasky/blob/main/src/components/TaskForm.tsx): `src/components/TaskForm.tsx`

### Data and domain

- [Task state](https://github.com/parth-s-mhatre/tasky/blob/main/src/state/taskStore.ts): `src/state/taskStore.ts`
- [Firestore task repository](https://github.com/parth-s-mhatre/tasky/blob/main/src/data/taskRepository.ts): `src/data/taskRepository.ts`
- [Task rules and filtering](https://github.com/parth-s-mhatre/tasky/blob/main/src/domain/task.ts): `src/domain/task.ts`
- [Firebase clients](https://github.com/parth-s-mhatre/tasky/blob/main/src/core/firebase.ts): `src/core/firebase.ts`

### Other components

- **App user**
- **Cloud Firestore**
- **Firebase Authentication**
- **Native Google Sign-In**

## Connections

- App user → Session gate: opens app (evidence: `README.md`)
- Session gate → Auth state: restores session (evidence: `app/_layout.tsx`)
- App user → Login and register: enters credentials (evidence: `README.md`)
- App user → Registration route: starts registration (evidence: `README.md`)
- Login and register → Auth state: submits auth (evidence: `app/login.tsx`)
- Registration route → Auth state: submits auth (evidence: `app/register.tsx`)
- Login and register → Google sign-in flow: starts Google auth (evidence: `app/login.tsx`)
- Registration route → Google sign-in flow: starts Google auth (evidence: `app/register.tsx`)
- Google sign-in flow → Native Google Sign-In: requests identity (evidence: `src/state/useGoogleAuth.ts`)
- Google sign-in flow → Auth state: exchanges token (evidence: `src/state/useGoogleAuth.ts`)
- Auth state → Firebase auth repository: delegates auth (evidence: `src/state/authStore.ts`)
- Firebase auth repository → Firebase clients: uses auth client (evidence: `src/data/authRepository.ts`)
- Firebase clients → Firebase Authentication: initializes client (evidence: `src/core/firebase.ts`)
- Auth state → Task state: resets account tasks (evidence: `src/state/authStore.ts`)
- App user → Home overview: views overview (evidence: `README.md`)
- App user → Task list: browses tasks (evidence: `README.md`)
- App user → Task calendar: browses dates (evidence: `README.md`)
- App user → Create task: creates task (evidence: `README.md`)
- App user → Task details: opens task (evidence: `README.md`)
- App user → Account settings: opens settings (evidence: `README.md`)
- Home overview → Task state: reads task state (evidence: `app/home.tsx`)
- Task list → Task state: reads and updates (evidence: `app/tasks/index.tsx`)
- Task calendar → Task state: reads tasks (evidence: `app/tasks/calendar.tsx`)
- Create task → Task form: renders form (evidence: `app/tasks/new.tsx`)
- Create task → Task state: creates task (evidence: `app/tasks/new.tsx`)
- Task details → Task form: renders form (evidence: `app/tasks/[id].tsx`)
- Task details → Task state: updates task (evidence: `app/tasks/[id].tsx`)
- Task state → Firestore task repository: delegates persistence (evidence: `src/state/taskStore.ts`)
- Task state → Task rules and filtering: filters and sorts (evidence: `src/state/taskStore.ts`)
- Firestore task repository → Firebase clients: gets database client (evidence: `src/data/taskRepository.ts`)
- Firestore task repository → Cloud Firestore: reads and writes tasks (evidence: `README.md`)
- Firebase clients → Cloud Firestore: initializes database (evidence: `src/core/firebase.ts`)
- Navigation drawer → Auth state: signs out (evidence: `src/components/AppDrawer.tsx`)
- Home overview → Navigation drawer: renders navigation (evidence: `app/home.tsx`)
- Account settings → Navigation drawer: renders navigation (evidence: `app/settings.tsx`)
- Task list → Navigation drawer: renders navigation (evidence: `app/tasks/index.tsx`)
- Task calendar → Navigation drawer: renders navigation (evidence: `app/tasks/calendar.tsx`)
