# praneetsoni382/subscription-task-application- architecture

> Architecture diagram of the GitHub repository praneetsoni382/subscription-task-application-, 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/praneetsoni382/subscription-task-application-
- Repository: https://github.com/praneetsoni382/subscription-task-application-

## Overview

TaskFlow is a multi-tenant task-operations SaaS with admin and employee workspaces. Users sign in, enter role-protected dashboards, and use task and collaboration features through the API; the backend enforces sessions and plan entitlements, persists workspace data in Firestore, and supports reminders, notifications, meetings, and billing. The graph preserves the README’s major capability branches. Several route and UI implementations were not sampled, so those subsystems use their exact enclosing directories; uncertain relationships are omitted rather than inferred.

Main entry points: [`server/src/app.ts`](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/app.ts) (Express API), [`server/src/repositories/firestoreRepository.ts`](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/repositories/firestoreRepository.ts) (Firestore repository), [`server/src/services/notificationService.ts`](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/notificationService.ts) (Notification delivery), [`client/src/App.tsx`](https://github.com/praneetsoni382/subscription-task-application-/blob/main/client/src/App.tsx) (App routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["App routing<br/>[App.tsx]"]
  node_auth["Authentication state<br/>[AuthContext.tsx]"]
  node_api_client["API client<br/>[api.ts]"]
  node_work_ui["Task workspace UI"]
  node_meet_ui["Meet workspace UI<br/>[GoogleMeetCard.tsx]"]
  node_notify_ui["Notification UI"]
end

subgraph group_api["API domains"]
  node_api_host["Express API<br/>[app.ts]"]
  node_task_routes["Task routes<br/>[tasks.ts]"]
  node_collab_routes["Team collaboration"]
  node_report_routes["Dashboards and reports"]
  node_meet_routes["Meeting routes<br/>[meetings.ts]"]
  node_billing_routes["Billing routes"]
  node_notify_routes["Notification routes"]
  node_bootstrap_routes["Workspace onboarding<br/>[bootstrap.ts]"]
end

subgraph group_services["Platform services"]
  node_sessions["Session control<br/>[sessionService.ts]"]
  node_entitlements["Entitlements"]
  node_meet_generation["Meet generation"]
  node_payments["Razorpay payments"]
  node_notifications["Notification delivery"]
  node_push["Web push delivery"]
  node_scheduler["IST reminders"]
end

subgraph group_data["Persistence"]
  node_repository["Firestore repository"]
  node_firestore[("Cloud Firestore")]
end

node_user(("Workspace user"))
node_external_services{{"Google and Razorpay"}}

node_user -->|"uses"| node_app
node_app -->|"provides auth"| node_auth
node_app -->|"routes to"| node_work_ui
node_app -->|"renders"| node_notify_ui
node_auth -->|"requests auth"| node_api_client
node_work_ui -->|"requests data"| node_api_client
node_meet_ui -->|"requests meetings"| node_api_client
node_api_client -.->|"calls endpoints"| node_api_host
node_api_host -->|"mounts"| node_task_routes
node_api_host -->|"mounts"| node_collab_routes
node_api_host -->|"mounts"| node_report_routes
node_api_host -->|"mounts"| node_meet_routes
node_api_host -->|"mounts"| node_billing_routes
node_api_host -->|"mounts"| node_notify_routes
node_api_host -->|"mounts"| node_bootstrap_routes
node_task_routes -->|"reads and writes"| node_repository
node_task_routes -->|"triggers"| node_notifications
node_repository -->|"persists data"| node_firestore
node_sessions -->|"updates sessions"| node_firestore
node_entitlements -->|"updates plans"| node_firestore
node_entitlements -->|"creates identifiers"| node_repository
node_meet_generation -->|"reads and writes"| node_repository
node_meet_generation -.->|"reserves credits"| node_entitlements
node_meet_generation -.->|"calls Google"| node_external_services
node_payments -->|"reads and writes"| node_repository
node_payments -.->|"updates entitlements"| node_entitlements
node_payments -.->|"uses Razorpay"| node_external_services
node_notifications -->|"records notices"| node_repository
node_notifications -->|"dispatches push"| node_push
node_scheduler -->|"checks deadlines"| node_repository
node_scheduler -->|"sends reminders"| node_notifications
node_notify_routes -.->|"delivers notices"| node_notifications
node_meet_routes -.->|"generates rooms"| node_meet_generation
node_billing_routes -.->|"handles billing"| node_payments

click node_app "https://github.com/praneetsoni382/subscription-task-application-/blob/main/client/src/App.tsx"
click node_auth "https://github.com/praneetsoni382/subscription-task-application-/blob/main/client/src/contexts/AuthContext.tsx"
click node_api_client "https://github.com/praneetsoni382/subscription-task-application-/blob/main/client/src/services/api.ts"
click node_work_ui "https://github.com/praneetsoni382/subscription-task-application-/tree/main/client/src/pages"
click node_meet_ui "https://github.com/praneetsoni382/subscription-task-application-/blob/main/client/src/components/meetings/GoogleMeetCard.tsx"
click node_notify_ui "https://github.com/praneetsoni382/subscription-task-application-/tree/main/client/src/components/notifications"
click node_api_host "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/app.ts"
click node_task_routes "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/routes/tasks.ts"
click node_collab_routes "https://github.com/praneetsoni382/subscription-task-application-/tree/main/server/src/routes"
click node_report_routes "https://github.com/praneetsoni382/subscription-task-application-/tree/main/server/src/routes"
click node_meet_routes "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/routes/meetings.ts"
click node_billing_routes "https://github.com/praneetsoni382/subscription-task-application-/tree/main/server/src/routes"
click node_notify_routes "https://github.com/praneetsoni382/subscription-task-application-/tree/main/server/src/routes"
click node_bootstrap_routes "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/routes/bootstrap.ts"
click node_repository "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/repositories/firestoreRepository.ts"
click node_sessions "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/sessionService.ts"
click node_entitlements "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/subscriptionEntitlementService.ts"
click node_meet_generation "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/meetGenerationService.ts"
click node_payments "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/razorpayPaymentService.ts"
click node_notifications "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/notificationService.ts"
click node_push "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/pushNotificationService.ts"
click node_scheduler "https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/istSchedulerService.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_app,node_auth,node_api_client,node_work_ui,node_meet_ui,node_notify_ui,node_user toneBlue
class node_api_host,node_task_routes,node_collab_routes,node_report_routes,node_meet_routes,node_billing_routes,node_notify_routes,node_bootstrap_routes toneAmber
class node_sessions,node_entitlements,node_meet_generation,node_payments,node_notifications,node_push,node_scheduler toneMint
class node_repository,node_firestore toneRose
class node_external_services toneIndigo
```

## Components

### Web application

- [App routing](https://github.com/praneetsoni382/subscription-task-application-/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Authentication state](https://github.com/praneetsoni382/subscription-task-application-/blob/main/client/src/contexts/AuthContext.tsx): `client/src/contexts/AuthContext.tsx`
- [API client](https://github.com/praneetsoni382/subscription-task-application-/blob/main/client/src/services/api.ts): `client/src/services/api.ts`
- [Task workspace UI](https://github.com/praneetsoni382/subscription-task-application-/tree/main/client/src/pages): `client/src/pages`
- [Meet workspace UI](https://github.com/praneetsoni382/subscription-task-application-/blob/main/client/src/components/meetings/GoogleMeetCard.tsx): `client/src/components/meetings/GoogleMeetCard.tsx`
- [Notification UI](https://github.com/praneetsoni382/subscription-task-application-/tree/main/client/src/components/notifications): `client/src/components/notifications`

### API domains

- [Express API](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/app.ts): `server/src/app.ts`
- [Task routes](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/routes/tasks.ts): `server/src/routes/tasks.ts`
- [Team collaboration](https://github.com/praneetsoni382/subscription-task-application-/tree/main/server/src/routes): `server/src/routes`
- [Dashboards and reports](https://github.com/praneetsoni382/subscription-task-application-/tree/main/server/src/routes): `server/src/routes`
- [Meeting routes](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/routes/meetings.ts): `server/src/routes/meetings.ts`
- [Billing routes](https://github.com/praneetsoni382/subscription-task-application-/tree/main/server/src/routes): `server/src/routes`
- [Notification routes](https://github.com/praneetsoni382/subscription-task-application-/tree/main/server/src/routes): `server/src/routes`
- [Workspace onboarding](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/routes/bootstrap.ts): `server/src/routes/bootstrap.ts`

### Platform services

- [Session control](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/sessionService.ts): `server/src/services/sessionService.ts`
- [Entitlements](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/subscriptionEntitlementService.ts): `server/src/services/subscriptionEntitlementService.ts`
- [Meet generation](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/meetGenerationService.ts): `server/src/services/meetGenerationService.ts`
- [Razorpay payments](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/razorpayPaymentService.ts): `server/src/services/razorpayPaymentService.ts`
- [Notification delivery](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/notificationService.ts): `server/src/services/notificationService.ts`
- [Web push delivery](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/pushNotificationService.ts): `server/src/services/pushNotificationService.ts`
- [IST reminders](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/services/istSchedulerService.ts): `server/src/services/istSchedulerService.ts`

### Persistence

- [Firestore repository](https://github.com/praneetsoni382/subscription-task-application-/blob/main/server/src/repositories/firestoreRepository.ts): `server/src/repositories/firestoreRepository.ts`
- **Cloud Firestore**

### Other components

- **Workspace user**
- **Google and Razorpay**

## Connections

- Workspace user → App routing: uses (evidence: `client/src/App.tsx`)
- App routing → Authentication state: provides auth (evidence: `client/src/App.tsx`)
- App routing → Task workspace UI: routes to (evidence: `client/src/App.tsx`)
- App routing → Notification UI: renders (evidence: `client/src/App.tsx`)
- Authentication state → API client: requests auth (evidence: `client/src/contexts/AuthContext.tsx`)
- Task workspace UI → API client: requests data (evidence: `client/src/pages/admin/TasksPage.tsx`)
- Meet workspace UI → API client: requests meetings (evidence: `client/src/components/meetings/GoogleMeetCard.tsx`)
- API client → Express API: calls endpoints (evidence: `client/src/services/api.ts`)
- Express API → Task routes: mounts (evidence: `server/src/app.ts`)
- Express API → Team collaboration: mounts (evidence: `server/src/app.ts`)
- Express API → Dashboards and reports: mounts (evidence: `server/src/app.ts`)
- Express API → Meeting routes: mounts (evidence: `server/src/app.ts`)
- Express API → Billing routes: mounts (evidence: `server/src/app.ts`)
- Express API → Notification routes: mounts (evidence: `server/src/app.ts`)
- Express API → Workspace onboarding: mounts (evidence: `server/src/app.ts`)
- Task routes → Firestore repository: reads and writes (evidence: `server/src/routes/tasks.ts`)
- Task routes → Notification delivery: triggers (evidence: `server/src/routes/tasks.ts`)
- Firestore repository → Cloud Firestore: persists data (evidence: `server/src/repositories/firestoreRepository.ts`)
- Session control → Cloud Firestore: updates sessions (evidence: `server/src/services/sessionService.ts`)
- Entitlements → Cloud Firestore: updates plans (evidence: `server/src/services/subscriptionEntitlementService.ts`)
- Entitlements → Firestore repository: creates identifiers (evidence: `server/src/services/subscriptionEntitlementService.ts`)
- Meet generation → Firestore repository: reads and writes (evidence: `server/src/services/meetGenerationService.ts`)
- Meet generation → Entitlements: reserves credits (evidence: `server/src/services/meetGenerationService.ts`)
- Meet generation → Google and Razorpay: calls Google (evidence: `README.md`)
- Razorpay payments → Firestore repository: reads and writes (evidence: `server/src/services/razorpayPaymentService.ts`)
- Razorpay payments → Entitlements: updates entitlements (evidence: `server/src/services/razorpayPaymentService.ts`)
- Razorpay payments → Google and Razorpay: uses Razorpay (evidence: `README.md`)
- Notification delivery → Firestore repository: records notices (evidence: `server/src/services/notificationService.ts`)
- Notification delivery → Web push delivery: dispatches push (evidence: `server/src/services/notificationService.ts`)
- IST reminders → Firestore repository: checks deadlines (evidence: `server/src/services/istSchedulerService.ts`)
- IST reminders → Notification delivery: sends reminders (evidence: `server/src/services/istSchedulerService.ts`)
- Notification routes → Notification delivery: delivers notices (evidence: `server/src/routes/tasks.ts`)
- Meeting routes → Meet generation: generates rooms
- Billing routes → Razorpay payments: handles billing
