# amitdas4321/notendo architecture

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

- Interactive diagram: https://gitdiagram.com/amitdas4321/notendo
- Repository: https://github.com/amitdas4321/notendo

## Overview

NoteNDo is a task and reminder app: users sign in, manage tasks and profiles, attach media, and schedule WhatsApp alerts. The React application is the main interaction layer; its Express server provides API routes and a background reminder checker, with Firebase and external messaging and file services behind it. The README documents task/profile APIs and reminder behavior, while excerpts show server-side integrations. Some App-to-API calls are documented rather than visible in the sampled App excerpt.

Main entry points: [`server.ts`](https://github.com/amitdas4321/notendo/blob/main/server.ts) (Express API), [`src/App.tsx`](https://github.com/amitdas4321/notendo/blob/main/src/App.tsx) (Task dashboard), [`src/services/upload.ts`](https://github.com/amitdas4321/notendo/blob/main/src/services/upload.ts) (Media attachments), [`src/services/whatsapp.ts`](https://github.com/amitdas4321/notendo/blob/main/src/services/whatsapp.ts) (WhatsApp client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["User application"]
  node_app["Task dashboard<br/>[App.tsx]"]
  node_auth["OTP and profile<br/>[App.tsx]"]
  node_media["Media attachments<br/>[upload.ts]"]
  node_wa_client["WhatsApp client<br/>[whatsapp.ts]"]
end

subgraph group_server["API and reminders"]
  node_api["Express API<br/>[server.ts]"]
  node_scheduler["Reminder checker<br/>[server.ts]"]
end

subgraph group_integrations["External services"]
  node_firebase[("Firebase RTDB")]
  node_texts["TextSnap messaging"]
  node_files["tmpfiles storage"]
end

node_user(("User"))

node_user -->|"manages tasks"| node_app
node_user -->|"signs in"| node_auth
node_app -->|"calls task APIs"| node_api
node_auth -->|"verifies OTP"| node_api
node_app -->|"uploads media"| node_media
node_media -->|"posts file"| node_api
node_api -->|"uploads file"| node_files
node_app -->|"sends alerts"| node_wa_client
node_wa_client -->|"requests send"| node_api
node_api -->|"reads and writes"| node_firebase
node_scheduler -->|"checks reminders"| node_firebase
node_scheduler -->|"sends reminders"| node_texts

click node_app "https://github.com/amitdas4321/notendo/blob/main/src/App.tsx"
click node_auth "https://github.com/amitdas4321/notendo/blob/main/src/App.tsx"
click node_media "https://github.com/amitdas4321/notendo/blob/main/src/services/upload.ts"
click node_wa_client "https://github.com/amitdas4321/notendo/blob/main/src/services/whatsapp.ts"
click node_api "https://github.com/amitdas4321/notendo/blob/main/server.ts"
click node_scheduler "https://github.com/amitdas4321/notendo/blob/main/server.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_media,node_wa_client,node_user toneBlue
class node_api,node_scheduler toneAmber
class node_firebase,node_texts,node_files toneMint
```

## Components

### User application

- [Task dashboard](https://github.com/amitdas4321/notendo/blob/main/src/App.tsx): `src/App.tsx`
- [OTP and profile](https://github.com/amitdas4321/notendo/blob/main/src/App.tsx): `src/App.tsx`
- [Media attachments](https://github.com/amitdas4321/notendo/blob/main/src/services/upload.ts): `src/services/upload.ts`
- [WhatsApp client](https://github.com/amitdas4321/notendo/blob/main/src/services/whatsapp.ts): `src/services/whatsapp.ts`

### API and reminders

- [Express API](https://github.com/amitdas4321/notendo/blob/main/server.ts): `server.ts`
- [Reminder checker](https://github.com/amitdas4321/notendo/blob/main/server.ts): `server.ts`

### External services

- **Firebase RTDB**
- **TextSnap messaging**
- **tmpfiles storage**

### Other components

- **User**

## Connections

- User → Task dashboard: manages tasks (evidence: `README.md`)
- User → OTP and profile: signs in (evidence: `README.md`)
- Task dashboard → Express API: calls task APIs (evidence: `README.md`)
- OTP and profile → Express API: verifies OTP (evidence: `src/App.tsx`)
- Task dashboard → Media attachments: uploads media (evidence: `src/App.tsx`)
- Media attachments → Express API: posts file (evidence: `src/services/upload.ts`)
- Express API → tmpfiles storage: uploads file (evidence: `server.ts`)
- Task dashboard → WhatsApp client: sends alerts (evidence: `src/App.tsx`)
- WhatsApp client → Express API: requests send (evidence: `src/services/whatsapp.ts`)
- Express API → Firebase RTDB: reads and writes (evidence: `server.ts`)
- Reminder checker → Firebase RTDB: checks reminders (evidence: `server.ts`)
- Reminder checker → TextSnap messaging: sends reminders (evidence: `server.ts`)
