# manish-12ys/medishelf architecture

> Architecture diagram of the GitHub repository manish-12ys/medishelf, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/manish-12ys/medishelf
- Repository: https://github.com/manish-12ys/medishelf

## Overview

MediShelf appears to be a Flutter medicine-management app, based on its source tree; the README provides no product-specific workflow. The tree identifies screens for medicine entry, inventory, alerts, reports, QR scanning, and backup, plus database, logic, and model modules. Source excerpts for these modules were not provided, so their implementation details and interconnections cannot be verified; the graph therefore shows the identified capabilities without guessing their call or data-flow relationships.

Main entry points: [`lib/main.dart`](https://github.com/manish-12ys/medishelf/blob/main/lib/main.dart) (App entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter app"]
  node_entry["App entry<br/>[main.dart]"]
  node_dashboard["Dashboard<br/>[dashboard.dart]"]
  node_dashboard_new["New dashboard<br/>[dashboard_new.dart]"]
end

subgraph group_medicine["Medicine management"]
  node_add["Add medicine<br/>[add_medicine.dart]"]
  node_inventory["Inventory<br/>[inventory.dart]"]
  node_scanner["QR scanner<br/>[qr_scanner.dart]"]
end

subgraph group_insights["Monitoring and reports"]
  node_alerts["Alerts<br/>[alerts.dart]"]
  node_reports["Reports<br/>[reports.dart]"]
end

subgraph group_support["Data and backup"]
  node_models["Medicine models<br/>[models.dart]"]
  node_logic["App logic<br/>[logic.dart]"]
  node_database[("Database<br/>[db.dart]")]
  node_backup_screen["Backup screen<br/>[backup.dart]"]
  node_backup_service["Backup module<br/>[backup.dart]"]
end

node_user(("User"))

node_user -->|"opens"| node_entry

click node_entry "https://github.com/manish-12ys/medishelf/blob/main/lib/main.dart"
click node_dashboard "https://github.com/manish-12ys/medishelf/blob/main/lib/screens/dashboard.dart"
click node_dashboard_new "https://github.com/manish-12ys/medishelf/blob/main/lib/screens/dashboard_new.dart"
click node_add "https://github.com/manish-12ys/medishelf/blob/main/lib/screens/add_medicine.dart"
click node_inventory "https://github.com/manish-12ys/medishelf/blob/main/lib/screens/inventory.dart"
click node_scanner "https://github.com/manish-12ys/medishelf/blob/main/lib/screens/qr_scanner.dart"
click node_alerts "https://github.com/manish-12ys/medishelf/blob/main/lib/screens/alerts.dart"
click node_reports "https://github.com/manish-12ys/medishelf/blob/main/lib/screens/reports.dart"
click node_models "https://github.com/manish-12ys/medishelf/blob/main/lib/models.dart"
click node_logic "https://github.com/manish-12ys/medishelf/blob/main/lib/logic.dart"
click node_database "https://github.com/manish-12ys/medishelf/blob/main/lib/db.dart"
click node_backup_screen "https://github.com/manish-12ys/medishelf/blob/main/lib/screens/backup.dart"
click node_backup_service "https://github.com/manish-12ys/medishelf/blob/main/lib/backup.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_dashboard,node_dashboard_new,node_user toneBlue
class node_add,node_inventory,node_scanner toneAmber
class node_alerts,node_reports toneMint
class node_models,node_logic,node_database,node_backup_screen,node_backup_service toneRose
```

## Components

### Flutter app

- [App entry](https://github.com/manish-12ys/medishelf/blob/main/lib/main.dart): `lib/main.dart`
- [Dashboard](https://github.com/manish-12ys/medishelf/blob/main/lib/screens/dashboard.dart): `lib/screens/dashboard.dart`
- [New dashboard](https://github.com/manish-12ys/medishelf/blob/main/lib/screens/dashboard_new.dart): `lib/screens/dashboard_new.dart`

### Medicine management

- [Add medicine](https://github.com/manish-12ys/medishelf/blob/main/lib/screens/add_medicine.dart): `lib/screens/add_medicine.dart`
- [Inventory](https://github.com/manish-12ys/medishelf/blob/main/lib/screens/inventory.dart): `lib/screens/inventory.dart`
- [QR scanner](https://github.com/manish-12ys/medishelf/blob/main/lib/screens/qr_scanner.dart): `lib/screens/qr_scanner.dart`

### Monitoring and reports

- [Alerts](https://github.com/manish-12ys/medishelf/blob/main/lib/screens/alerts.dart): `lib/screens/alerts.dart`
- [Reports](https://github.com/manish-12ys/medishelf/blob/main/lib/screens/reports.dart): `lib/screens/reports.dart`

### Data and backup

- [Medicine models](https://github.com/manish-12ys/medishelf/blob/main/lib/models.dart): `lib/models.dart`
- [App logic](https://github.com/manish-12ys/medishelf/blob/main/lib/logic.dart): `lib/logic.dart`
- [Database](https://github.com/manish-12ys/medishelf/blob/main/lib/db.dart): `lib/db.dart`
- [Backup screen](https://github.com/manish-12ys/medishelf/blob/main/lib/screens/backup.dart): `lib/screens/backup.dart`
- [Backup module](https://github.com/manish-12ys/medishelf/blob/main/lib/backup.dart): `lib/backup.dart`

### Other components

- **User**

## Connections

- User → App entry: opens
