# rupeshkumarsharm/bloomcycle-v2 architecture

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

- Interactive diagram: https://gitdiagram.com/rupeshkumarsharm/bloomcycle-v2
- Repository: https://github.com/rupeshkumarsharm/bloomcycle-v2

## Overview

BloomCycle appears to be an Android cycle-tracking app. Its apparent user workflow spans onboarding and daily logging, then calendar/dashboard viewing and cycle insights, with settings and PIN protection as supporting capabilities. The tree also indicates persistence, preferences, analytics, date logic, and spreadsheet export. The README is empty, and the supplied source excerpts contain no product code or relationship evidence, so the graph identifies these subsystems but does not assert calls or data flows between them.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and UI"]
  node_app["Application setup<br/>[BloomCycleApp.kt]"]
  node_activity["Main activity<br/>[MainActivity.kt]"]
  node_viewmodel["Main view model<br/>[MainViewModel.kt]"]
  node_routes["Navigation routes<br/>[Routes.kt]"]
end

subgraph group_cycle["Cycle features"]
  node_onboarding["Onboarding"]
  node_dailylog["Daily logging<br/>[LogScreen.kt]"]
  node_logeditor["Log editor<br/>[DailyLogEditor.kt]"]
  node_calendar["Cycle calendar<br/>[CalendarScreen.kt]"]
  node_dashboard["Today dashboard"]
  node_insights["Cycle insights<br/>[InsightsScreen.kt]"]
  node_charts["Charts<br/>[BloomCharts.kt]"]
  node_settings["Settings"]
end

subgraph group_domain["Domain logic"]
  node_analytics["Cycle analytics"]
  node_models["Domain models<br/>[DomainModels.kt]"]
  node_dates["Cycle dates<br/>[CycleDate.kt]"]
end

subgraph group_storage["Persistence and export"]
  node_repository["Data repository<br/>[BloomRepository.kt]"]
  node_database[("Bloom database<br/>[BloomDatabase.kt]")]
  node_daos["Database access<br/>[Daos.kt]"]
  node_entities["Stored entities<br/>[Entities.kt]"]
  node_converters["Data converters<br/>[Converters.kt]"]
  node_preferences[("Preferences store")]
  node_excel["XLSX export<br/>[ExcelXlsxEngine.kt]"]
end

subgraph group_security["Privacy and security"]
  node_pin["PIN security<br/>[PinSecurity.kt]"]
  node_lock["PIN lock screen<br/>[PinLockScreen.kt]"]
end

node_user(("App user"))

click node_app "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/BloomCycleApp.kt"
click node_activity "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/MainActivity.kt"
click node_viewmodel "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/viewmodel/MainViewModel.kt"
click node_routes "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/navigation/Routes.kt"
click node_onboarding "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/OnboardingScreen.kt"
click node_dailylog "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/LogScreen.kt"
click node_logeditor "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/components/DailyLogEditor.kt"
click node_calendar "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/CalendarScreen.kt"
click node_dashboard "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/TodayDashboardScreen.kt"
click node_insights "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/InsightsScreen.kt"
click node_charts "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/components/BloomCharts.kt"
click node_settings "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/YouSettingsScreen.kt"
click node_analytics "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/domain/analytics/CycleAnalyticsEngine.kt"
click node_models "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/domain/model/DomainModels.kt"
click node_dates "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/util/CycleDate.kt"
click node_repository "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/BloomRepository.kt"
click node_database "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/BloomDatabase.kt"
click node_daos "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/Daos.kt"
click node_entities "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/Entities.kt"
click node_converters "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/Converters.kt"
click node_preferences "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/PreferencesStore.kt"
click node_excel "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/excel/ExcelXlsxEngine.kt"
click node_pin "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/util/PinSecurity.kt"
click node_lock "https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/components/PinLockScreen.kt"

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_activity,node_viewmodel,node_routes,node_user toneBlue
class node_onboarding,node_dailylog,node_logeditor,node_calendar,node_dashboard,node_insights,node_charts,node_settings toneAmber
class node_analytics,node_models,node_dates toneMint
class node_repository,node_database,node_daos,node_entities,node_converters,node_preferences,node_excel toneRose
class node_pin,node_lock toneIndigo
```

## Components

### App and UI

- [Application setup](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/BloomCycleApp.kt): `app/src/main/java/com/example/BloomCycleApp.kt`
- [Main activity](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/MainActivity.kt): `app/src/main/java/com/example/MainActivity.kt`
- [Main view model](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/viewmodel/MainViewModel.kt): `app/src/main/java/com/example/ui/viewmodel/MainViewModel.kt`
- [Navigation routes](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/navigation/Routes.kt): `app/src/main/java/com/example/ui/navigation/Routes.kt`

### Cycle features

- [Onboarding](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/OnboardingScreen.kt): `app/src/main/java/com/example/ui/screens/OnboardingScreen.kt`
- [Daily logging](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/LogScreen.kt): `app/src/main/java/com/example/ui/screens/LogScreen.kt`
- [Log editor](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/components/DailyLogEditor.kt): `app/src/main/java/com/example/ui/components/DailyLogEditor.kt`
- [Cycle calendar](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/CalendarScreen.kt): `app/src/main/java/com/example/ui/screens/CalendarScreen.kt`
- [Today dashboard](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/TodayDashboardScreen.kt): `app/src/main/java/com/example/ui/screens/TodayDashboardScreen.kt`
- [Cycle insights](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/InsightsScreen.kt): `app/src/main/java/com/example/ui/screens/InsightsScreen.kt`
- [Charts](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/components/BloomCharts.kt): `app/src/main/java/com/example/ui/components/BloomCharts.kt`
- [Settings](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/screens/YouSettingsScreen.kt): `app/src/main/java/com/example/ui/screens/YouSettingsScreen.kt`

### Domain logic

- [Cycle analytics](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/domain/analytics/CycleAnalyticsEngine.kt): `app/src/main/java/com/example/domain/analytics/CycleAnalyticsEngine.kt`
- [Domain models](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/domain/model/DomainModels.kt): `app/src/main/java/com/example/domain/model/DomainModels.kt`
- [Cycle dates](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/util/CycleDate.kt): `app/src/main/java/com/example/util/CycleDate.kt`

### Persistence and export

- [Data repository](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/BloomRepository.kt): `app/src/main/java/com/example/data/BloomRepository.kt`
- [Bloom database](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/BloomDatabase.kt): `app/src/main/java/com/example/data/BloomDatabase.kt`
- [Database access](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/Daos.kt): `app/src/main/java/com/example/data/Daos.kt`
- [Stored entities](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/Entities.kt): `app/src/main/java/com/example/data/Entities.kt`
- [Data converters](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/Converters.kt): `app/src/main/java/com/example/data/Converters.kt`
- [Preferences store](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/PreferencesStore.kt): `app/src/main/java/com/example/data/PreferencesStore.kt`
- [XLSX export](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/data/excel/ExcelXlsxEngine.kt): `app/src/main/java/com/example/data/excel/ExcelXlsxEngine.kt`

### Privacy and security

- [PIN security](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/util/PinSecurity.kt): `app/src/main/java/com/example/util/PinSecurity.kt`
- [PIN lock screen](https://github.com/rupeshkumarsharm/bloomcycle-v2/blob/main/app/src/main/java/com/example/ui/components/PinLockScreen.kt): `app/src/main/java/com/example/ui/components/PinLockScreen.kt`

### Other components

- **App user**
