# polgrd/radar-data-assurance architecture

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

- Interactive diagram: https://gitdiagram.com/polgrd/radar-data-assurance
- Repository: https://github.com/polgrd/radar-data-assurance

## Overview

Radar Data Assurance is a Notion-backed monitoring and knowledge site for data governance, AI, and personal insurance. Users review collected signals, triage them into retained/read items, and relate them to regulatory deadlines, impacts, rules, and learning; authors also publish public blog articles. The daily RSS collector and weekly digest extend this workflow. Edges use README statements or source-index references; unsampled page wiring is omitted where it cannot be verified.

Main entry points: [`lib/notion.ts`](https://github.com/polgrd/radar-data-assurance/blob/main/lib/notion.ts) (Notion data access), [`collecteur/collecte.py`](https://github.com/polgrd/radar-data-assurance/blob/main/collecteur/collecte.py) (RSS collector), [`app/(public)/blog`](https://github.com/polgrd/radar-data-assurance/tree/main/app/(public)/blog) (Public blog), [`app/connexion/page.tsx`](https://github.com/polgrd/radar-data-assurance/blob/main/app/connexion/page.tsx) (Password login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Site and access"]
  node_login["Password login<br/>[page.tsx]"]
  node_auth["Session security<br/>[auth.ts]"]
end

subgraph group_knowledge["Monitoring knowledge"]
  node_dashboard["Monitoring dashboard<br/>[page.tsx]"]
  node_watch["Watch feed and detail"]
  node_calendar["Regulatory calendar<br/>[page.tsx]"]
  node_impact["Impact analysis<br/>[ImpactCarte.tsx]"]
  node_rules["Management rules<br/>[page.tsx]"]
  node_sheets["Synthesis sheets"]
  node_learning["Learning pathway<br/>[page.tsx]"]
end

subgraph group_publishing["Public publishing"]
  node_review["Article review"]
  node_blog["Public blog"]
  node_rssout["Blog RSS and metadata<br/>[route.ts]"]
  node_articlelogic["Article selection<br/>[articles.ts]"]
end

subgraph group_collection["Collection and digest"]
  node_collector["RSS collector<br/>[collecte.py]"]
  node_classification["Signal classification<br/>[classement.py]"]
  node_feedparser["Feed processing<br/>[flux.py]"]
  node_digest["Weekly digest<br/>[digest.py]"]
end

subgraph group_integration["Notion integration"]
  node_notionclient["Notion data access<br/>[notion.ts]"]
  node_collectornotion["Collector Notion access<br/>[notion.py]"]
end

node_visitor(("Visitor"))
node_author(("Author"))
node_notionstore[("Notion workspace")]
node_resend["Resend email"]

node_visitor -->|"opens site"| node_blog
node_visitor -->|"enters private area"| node_login
node_author -->|"authenticates"| node_login
node_login -->|"checks password"| node_auth
node_dashboard -->|"reads dashboard data"| node_notionclient
node_watch -->|"reads watch items"| node_notionclient
node_calendar -->|"reads deadlines"| node_notionclient
node_impact -->|"uses impact data"| node_notionclient
node_rules -->|"reads rules"| node_notionclient
node_sheets -->|"reads sheets"| node_notionclient
node_learning -->|"reads learning steps"| node_notionclient
node_review -->|"reads articles"| node_notionclient
node_blog -->|"reads published articles"| node_notionclient
node_blog -->|"selects and groups"| node_articlelogic
node_rssout -->|"reads articles"| node_notionclient
node_rssout -->|"builds RSS"| node_articlelogic
node_notionclient -->|"queries workspace"| node_notionstore
node_collector -->|"processes feeds"| node_feedparser
node_collector -->|"classifies signals"| node_classification
node_collector -->|"reads and writes"| node_collectornotion
node_collectornotion -->|"updates workspace"| node_notionstore
node_digest -->|"reads digest data"| node_collectornotion
node_digest -->|"sends email"| node_resend

click node_login "https://github.com/polgrd/radar-data-assurance/blob/main/app/connexion/page.tsx"
click node_auth "https://github.com/polgrd/radar-data-assurance/blob/main/lib/auth.ts"
click node_dashboard "https://github.com/polgrd/radar-data-assurance/blob/main/app/(site)/page.tsx"
click node_watch "https://github.com/polgrd/radar-data-assurance/tree/main/app/(site)/veille"
click node_calendar "https://github.com/polgrd/radar-data-assurance/blob/main/app/(site)/calendrier/page.tsx"
click node_impact "https://github.com/polgrd/radar-data-assurance/blob/main/components/ImpactCarte.tsx"
click node_rules "https://github.com/polgrd/radar-data-assurance/blob/main/app/(site)/regles/page.tsx"
click node_sheets "https://github.com/polgrd/radar-data-assurance/tree/main/app/(site)/fiches"
click node_learning "https://github.com/polgrd/radar-data-assurance/blob/main/app/(site)/parcours/page.tsx"
click node_review "https://github.com/polgrd/radar-data-assurance/tree/main/app/(site)/relecture"
click node_blog "https://github.com/polgrd/radar-data-assurance/tree/main/app/(public)/blog"
click node_rssout "https://github.com/polgrd/radar-data-assurance/blob/main/app/(public)/blog/rss.xml/route.ts"
click node_articlelogic "https://github.com/polgrd/radar-data-assurance/blob/main/lib/articles.ts"
click node_collector "https://github.com/polgrd/radar-data-assurance/blob/main/collecteur/collecte.py"
click node_classification "https://github.com/polgrd/radar-data-assurance/blob/main/collecteur/classement.py"
click node_feedparser "https://github.com/polgrd/radar-data-assurance/blob/main/collecteur/flux.py"
click node_digest "https://github.com/polgrd/radar-data-assurance/blob/main/collecteur/digest.py"
click node_notionclient "https://github.com/polgrd/radar-data-assurance/blob/main/lib/notion.ts"
click node_collectornotion "https://github.com/polgrd/radar-data-assurance/blob/main/collecteur/notion.py"

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_login,node_auth toneBlue
class node_dashboard,node_watch,node_calendar,node_impact,node_rules,node_sheets,node_learning,node_notionstore toneAmber
class node_review,node_blog,node_rssout,node_articlelogic toneMint
class node_collector,node_classification,node_feedparser,node_digest toneRose
class node_notionclient,node_collectornotion,node_visitor,node_author,node_resend toneIndigo
```

## Components

### Site and access

- [Password login](https://github.com/polgrd/radar-data-assurance/blob/main/app/connexion/page.tsx): `app/connexion/page.tsx`
- [Session security](https://github.com/polgrd/radar-data-assurance/blob/main/lib/auth.ts): `lib/auth.ts`

### Monitoring knowledge

- [Monitoring dashboard](https://github.com/polgrd/radar-data-assurance/blob/main/app/(site)/page.tsx): `app/(site)/page.tsx`
- [Watch feed and detail](https://github.com/polgrd/radar-data-assurance/tree/main/app/(site)/veille): `app/(site)/veille`
- [Regulatory calendar](https://github.com/polgrd/radar-data-assurance/blob/main/app/(site)/calendrier/page.tsx): `app/(site)/calendrier/page.tsx`
- [Impact analysis](https://github.com/polgrd/radar-data-assurance/blob/main/components/ImpactCarte.tsx): `components/ImpactCarte.tsx`
- [Management rules](https://github.com/polgrd/radar-data-assurance/blob/main/app/(site)/regles/page.tsx): `app/(site)/regles/page.tsx`
- [Synthesis sheets](https://github.com/polgrd/radar-data-assurance/tree/main/app/(site)/fiches): `app/(site)/fiches`
- [Learning pathway](https://github.com/polgrd/radar-data-assurance/blob/main/app/(site)/parcours/page.tsx): `app/(site)/parcours/page.tsx`

### Public publishing

- [Article review](https://github.com/polgrd/radar-data-assurance/tree/main/app/(site)/relecture): `app/(site)/relecture`
- [Public blog](https://github.com/polgrd/radar-data-assurance/tree/main/app/(public)/blog): `app/(public)/blog`
- [Blog RSS and metadata](https://github.com/polgrd/radar-data-assurance/blob/main/app/(public)/blog/rss.xml/route.ts): `app/(public)/blog/rss.xml/route.ts`
- [Article selection](https://github.com/polgrd/radar-data-assurance/blob/main/lib/articles.ts): `lib/articles.ts`

### Collection and digest

- [RSS collector](https://github.com/polgrd/radar-data-assurance/blob/main/collecteur/collecte.py): `collecteur/collecte.py`
- [Signal classification](https://github.com/polgrd/radar-data-assurance/blob/main/collecteur/classement.py): `collecteur/classement.py`
- [Feed processing](https://github.com/polgrd/radar-data-assurance/blob/main/collecteur/flux.py): `collecteur/flux.py`
- [Weekly digest](https://github.com/polgrd/radar-data-assurance/blob/main/collecteur/digest.py): `collecteur/digest.py`

### Notion integration

- [Notion data access](https://github.com/polgrd/radar-data-assurance/blob/main/lib/notion.ts): `lib/notion.ts`
- [Collector Notion access](https://github.com/polgrd/radar-data-assurance/blob/main/collecteur/notion.py): `collecteur/notion.py`

### Other components

- **Visitor**
- **Author**
- **Notion workspace**
- **Resend email**

## Connections

- Visitor → Public blog: opens site
- Visitor → Password login: enters private area
- Author → Password login: authenticates
- Password login → Session security: checks password (evidence: `app/connexion/page.tsx`)
- Monitoring dashboard → Notion data access: reads dashboard data (evidence: `app/(site)/page.tsx`)
- Watch feed and detail → Notion data access: reads watch items (evidence: `app/(site)/veille/[id]/page.tsx`)
- Regulatory calendar → Notion data access: reads deadlines (evidence: `app/(site)/calendrier/page.tsx`)
- Impact analysis → Notion data access: uses impact data (evidence: `components/ImpactCarte.tsx`)
- Management rules → Notion data access: reads rules (evidence: `app/(site)/regles/page.tsx`)
- Synthesis sheets → Notion data access: reads sheets (evidence: `app/(site)/fiches/[adresse]/page.tsx`)
- Learning pathway → Notion data access: reads learning steps (evidence: `app/(site)/parcours/page.tsx`)
- Article review → Notion data access: reads articles (evidence: `app/(site)/relecture/page.tsx`)
- Public blog → Notion data access: reads published articles (evidence: `app/(public)/blog/page.tsx`)
- Public blog → Article selection: selects and groups (evidence: `app/(public)/blog/page.tsx`)
- Blog RSS and metadata → Notion data access: reads articles (evidence: `app/(public)/blog/rss.xml/route.ts`)
- Blog RSS and metadata → Article selection: builds RSS (evidence: `app/(public)/blog/rss.xml/route.ts`)
- Notion data access → Notion workspace: queries workspace (evidence: `lib/notion.ts`)
- RSS collector → Feed processing: processes feeds (evidence: `collecteur/collecte.py`)
- RSS collector → Signal classification: classifies signals (evidence: `collecteur/collecte.py`)
- RSS collector → Collector Notion access: reads and writes (evidence: `collecteur/collecte.py`)
- Collector Notion access → Notion workspace: updates workspace (evidence: `collecteur/notion.py`)
- Weekly digest → Collector Notion access: reads digest data (evidence: `collecteur/digest.py`)
- Weekly digest → Resend email: sends email
