# sahanamk/bloom architecture

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

- Interactive diagram: https://gitdiagram.com/sahanamk/bloom
- Repository: https://github.com/sahanamk/bloom

## Overview

Bloom is a Flutter women’s wellness app. The tree shows an application shell, account screens, period tracking, chat, safety alerts, and profile screens. A likely user journey starts at the app entry and reaches one of these features, but the README only identifies the product, and no Dart implementation was excerpted. Feature navigation and service interactions are therefore shown as unverified links rather than asserted calls.

Main entry points: [`lib/pages/bloom.dart`](https://github.com/sahanamk/bloom/blob/main/lib/pages/bloom.dart) (Bloom screen), [`lib/pages/chat/pages/chatPage.dart`](https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/pages/chatPage.dart) (Chat page), [`lib/main.dart`](https://github.com/sahanamk/bloom/blob/main/lib/main.dart) (App entry), [`lib/pages/chat/pages/chatHome.dart`](https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/pages/chatHome.dart) (Chat home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and accounts"]
  node_entry["App entry<br/>[main.dart]"]
  node_bloom["Bloom screen<br/>[bloom.dart]"]
  node_signin["Sign in<br/>[signin.dart]"]
  node_signup["Sign up<br/>[signup.dart]"]
end

subgraph group_period["Period tracking"]
  node_periodhome["Period home<br/>[periodHome.dart]"]
  node_calendar["Period calendar"]
end

subgraph group_chat["Chat"]
  node_chathome["Chat home<br/>[chatHome.dart]"]
  node_chatpage["Chat page<br/>[chatPage.dart]"]
  node_chatsearch["Chat search<br/>[chatSearch.dart]"]
  node_groupinfo["Group info<br/>[chatGroupInfo.dart]"]
  node_chatwindow["Chat window<br/>[chatWindow.dart]"]
  node_authservice["Chat auth<br/>[auth_service.dart]"]
  node_dbservice["Chat database"]
end

subgraph group_safety["Safety and profile"]
  node_safetyhome["Safety home"]
  node_contacts["Emergency contacts"]
  node_profile["Profile<br/>[profile.dart]"]
end

node_user(("User"))

node_user -.->|"opens"| node_entry
node_entry -.->|"may show"| node_bloom
node_entry -.->|"may route"| node_signin
node_entry -.->|"may route"| node_signup
node_bloom -.->|"may open"| node_periodhome
node_bloom -.->|"may open"| node_chathome
node_bloom -.->|"may open"| node_safetyhome
node_bloom -.->|"may open"| node_profile
node_periodhome -.->|"may open"| node_calendar
node_chathome -.->|"may open"| node_chatpage
node_chathome -.->|"may open"| node_chatsearch
node_chatpage -.->|"may use"| node_chatwindow
node_chatpage -.->|"may open"| node_groupinfo
node_chatpage -.->|"may use"| node_authservice
node_chatpage -.->|"may use"| node_dbservice
node_safetyhome -.->|"may open"| node_contacts

click node_entry "https://github.com/sahanamk/bloom/blob/main/lib/main.dart"
click node_bloom "https://github.com/sahanamk/bloom/blob/main/lib/pages/bloom.dart"
click node_signin "https://github.com/sahanamk/bloom/blob/main/lib/pages/signin.dart"
click node_signup "https://github.com/sahanamk/bloom/blob/main/lib/pages/signup.dart"
click node_periodhome "https://github.com/sahanamk/bloom/blob/main/lib/pages/period/pages/periodHome.dart"
click node_calendar "https://github.com/sahanamk/bloom/blob/main/lib/pages/period/pages/periodCalender.dart"
click node_chathome "https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/pages/chatHome.dart"
click node_chatpage "https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/pages/chatPage.dart"
click node_chatsearch "https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/pages/chatSearch.dart"
click node_groupinfo "https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/pages/chatGroupInfo.dart"
click node_chatwindow "https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/chatWindow.dart"
click node_authservice "https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/service/auth_service.dart"
click node_dbservice "https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/service/database_service.dart"
click node_safetyhome "https://github.com/sahanamk/bloom/blob/main/lib/pages/safetyAlert/pages/safetyAlertHome.dart"
click node_contacts "https://github.com/sahanamk/bloom/blob/main/lib/pages/safetyAlert/pages/emergencyContacts.dart"
click node_profile "https://github.com/sahanamk/bloom/blob/main/lib/pages/profile.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_entry,node_bloom,node_signin,node_signup,node_user toneBlue
class node_periodhome,node_calendar toneAmber
class node_chathome,node_chatpage,node_chatsearch,node_groupinfo,node_chatwindow,node_authservice,node_dbservice toneMint
class node_safetyhome,node_contacts,node_profile toneRose
```

## Components

### App and accounts

- [App entry](https://github.com/sahanamk/bloom/blob/main/lib/main.dart): `lib/main.dart`
- [Bloom screen](https://github.com/sahanamk/bloom/blob/main/lib/pages/bloom.dart): `lib/pages/bloom.dart`
- [Sign in](https://github.com/sahanamk/bloom/blob/main/lib/pages/signin.dart): `lib/pages/signin.dart`
- [Sign up](https://github.com/sahanamk/bloom/blob/main/lib/pages/signup.dart): `lib/pages/signup.dart`

### Period tracking

- [Period home](https://github.com/sahanamk/bloom/blob/main/lib/pages/period/pages/periodHome.dart): `lib/pages/period/pages/periodHome.dart`
- [Period calendar](https://github.com/sahanamk/bloom/blob/main/lib/pages/period/pages/periodCalender.dart): `lib/pages/period/pages/periodCalender.dart`

### Chat

- [Chat home](https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/pages/chatHome.dart): `lib/pages/chat/pages/chatHome.dart`
- [Chat page](https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/pages/chatPage.dart): `lib/pages/chat/pages/chatPage.dart`
- [Chat search](https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/pages/chatSearch.dart): `lib/pages/chat/pages/chatSearch.dart`
- [Group info](https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/pages/chatGroupInfo.dart): `lib/pages/chat/pages/chatGroupInfo.dart`
- [Chat window](https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/chatWindow.dart): `lib/pages/chat/chatWindow.dart`
- [Chat auth](https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/service/auth_service.dart): `lib/pages/chat/service/auth_service.dart`
- [Chat database](https://github.com/sahanamk/bloom/blob/main/lib/pages/chat/service/database_service.dart): `lib/pages/chat/service/database_service.dart`

### Safety and profile

- [Safety home](https://github.com/sahanamk/bloom/blob/main/lib/pages/safetyAlert/pages/safetyAlertHome.dart): `lib/pages/safetyAlert/pages/safetyAlertHome.dart`
- [Emergency contacts](https://github.com/sahanamk/bloom/blob/main/lib/pages/safetyAlert/pages/emergencyContacts.dart): `lib/pages/safetyAlert/pages/emergencyContacts.dart`
- [Profile](https://github.com/sahanamk/bloom/blob/main/lib/pages/profile.dart): `lib/pages/profile.dart`

### Other components

- **User**

## Connections

- User → App entry: opens
- App entry → Bloom screen: may show
- App entry → Sign in: may route
- App entry → Sign up: may route
- Bloom screen → Period home: may open
- Bloom screen → Chat home: may open
- Bloom screen → Safety home: may open
- Bloom screen → Profile: may open
- Period home → Period calendar: may open
- Chat home → Chat page: may open
- Chat home → Chat search: may open
- Chat page → Chat window: may use
- Chat page → Group info: may open
- Chat page → Chat auth: may use
- Chat page → Chat database: may use
- Safety home → Emergency contacts: may open
