# mustaphasoufisme30-lab/ads architecture

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

- Interactive diagram: https://gitdiagram.com/mustaphasoufisme30-lab/ads
- Repository: https://github.com/mustaphasoufisme30-lab/ads

## Overview

TechIA Lab is a bilingual editorial site for AI, programming and digital-tool guides, with interactive browser-based utilities and informational pages. Visitors enter through the React app, browse category/article/tool content, and view a guide or use a tool for a downloadable result. The graph separates routing/rendering, editorial data, interactive features and shared presentation concerns. Relationships are limited to imports and calls visible in the supplied excerpts or SOURCE INDEX; prerendering is included because it is a named core module, though it is a build-time process.

Main entry points: [`src/App.tsx`](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/App.tsx) (App routes and views), [`scripts/prerender.ts`](https://github.com/mustaphasoufisme30-lab/ads/blob/main/scripts/prerender.ts) (Static prerendering), [`src/i18n/next-intl.tsx`](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/i18n/next-intl.tsx) (Locale provider), [`src/components/SeoHead.tsx`](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/components/SeoHead.tsx) (SEO metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App routes and views<br/>[App.tsx]"]
  node_prerender["Static prerendering<br/>[prerender.ts]"]
end

subgraph group_content["Editorial Content"]
  node_articles["Article content<br/>[articles.ts]"]
  node_categories["Category catalog<br/>[categories.ts]"]
  node_toolsdata["Tool catalog<br/>[tools.ts]"]
end

subgraph group_features["Interactive Features"]
  node_toolui["Interactive tools"]
  node_staticpages["Informational pages<br/>[StaticPages.tsx]"]
end

subgraph group_shared["Shared Presentation"]
  node_seo["SEO metadata<br/>[SeoHead.tsx]"]
  node_i18n["Locale provider<br/>[next-intl.tsx]"]
  node_siteconfig["Site configuration<br/>[siteConfig.ts]"]
  node_translations["French and Arabic messages"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"wraps app"| node_i18n
node_entry -->|"renders"| node_app
node_app -->|"reads content"| node_articles
node_app -->|"reads catalog"| node_categories
node_app -->|"reads catalog"| node_toolsdata
node_app -->|"renders tools"| node_toolui
node_app -->|"renders pages"| node_staticpages
node_app -->|"renders metadata"| node_seo
node_app -->|"uses translations"| node_i18n
node_articles -->|"uses images"| node_categories
node_seo -->|"reads settings"| node_siteconfig
node_seo -->|"uses images"| node_categories
node_seo -->|"reads locale"| node_i18n
node_staticpages -->|"reads settings"| node_siteconfig
node_staticpages -->|"uses translations"| node_i18n
node_i18n -->|"loads messages"| node_translations
node_prerender -->|"renders routes"| node_app
node_prerender -->|"reads content"| node_articles
node_prerender -->|"reads catalog"| node_categories
node_prerender -->|"reads catalog"| node_toolsdata
node_prerender -->|"reads settings"| node_siteconfig
node_prerender -->|"uses messages"| node_i18n

click node_entry "https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/main.tsx"
click node_app "https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/App.tsx"
click node_prerender "https://github.com/mustaphasoufisme30-lab/ads/blob/main/scripts/prerender.ts"
click node_articles "https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/data/articles.ts"
click node_categories "https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/data/categories.ts"
click node_toolsdata "https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/data/tools.ts"
click node_toolui "https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/components/InteractiveTools.tsx"
click node_staticpages "https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/components/StaticPages.tsx"
click node_seo "https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/components/SeoHead.tsx"
click node_i18n "https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/i18n/next-intl.tsx"
click node_siteconfig "https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/config/siteConfig.ts"
click node_translations "https://github.com/mustaphasoufisme30-lab/ads/tree/main/src/i18n"

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_app,node_prerender toneBlue
class node_articles,node_categories,node_toolsdata toneAmber
class node_toolui,node_staticpages toneMint
class node_seo,node_i18n,node_siteconfig,node_translations toneRose
class node_visitor toneIndigo
```

## Components

### Application

- [React entry](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/main.tsx): `src/main.tsx`
- [App routes and views](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/App.tsx): `src/App.tsx`
- [Static prerendering](https://github.com/mustaphasoufisme30-lab/ads/blob/main/scripts/prerender.ts): `scripts/prerender.ts`

### Editorial Content

- [Article content](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/data/articles.ts): `src/data/articles.ts`
- [Category catalog](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/data/categories.ts): `src/data/categories.ts`
- [Tool catalog](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/data/tools.ts): `src/data/tools.ts`

### Interactive Features

- [Interactive tools](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/components/InteractiveTools.tsx): `src/components/InteractiveTools.tsx`
- [Informational pages](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/components/StaticPages.tsx): `src/components/StaticPages.tsx`

### Shared Presentation

- [SEO metadata](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/components/SeoHead.tsx): `src/components/SeoHead.tsx`
- [Locale provider](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/i18n/next-intl.tsx): `src/i18n/next-intl.tsx`
- [Site configuration](https://github.com/mustaphasoufisme30-lab/ads/blob/main/src/config/siteConfig.ts): `src/config/siteConfig.ts`
- [French and Arabic messages](https://github.com/mustaphasoufisme30-lab/ads/tree/main/src/i18n): `src/i18n`

### Other components

- **Site visitor**

## Connections

- Site visitor → React entry: opens site
- React entry → Locale provider: wraps app (evidence: `src/main.tsx`)
- React entry → App routes and views: renders (evidence: `src/main.tsx`)
- App routes and views → Article content: reads content (evidence: `src/App.tsx`)
- App routes and views → Category catalog: reads catalog (evidence: `src/App.tsx`)
- App routes and views → Tool catalog: reads catalog (evidence: `src/App.tsx`)
- App routes and views → Interactive tools: renders tools (evidence: `src/App.tsx`)
- App routes and views → Informational pages: renders pages (evidence: `src/App.tsx`)
- App routes and views → SEO metadata: renders metadata (evidence: `src/App.tsx`)
- App routes and views → Locale provider: uses translations (evidence: `src/App.tsx`)
- Article content → Category catalog: uses images (evidence: `src/data/articles.ts`)
- SEO metadata → Site configuration: reads settings (evidence: `src/components/SeoHead.tsx`)
- SEO metadata → Category catalog: uses images (evidence: `src/components/SeoHead.tsx`)
- SEO metadata → Locale provider: reads locale (evidence: `src/components/SeoHead.tsx`)
- Informational pages → Site configuration: reads settings (evidence: `src/components/StaticPages.tsx`)
- Informational pages → Locale provider: uses translations (evidence: `src/components/StaticPages.tsx`)
- Locale provider → French and Arabic messages: loads messages (evidence: `src/i18n/next-intl.tsx`)
- Static prerendering → App routes and views: renders routes (evidence: `scripts/prerender.ts`)
- Static prerendering → Article content: reads content (evidence: `scripts/prerender.ts`)
- Static prerendering → Category catalog: reads catalog (evidence: `scripts/prerender.ts`)
- Static prerendering → Tool catalog: reads catalog (evidence: `scripts/prerender.ts`)
- Static prerendering → Site configuration: reads settings (evidence: `scripts/prerender.ts`)
- Static prerendering → Locale provider: uses messages (evidence: `scripts/prerender.ts`)
