# rivs-k/lifemap architecture

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

- Interactive diagram: https://gitdiagram.com/rivs-k/lifemap
- Repository: https://github.com/rivs-k/lifemap

## Overview

LifeMap is a personal-goal and self-development app. Users create an account, manage recurring or one-off goals in their Life Map, record completions, and review progress in the dashboard, agenda, profile, and community explorer. Supabase provides authentication and persistence; Gemini supports breaking goals into subtasks. The graph emphasizes the documented product branches and sampled ownership paths; several page implementations were not sampled, so uncertain internal links are omitted.

Main entry points: [`app/lib/supabase.js`](https://github.com/rivs-k/lifemap/blob/master/app/lib/supabase.js) (Supabase client), [`app/dashboard/page.js`](https://github.com/rivs-k/lifemap/blob/master/app/dashboard/page.js) (Dashboard), [`app/inscription/page.js`](https://github.com/rivs-k/lifemap/blob/master/app/inscription/page.js) (Sign up), [`app/components/LangueProvider.js`](https://github.com/rivs-k/lifemap/blob/master/app/components/LangueProvider.js) (Language provider)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and identity"]
  node_home["Home<br/>[page.js]"]
  node_signup["Sign up<br/>[page.js]"]
  node_login["Sign in<br/>[page.js]"]
  node_account["Account settings<br/>[page.js]"]
end

subgraph group_goals["Goal tracking"]
  node_dashboard["Dashboard<br/>[page.js]"]
  node_lifemap["Goal lists<br/>[LifeMap.js]"]
  node_periods["Period rules<br/>[periodes.js]"]
  node_completion["Completion logic<br/>[completions.js]"]
  node_assistant["Goal assistant"]
  node_decompose["Goal decomposition API<br/>[route.js]"]
end

subgraph group_insights["Progress views"]
  node_profile["Profile and archive<br/>[page.js]"]
  node_archive["Goal archive<br/>[Archive.js]"]
  node_dashboard_stats["Progress summary<br/>[page.js]"]
end

subgraph group_community["Community and planning"]
  node_agenda["Agenda<br/>[Calendrier.js]"]
  node_agenda_page["Agenda page<br/>[page.js]"]
  node_explorer_page["Explorer page<br/>[page.js]"]
  node_explorer["Community goals<br/>[Explorer.js]"]
end

subgraph group_shared["Shared services"]
  node_supabase["Supabase client<br/>[supabase.js]"]
  node_language["Language provider<br/>[LangueProvider.js]"]
  node_dictionary["FR/EN dictionaries<br/>[dictionnaires.js]"]
end

node_visitor(("Visitor"))
node_gemini{{"Gemini API"}}
node_database[("Supabase data store")]
node_auth_providers{{"OAuth providers"}}

node_visitor -->|"opens"| node_home
node_visitor -->|"creates account"| node_signup
node_visitor -->|"signs in"| node_login
node_signup -->|"registers with"| node_supabase
node_login -->|"authenticates with"| node_supabase
node_signup -->|"routes on session"| node_dashboard
node_signup -->|"offers OAuth"| node_auth_providers
node_dashboard -->|"renders"| node_lifemap
node_lifemap -->|"toggles completions"| node_completion
node_lifemap -->|"checks periods"| node_periods
node_completion -->|"persists completion"| node_supabase
node_dashboard -->|"loads and updates"| node_supabase
node_assistant -.->|"requests subtasks"| node_decompose
node_decompose -->|"generates subtasks"| node_gemini
node_decompose -->|"checks session"| node_supabase
node_agenda_page -->|"renders"| node_agenda
node_agenda -->|"reads events and goals"| node_supabase
node_explorer_page -->|"renders"| node_explorer
node_explorer -->|"manages community data"| node_supabase
node_profile -->|"loads profile data"| node_supabase
node_profile -->|"renders archive"| node_archive
node_archive -->|"reads archived goals"| node_supabase
node_dashboard_stats -->|"summarizes progress"| node_dashboard
node_dashboard -->|"displays"| node_dashboard_stats
node_supabase -->|"queries and persists"| node_database
node_language -->|"selects translations"| node_dictionary
node_dashboard -->|"uses translations"| node_language
node_agenda -->|"uses translations"| node_language
node_explorer -->|"uses translations"| node_language

click node_home "https://github.com/rivs-k/lifemap/blob/master/app/page.js"
click node_signup "https://github.com/rivs-k/lifemap/blob/master/app/inscription/page.js"
click node_login "https://github.com/rivs-k/lifemap/blob/master/app/connexion/page.js"
click node_account "https://github.com/rivs-k/lifemap/blob/master/app/parametres/page.js"
click node_dashboard "https://github.com/rivs-k/lifemap/blob/master/app/dashboard/page.js"
click node_lifemap "https://github.com/rivs-k/lifemap/blob/master/app/components/LifeMap.js"
click node_periods "https://github.com/rivs-k/lifemap/blob/master/app/lib/periodes.js"
click node_completion "https://github.com/rivs-k/lifemap/blob/master/app/lib/completions.js"
click node_assistant "https://github.com/rivs-k/lifemap/blob/master/app/components/AssistantObjectif.js"
click node_decompose "https://github.com/rivs-k/lifemap/blob/master/app/api/decouper-objectif/route.js"
click node_agenda "https://github.com/rivs-k/lifemap/blob/master/app/components/Calendrier.js"
click node_agenda_page "https://github.com/rivs-k/lifemap/blob/master/app/agenda/page.js"
click node_explorer_page "https://github.com/rivs-k/lifemap/blob/master/app/explorer/page.js"
click node_explorer "https://github.com/rivs-k/lifemap/blob/master/app/components/Explorer.js"
click node_profile "https://github.com/rivs-k/lifemap/blob/master/app/profil/page.js"
click node_archive "https://github.com/rivs-k/lifemap/blob/master/app/components/Archive.js"
click node_dashboard_stats "https://github.com/rivs-k/lifemap/blob/master/app/dashboard/page.js"
click node_supabase "https://github.com/rivs-k/lifemap/blob/master/app/lib/supabase.js"
click node_language "https://github.com/rivs-k/lifemap/blob/master/app/components/LangueProvider.js"
click node_dictionary "https://github.com/rivs-k/lifemap/blob/master/app/dictionnaires.js"

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_home,node_signup,node_login,node_account toneBlue
class node_dashboard,node_lifemap,node_periods,node_completion,node_assistant,node_decompose,node_database toneAmber
class node_profile,node_archive,node_dashboard_stats,node_gemini toneMint
class node_agenda,node_agenda_page,node_explorer_page,node_explorer toneRose
class node_supabase,node_language,node_dictionary,node_visitor,node_auth_providers toneIndigo
```

## Components

### Entry and identity

- [Home](https://github.com/rivs-k/lifemap/blob/master/app/page.js): `app/page.js`
- [Sign up](https://github.com/rivs-k/lifemap/blob/master/app/inscription/page.js): `app/inscription/page.js`
- [Sign in](https://github.com/rivs-k/lifemap/blob/master/app/connexion/page.js): `app/connexion/page.js`
- [Account settings](https://github.com/rivs-k/lifemap/blob/master/app/parametres/page.js): `app/parametres/page.js`

### Goal tracking

- [Dashboard](https://github.com/rivs-k/lifemap/blob/master/app/dashboard/page.js): `app/dashboard/page.js`
- [Goal lists](https://github.com/rivs-k/lifemap/blob/master/app/components/LifeMap.js): `app/components/LifeMap.js`
- [Period rules](https://github.com/rivs-k/lifemap/blob/master/app/lib/periodes.js): `app/lib/periodes.js`
- [Completion logic](https://github.com/rivs-k/lifemap/blob/master/app/lib/completions.js): `app/lib/completions.js`
- [Goal assistant](https://github.com/rivs-k/lifemap/blob/master/app/components/AssistantObjectif.js): `app/components/AssistantObjectif.js`
- [Goal decomposition API](https://github.com/rivs-k/lifemap/blob/master/app/api/decouper-objectif/route.js): `app/api/decouper-objectif/route.js`

### Progress views

- [Profile and archive](https://github.com/rivs-k/lifemap/blob/master/app/profil/page.js): `app/profil/page.js`
- [Goal archive](https://github.com/rivs-k/lifemap/blob/master/app/components/Archive.js): `app/components/Archive.js`
- [Progress summary](https://github.com/rivs-k/lifemap/blob/master/app/dashboard/page.js): `app/dashboard/page.js`

### Community and planning

- [Agenda](https://github.com/rivs-k/lifemap/blob/master/app/components/Calendrier.js): `app/components/Calendrier.js`
- [Agenda page](https://github.com/rivs-k/lifemap/blob/master/app/agenda/page.js): `app/agenda/page.js`
- [Explorer page](https://github.com/rivs-k/lifemap/blob/master/app/explorer/page.js): `app/explorer/page.js`
- [Community goals](https://github.com/rivs-k/lifemap/blob/master/app/components/Explorer.js): `app/components/Explorer.js`

### Shared services

- [Supabase client](https://github.com/rivs-k/lifemap/blob/master/app/lib/supabase.js): `app/lib/supabase.js`
- [Language provider](https://github.com/rivs-k/lifemap/blob/master/app/components/LangueProvider.js): `app/components/LangueProvider.js`
- [FR/EN dictionaries](https://github.com/rivs-k/lifemap/blob/master/app/dictionnaires.js): `app/dictionnaires.js`

### Other components

- **Visitor**
- **Gemini API**
- **Supabase data store**
- **OAuth providers**

## Connections

- Visitor → Home: opens (evidence: `app/page.js`)
- Visitor → Sign up: creates account (evidence: `app/inscription/page.js`)
- Visitor → Sign in: signs in (evidence: `app/connexion/page.js`)
- Sign up → Supabase client: registers with (evidence: `app/inscription/page.js`)
- Sign in → Supabase client: authenticates with (evidence: `app/connexion/page.js`)
- Sign up → Dashboard: routes on session (evidence: `app/inscription/page.js`)
- Sign up → OAuth providers: offers OAuth (evidence: `app/inscription/page.js`)
- Dashboard → Goal lists: renders (evidence: `app/dashboard/page.js`)
- Goal lists → Completion logic: toggles completions (evidence: `app/components/LifeMap.js`)
- Goal lists → Period rules: checks periods (evidence: `app/components/LifeMap.js`)
- Completion logic → Supabase client: persists completion (evidence: `app/lib/completions.js`)
- Dashboard → Supabase client: loads and updates (evidence: `app/dashboard/page.js`)
- Goal assistant → Goal decomposition API: requests subtasks
- Goal decomposition API → Gemini API: generates subtasks (evidence: `app/api/decouper-objectif/route.js`)
- Goal decomposition API → Supabase client: checks session (evidence: `app/api/decouper-objectif/route.js`)
- Agenda page → Agenda: renders (evidence: `app/agenda/page.js`)
- Agenda → Supabase client: reads events and goals (evidence: `app/components/Calendrier.js`)
- Explorer page → Community goals: renders (evidence: `app/explorer/page.js`)
- Community goals → Supabase client: manages community data (evidence: `app/components/Explorer.js`)
- Profile and archive → Supabase client: loads profile data (evidence: `app/profil/page.js`)
- Profile and archive → Goal archive: renders archive (evidence: `app/profil/page.js`)
- Goal archive → Supabase client: reads archived goals (evidence: `app/components/Archive.js`)
- Progress summary → Dashboard: summarizes progress (evidence: `app/dashboard/page.js`)
- Dashboard → Progress summary: displays (evidence: `app/dashboard/page.js`)
- Supabase client → Supabase data store: queries and persists (evidence: `app/lib/supabase.js`)
- Language provider → FR/EN dictionaries: selects translations (evidence: `app/components/LangueProvider.js`)
- Dashboard → Language provider: uses translations (evidence: `app/dashboard/page.js`)
- Agenda → Language provider: uses translations (evidence: `app/components/Calendrier.js`)
- Community goals → Language provider: uses translations (evidence: `app/components/Explorer.js`)
