# diphire/aikyam architecture

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

- Interactive diagram: https://gitdiagram.com/diphire/aikyam
- Repository: https://github.com/diphire/aikyam

## Overview

Aikyam is a Flutter app connecting NGOs with prospective volunteers. NGOs register and publish event or drive posts; individuals discover posts and apply; the app supports communication and application/event updates. The graph preserves these documented capabilities and the Firebase services named in the README. Dart implementation files were not excerpted, so feature-to-provider wiring and internal call paths are not asserted.

Main entry points: [`lib/views/Screens/User/HomeScreen.dart`](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/User/HomeScreen.dart) (Browse posts), [`lib/views/Screens/User/UActivityScreen.dart`](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/User/UActivityScreen.dart) (Volunteer applications), [`lib/views/Screens/Ngo/NCreatePostScreen.dart`](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/Ngo/NCreatePostScreen.dart) (Create and edit posts), [`lib/main.dart`](https://github.com/diphire/aikyam/blob/main/lib/main.dart) (Flutter app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app["Flutter app<br/>[main.dart]"]
end

subgraph group_identity["Accounts"]
  node_login["Login and OTP"]
  node_auth["Authentication<br/>[auth_provider.dart]"]
  node_user_profile["User profile"]
  node_ngo_registration["NGO registration"]
  node_ngo_profile["NGO profile"]
end

subgraph group_volunteer["Volunteer workflow"]
  node_post_discovery["Browse posts<br/>[HomeScreen.dart]"]
  node_post_details["Post details"]
  node_application["Volunteer applications"]
  node_user_activity["User activity"]
end

subgraph group_ngo["NGO workflow"]
  node_post_authoring["Create and edit posts"]
  node_applicant_review["Review applicants"]
  node_ngo_activity["NGO activity"]
end

subgraph group_platform["Shared platform"]
  node_chat["Messaging screens<br/>[ChatScreen.dart]"]
  node_chat_provider["Chat state<br/>[chat_provider.dart]"]
  node_user_provider["User state<br/>[user_provider.dart]"]
  node_post_provider["Post state<br/>[post_provider.dart]"]
  node_ngo_provider["NGO state<br/>[ngo_provider.dart]"]
  node_firebase_auth["Firebase authentication"]
  node_firebase_data[("Firebase database")]
  node_firebase_storage[("Firebase storage")]
  node_firebase_messaging["Firebase messaging"]
end

node_volunteer_actor(("Volunteer"))
node_ngo_actor(("NGO"))

node_volunteer_actor -->|"uses"| node_app
node_ngo_actor -->|"uses"| node_app
node_app -.->|"offers access"| node_login
node_volunteer_actor -->|"sets up profile"| node_user_profile
node_ngo_actor -->|"registers"| node_ngo_registration
node_volunteer_actor -->|"browses"| node_post_discovery
node_post_discovery -.->|"opens"| node_post_details
node_volunteer_actor -->|"applies"| node_application
node_ngo_actor -->|"creates posts"| node_post_authoring
node_ngo_actor -->|"reviews applications"| node_applicant_review
node_volunteer_actor -->|"communicates"| node_chat
node_ngo_actor -->|"communicates"| node_chat
node_application -.->|"tracks status"| node_user_activity
node_ngo_actor -->|"tracks events"| node_ngo_activity
node_auth -->|"uses"| node_firebase_auth
node_post_authoring -->|"stores posts"| node_firebase_data
node_post_discovery -->|"reads posts"| node_firebase_data
node_application -.->|"records applications"| node_firebase_data
node_post_authoring -.->|"uses media"| node_firebase_storage
node_chat -->|"uses messaging"| node_firebase_messaging

click node_app "https://github.com/diphire/aikyam/blob/main/lib/main.dart"
click node_login "https://github.com/diphire/aikyam/tree/main/lib/views/Screens/Login"
click node_auth "https://github.com/diphire/aikyam/blob/main/lib/providers/auth_provider.dart"
click node_user_profile "https://github.com/diphire/aikyam/blob/main/lib/views/Screens/User/UserProfileScreen.dart"
click node_ngo_registration "https://github.com/diphire/aikyam/blob/main/lib/views/Screens/Ngo/NRegisterScreen.dart"
click node_ngo_profile "https://github.com/diphire/aikyam/blob/main/lib/views/Screens/Ngo/NgoProfileScreen.dart"
click node_post_discovery "https://github.com/diphire/aikyam/blob/main/lib/views/Screens/User/HomeScreen.dart"
click node_post_details "https://github.com/diphire/aikyam/blob/main/lib/views/widgets/viewPostDetailsScreen.dart"
click node_application "https://github.com/diphire/aikyam/blob/main/lib/views/Screens/User/UActivityScreen.dart"
click node_user_activity "https://github.com/diphire/aikyam/blob/main/lib/views/widgets/UActivityPostItem.dart"
click node_post_authoring "https://github.com/diphire/aikyam/blob/main/lib/views/Screens/Ngo/NCreatePostScreen.dart"
click node_applicant_review "https://github.com/diphire/aikyam/blob/main/lib/views/Screens/Ngo/NApplicantsScreen.dart"
click node_ngo_activity "https://github.com/diphire/aikyam/blob/main/lib/views/Screens/Ngo/NActivityScreen.dart"
click node_chat "https://github.com/diphire/aikyam/blob/main/lib/views/Screens/User/ChatScreen.dart"
click node_chat_provider "https://github.com/diphire/aikyam/blob/main/lib/providers/chat_provider.dart"
click node_user_provider "https://github.com/diphire/aikyam/blob/main/lib/providers/user_provider.dart"
click node_post_provider "https://github.com/diphire/aikyam/blob/main/lib/providers/post_provider.dart"
click node_ngo_provider "https://github.com/diphire/aikyam/blob/main/lib/providers/ngo_provider.dart"

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 toneBlue
class node_login,node_auth,node_user_profile,node_ngo_registration,node_ngo_profile toneAmber
class node_post_discovery,node_post_details,node_application,node_user_activity toneMint
class node_post_authoring,node_applicant_review,node_ngo_activity toneRose
class node_chat,node_chat_provider,node_user_provider,node_post_provider,node_ngo_provider,node_firebase_auth,node_firebase_data,node_firebase_storage,node_firebase_messaging,node_volunteer_actor,node_ngo_actor toneIndigo
```

## Components

### App entry

- [Flutter app](https://github.com/diphire/aikyam/blob/main/lib/main.dart): `lib/main.dart`

### Accounts

- [Login and OTP](https://github.com/diphire/aikyam/tree/main/lib/views/Screens/Login): `lib/views/Screens/Login`
- [Authentication](https://github.com/diphire/aikyam/blob/main/lib/providers/auth_provider.dart): `lib/providers/auth_provider.dart`
- [User profile](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/User/UserProfileScreen.dart): `lib/views/Screens/User/UserProfileScreen.dart`
- [NGO registration](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/Ngo/NRegisterScreen.dart): `lib/views/Screens/Ngo/NRegisterScreen.dart`
- [NGO profile](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/Ngo/NgoProfileScreen.dart): `lib/views/Screens/Ngo/NgoProfileScreen.dart`

### Volunteer workflow

- [Browse posts](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/User/HomeScreen.dart): `lib/views/Screens/User/HomeScreen.dart`
- [Post details](https://github.com/diphire/aikyam/blob/main/lib/views/widgets/viewPostDetailsScreen.dart): `lib/views/widgets/viewPostDetailsScreen.dart`
- [Volunteer applications](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/User/UActivityScreen.dart): `lib/views/Screens/User/UActivityScreen.dart`
- [User activity](https://github.com/diphire/aikyam/blob/main/lib/views/widgets/UActivityPostItem.dart): `lib/views/widgets/UActivityPostItem.dart`

### NGO workflow

- [Create and edit posts](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/Ngo/NCreatePostScreen.dart): `lib/views/Screens/Ngo/NCreatePostScreen.dart`
- [Review applicants](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/Ngo/NApplicantsScreen.dart): `lib/views/Screens/Ngo/NApplicantsScreen.dart`
- [NGO activity](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/Ngo/NActivityScreen.dart): `lib/views/Screens/Ngo/NActivityScreen.dart`

### Shared platform

- [Messaging screens](https://github.com/diphire/aikyam/blob/main/lib/views/Screens/User/ChatScreen.dart): `lib/views/Screens/User/ChatScreen.dart`
- [Chat state](https://github.com/diphire/aikyam/blob/main/lib/providers/chat_provider.dart): `lib/providers/chat_provider.dart`
- [User state](https://github.com/diphire/aikyam/blob/main/lib/providers/user_provider.dart): `lib/providers/user_provider.dart`
- [Post state](https://github.com/diphire/aikyam/blob/main/lib/providers/post_provider.dart): `lib/providers/post_provider.dart`
- [NGO state](https://github.com/diphire/aikyam/blob/main/lib/providers/ngo_provider.dart): `lib/providers/ngo_provider.dart`
- **Firebase authentication**
- **Firebase database**
- **Firebase storage**
- **Firebase messaging**

### Other components

- **Volunteer**
- **NGO**

## Connections

- Volunteer → Flutter app: uses (evidence: `README.md`)
- NGO → Flutter app: uses (evidence: `README.md`)
- Flutter app → Login and OTP: offers access
- Volunteer → User profile: sets up profile (evidence: `README.md`)
- NGO → NGO registration: registers (evidence: `README.md`)
- Volunteer → Browse posts: browses (evidence: `README.md`)
- Browse posts → Post details: opens
- Volunteer → Volunteer applications: applies (evidence: `README.md`)
- NGO → Create and edit posts: creates posts (evidence: `README.md`)
- NGO → Review applicants: reviews applications (evidence: `README.md`)
- Volunteer → Messaging screens: communicates (evidence: `README.md`)
- NGO → Messaging screens: communicates (evidence: `README.md`)
- Volunteer applications → User activity: tracks status
- NGO → NGO activity: tracks events (evidence: `README.md`)
- Authentication → Firebase authentication: uses (evidence: `README.md`)
- Create and edit posts → Firebase database: stores posts (evidence: `README.md`)
- Browse posts → Firebase database: reads posts (evidence: `README.md`)
- Volunteer applications → Firebase database: records applications
- Create and edit posts → Firebase storage: uses media (evidence: `README.md`)
- Messaging screens → Firebase messaging: uses messaging (evidence: `README.md`)
