# safe-n-tech/www architecture

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

- Interactive diagram: https://gitdiagram.com/safe-n-tech/www
- Repository: https://github.com/safe-n-tech/www

## Overview

Safe N Tech is a French-language cybersecurity-awareness website. Visitors browse themed guidance, consult practical advice and recommended tools, or take interactive quizzes; the site also provides a glossary, victim-support information, a data-leak verification section, and the Mille Bugs card game. Hugo content and layouts form the public experience, with browser-side JavaScript supporting interactions. Decap CMS edits repository content through DecapBridge. The README documents some content relationships and capabilities, but the source excerpts do not establish every runtime connection; the tree also lacks the README-described vulnerabilities directory.

Main entry points: [`layouts/thematiques/single.html`](https://github.com/safe-n-tech/www/blob/main/layouts/thematiques/single.html) (Theme pages), [`content/good-practices`](https://github.com/safe-n-tech/www/tree/main/content/good-practices) (Good practices), [`content/questions`](https://github.com/safe-n-tech/www/tree/main/content/questions) (Quiz questions), [`content/thematiques`](https://github.com/safe-n-tech/www/tree/main/content/thematiques) (Themes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guidance["Security guidance"]
  node_themes["Themes"]
  node_practices["Good practices"]
  node_glossary["Definitions"]
  node_tools["Tool directory"]
  node_victim_help["Victim support"]
  node_verification["Leak verification"]
end

subgraph group_learning["Learning tools"]
  node_quiz["Quiz questions"]
  node_quiz_pages["Quiz pages"]
  node_quiz_templates["Quiz templates"]
  node_quiz_logic["Quiz interaction<br/>[quiz.js]"]
  node_culture_quiz["Culture quiz"]
  node_mille_bugs["Mille Bugs game"]
end

subgraph group_site["Site experience"]
  node_theme_layout["Theme pages<br/>[single.html]"]
  node_tools_layout["Tools listing<br/>[list.html]"]
  node_base_layout["Shared page shell<br/>[baseof.html]"]
  node_site_js["General interactions<br/>[main.js]"]
end

subgraph group_authoring["Content authoring"]
  node_cms["Decap CMS<br/>[config.yml]"]
  node_bridge["DecapBridge"]
  node_github["GitHub repository"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens theme"| node_theme_layout
node_theme_layout -->|"lists themes"| node_themes
node_theme_layout -->|"shows guidance"| node_practices
node_practices -->|"references theme"| node_themes
node_visitor -->|"opens quiz"| node_quiz_pages
node_quiz_pages -->|"renders with"| node_quiz_templates
node_quiz_templates -->|"uses interaction"| node_quiz_logic
node_quiz_logic -->|"uses questions"| node_quiz
node_quiz -->|"references practices"| node_practices
node_quiz -->|"references themes"| node_themes
node_visitor -.->|"opens game"| node_culture_quiz
node_visitor -.->|"browses terms"| node_glossary
node_visitor -->|"opens tools"| node_tools_layout
node_tools_layout -->|"lists linked tools"| node_practices
node_visitor -.->|"seeks support"| node_victim_help
node_visitor -.->|"checks exposure"| node_verification
node_visitor -.->|"plays game"| node_mille_bugs
node_theme_layout -->|"uses progress"| node_site_js
node_visitor -.->|"opens site"| node_base_layout
node_cms -->|"authenticates through"| node_bridge
node_cms -->|"authors content"| node_github

click node_themes "https://github.com/safe-n-tech/www/tree/main/content/thematiques"
click node_practices "https://github.com/safe-n-tech/www/tree/main/content/good-practices"
click node_glossary "https://github.com/safe-n-tech/www/tree/main/content/definitions"
click node_tools "https://github.com/safe-n-tech/www/tree/main/content/tools"
click node_quiz "https://github.com/safe-n-tech/www/tree/main/content/questions"
click node_quiz_pages "https://github.com/safe-n-tech/www/tree/main/content/quizz"
click node_quiz_templates "https://github.com/safe-n-tech/www/tree/main/layouts/partials/quizz"
click node_quiz_logic "https://github.com/safe-n-tech/www/blob/main/assets/js/quiz.js"
click node_culture_quiz "https://github.com/safe-n-tech/www/tree/main/content/quizz-culture-generale"
click node_victim_help "https://github.com/safe-n-tech/www/tree/main/content/je-suis-victime"
click node_verification "https://github.com/safe-n-tech/www/tree/main/content/verification"
click node_mille_bugs "https://github.com/safe-n-tech/www/tree/main/content/mille-bugs"
click node_theme_layout "https://github.com/safe-n-tech/www/blob/main/layouts/thematiques/single.html"
click node_tools_layout "https://github.com/safe-n-tech/www/blob/main/layouts/boite-a-outils/list.html"
click node_base_layout "https://github.com/safe-n-tech/www/blob/main/layouts/_default/baseof.html"
click node_site_js "https://github.com/safe-n-tech/www/blob/main/assets/js/main.js"
click node_cms "https://github.com/safe-n-tech/www/blob/main/static/admin/config.yml"

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_themes,node_practices,node_glossary,node_tools,node_victim_help,node_verification toneBlue
class node_quiz,node_quiz_pages,node_quiz_templates,node_quiz_logic,node_culture_quiz,node_mille_bugs toneAmber
class node_theme_layout,node_tools_layout,node_base_layout,node_site_js toneMint
class node_cms,node_bridge,node_github toneRose
class node_visitor toneIndigo
```

## Components

### Security guidance

- [Themes](https://github.com/safe-n-tech/www/tree/main/content/thematiques): `content/thematiques`
- [Good practices](https://github.com/safe-n-tech/www/tree/main/content/good-practices): `content/good-practices`
- [Definitions](https://github.com/safe-n-tech/www/tree/main/content/definitions): `content/definitions`
- [Tool directory](https://github.com/safe-n-tech/www/tree/main/content/tools): `content/tools`
- [Victim support](https://github.com/safe-n-tech/www/tree/main/content/je-suis-victime): `content/je-suis-victime`
- [Leak verification](https://github.com/safe-n-tech/www/tree/main/content/verification): `content/verification`

### Learning tools

- [Quiz questions](https://github.com/safe-n-tech/www/tree/main/content/questions): `content/questions`
- [Quiz pages](https://github.com/safe-n-tech/www/tree/main/content/quizz): `content/quizz`
- [Quiz templates](https://github.com/safe-n-tech/www/tree/main/layouts/partials/quizz): `layouts/partials/quizz`
- [Quiz interaction](https://github.com/safe-n-tech/www/blob/main/assets/js/quiz.js): `assets/js/quiz.js`
- [Culture quiz](https://github.com/safe-n-tech/www/tree/main/content/quizz-culture-generale): `content/quizz-culture-generale`
- [Mille Bugs game](https://github.com/safe-n-tech/www/tree/main/content/mille-bugs): `content/mille-bugs`

### Site experience

- [Theme pages](https://github.com/safe-n-tech/www/blob/main/layouts/thematiques/single.html): `layouts/thematiques/single.html`
- [Tools listing](https://github.com/safe-n-tech/www/blob/main/layouts/boite-a-outils/list.html): `layouts/boite-a-outils/list.html`
- [Shared page shell](https://github.com/safe-n-tech/www/blob/main/layouts/_default/baseof.html): `layouts/_default/baseof.html`
- [General interactions](https://github.com/safe-n-tech/www/blob/main/assets/js/main.js): `assets/js/main.js`

### Content authoring

- [Decap CMS](https://github.com/safe-n-tech/www/blob/main/static/admin/config.yml): `static/admin/config.yml`
- **DecapBridge**
- **GitHub repository**

### Other components

- **Visitor**

## Connections

- Visitor → Theme pages: opens theme (evidence: `README.md`)
- Theme pages → Themes: lists themes (evidence: `README.md`)
- Theme pages → Good practices: shows guidance (evidence: `README.md`)
- Good practices → Themes: references theme (evidence: `README.md`)
- Visitor → Quiz pages: opens quiz (evidence: `README.md`)
- Quiz pages → Quiz templates: renders with (evidence: `README.md`)
- Quiz templates → Quiz interaction: uses interaction (evidence: `README.md`)
- Quiz interaction → Quiz questions: uses questions (evidence: `README.md`)
- Quiz questions → Good practices: references practices (evidence: `README.md`)
- Quiz questions → Themes: references themes (evidence: `README.md`)
- Visitor → Culture quiz: opens game
- Visitor → Definitions: browses terms
- Visitor → Tools listing: opens tools (evidence: `README.md`)
- Tools listing → Good practices: lists linked tools (evidence: `README.md`)
- Visitor → Victim support: seeks support
- Visitor → Leak verification: checks exposure
- Visitor → Mille Bugs game: plays game
- Theme pages → General interactions: uses progress (evidence: `README.md`)
- Visitor → Shared page shell: opens site
- Decap CMS → DecapBridge: authenticates through (evidence: `README.md`)
- Decap CMS → GitHub repository: authors content (evidence: `README.md`)
