# augustin-d2l/nota architecture

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

- Interactive diagram: https://gitdiagram.com/augustin-d2l/nota
- Repository: https://github.com/augustin-d2l/nota

## Overview

Nota is a Flutter calorie and macronutrient tracker using Supabase, with nutrition values aligned to the EU per-100-g/ml standard. The visible tree identifies the app entry point and nutrition/profile domain modules, but the sampled source contains no Dart implementation excerpts. Consequently, the graph shows the product entry and domain responsibilities without guessing call relationships, UI flows, or persistence wiring. Supabase is documented, but its runtime integration is not evidenced by the available files.

Main entry points: [`lib/main.dart`](https://github.com/augustin-d2l/nota/blob/main/lib/main.dart) (Flutter app entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

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

subgraph group_nutrition["Nutrition domain"]
  node_energy["Energy values<br/>[energy.dart]"]
  node_amounts["Nutrient amounts"]
  node_validation["Nutrient validation"]
  node_facts["Nutrition facts"]
end

subgraph group_profile["Profile domain"]
  node_age["Age<br/>[age.dart]"]
end

node_user(("Tracker user"))

node_user -->|"tracks nutrition"| node_app

click node_app "https://github.com/augustin-d2l/nota/blob/main/lib/main.dart"
click node_energy "https://github.com/augustin-d2l/nota/blob/main/lib/domain/nutrition/energy.dart"
click node_amounts "https://github.com/augustin-d2l/nota/blob/main/lib/domain/nutrition/nutrient_amounts.dart"
click node_validation "https://github.com/augustin-d2l/nota/blob/main/lib/domain/nutrition/nutrient_validation.dart"
click node_facts "https://github.com/augustin-d2l/nota/blob/main/lib/domain/nutrition/nutrition_facts.dart"
click node_age "https://github.com/augustin-d2l/nota/blob/main/lib/domain/profile/age.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,node_user toneBlue
class node_energy,node_amounts,node_validation,node_facts toneAmber
class node_age toneMint
```

## Components

### Application

- [Flutter app entry](https://github.com/augustin-d2l/nota/blob/main/lib/main.dart): `lib/main.dart`

### Nutrition domain

- [Energy values](https://github.com/augustin-d2l/nota/blob/main/lib/domain/nutrition/energy.dart): `lib/domain/nutrition/energy.dart`
- [Nutrient amounts](https://github.com/augustin-d2l/nota/blob/main/lib/domain/nutrition/nutrient_amounts.dart): `lib/domain/nutrition/nutrient_amounts.dart`
- [Nutrient validation](https://github.com/augustin-d2l/nota/blob/main/lib/domain/nutrition/nutrient_validation.dart): `lib/domain/nutrition/nutrient_validation.dart`
- [Nutrition facts](https://github.com/augustin-d2l/nota/blob/main/lib/domain/nutrition/nutrition_facts.dart): `lib/domain/nutrition/nutrition_facts.dart`

### Profile domain

- [Age](https://github.com/augustin-d2l/nota/blob/main/lib/domain/profile/age.dart): `lib/domain/profile/age.dart`

### Other components

- **Tracker user**

## Connections

- Tracker user → Flutter app entry: tracks nutrition (evidence: `README.md`)
