# lightinn/breval architecture

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

- Interactive diagram: https://gitdiagram.com/lightinn/breval
- Repository: https://github.com/lightinn/breval

## Overview

This is a multilingual personal portfolio site with a blog, project catalog, artist profile, and interactive visual experiments. A visitor enters through the home or section routes; the home page resolves locale and dictionary content before composing its sections, while blog and project routes present listings and detail views backed by service data. The graph also preserves the separate art-experiment branch and the reusable UI layer. Evidence is limited to the supplied excerpts and SOURCE INDEX; unsampled route behavior and many experiment internals are not inferred.

Main entry points: [`src/app/(base)/page.jsx`](https://github.com/lightinn/breval/blob/main/src/app/(base)/page.jsx) (Home route), [`src/app/(base)/blog/articles/[slug]/BlogPageClient.jsx`](https://github.com/lightinn/breval/blob/main/src/app/(base)/blog/articles/%5Bslug%5D/BlogPageClient.jsx) (Article detail), [`src/app/(base)/projects/[id]/ProjectDetailClient.jsx`](https://github.com/lightinn/breval/blob/main/src/app/(base)/projects/%5Bid%5D/ProjectDetailClient.jsx) (Project detail), [`src/services/projects.services.js`](https://github.com/lightinn/breval/blob/main/src/services/projects.services.js) (Project service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio site"]
  node_home["Home route<br/>[page.jsx]"]
  node_hero["Hero section<br/>[hero.jsx]"]
  node_about["About section<br/>[about.jsx]"]
  node_journey["Journey section<br/>[journey.jsx]"]
  node_homeprojects["Featured projects<br/>[projects.jsx]"]
  node_artist["Artist profile<br/>[page.jsx]"]
  node_experiments["Art experiments"]
end

subgraph group_publishing["Blog publishing"]
  node_blogroute["Blog route<br/>[page.jsx]"]
  node_blogservice["Blog API service<br/>[blog.services.js]"]
  node_bloglist["Blog listing<br/>[BlogClient.jsx]"]
  node_blogdetail["Article detail<br/>[BlogPageClient.jsx]"]
  node_blogdetails["Article details<br/>[BlogDetails.js]"]
  node_mdx["MDX renderer<br/>[RenderMdx.js]"]
end

subgraph group_projects["Project catalog"]
  node_projectroutes["Project routes"]
  node_projectservice["Project service"]
  node_projectdetail["Project detail"]
end

subgraph group_shared["Shared runtime"]
  node_locale["Locale resolver<br/>[get-locale.js]"]
  node_dictionary["Dictionary loader<br/>[get-dictionary.js]"]
  node_dataurl["Placeholder images"]
  node_imagefallback["Image fallback"]
  node_ui["UI primitives"]
  node_utils["Class utilities<br/>[utils.js]"]
end

node_visitor(("Visitor"))
node_cms{{"Strapi API"}}
node_request{{"HTTP request"}}

node_visitor -->|"opens"| node_home
node_home -->|"resolves locale"| node_locale
node_home -->|"loads translations"| node_dictionary
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_journey
node_home -->|"renders"| node_homeprojects
node_visitor -->|"opens"| node_blogroute
node_blogroute -->|"loads posts"| node_blogservice
node_blogroute -->|"renders"| node_bloglist
node_bloglist -->|"links articles"| node_blogdetail
node_visitor -->|"opens article"| node_blogdetail
node_blogdetail -->|"renders details"| node_blogdetails
node_blogdetail -->|"renders content"| node_mdx
node_blogdetails -->|"updates view count"| node_blogdetail
node_visitor -->|"opens"| node_projectroutes
node_projectroutes -.->|"loads project data"| node_projectservice
node_projectservice -->|"resolves locale"| node_locale
node_projectservice -->|"fetches projects"| node_cms
node_visitor -->|"opens project"| node_projectdetail
node_projectdetail -->|"creates image placeholder"| node_dataurl
node_projectdetail -->|"renders images"| node_imagefallback
node_homeprojects -->|"loads featured data"| node_projectservice
node_request -->|"provides headers"| node_locale
node_artist -->|"renders images"| node_imagefallback
node_bloglist -->|"uses primitives"| node_ui
node_blogdetail -->|"uses primitives"| node_ui
node_projectdetail -->|"uses primitives"| node_ui
node_ui -->|"merges classes"| node_utils

click node_home "https://github.com/lightinn/breval/blob/main/src/app/(base)/page.jsx"
click node_hero "https://github.com/lightinn/breval/blob/main/src/components/Home/hero.jsx"
click node_about "https://github.com/lightinn/breval/blob/main/src/components/Home/about.jsx"
click node_journey "https://github.com/lightinn/breval/blob/main/src/components/Home/journey.jsx"
click node_homeprojects "https://github.com/lightinn/breval/blob/main/src/components/Home/projects.jsx"
click node_artist "https://github.com/lightinn/breval/blob/main/src/app/(base)/artist/page.jsx"
click node_experiments "https://github.com/lightinn/breval/tree/main/src/app/(art)/experiment"
click node_blogroute "https://github.com/lightinn/breval/blob/main/src/app/(base)/blog/page.jsx"
click node_blogservice "https://github.com/lightinn/breval/blob/main/src/services/blog.services.js"
click node_bloglist "https://github.com/lightinn/breval/blob/main/src/app/(base)/blog/BlogClient.jsx"
click node_blogdetail "https://github.com/lightinn/breval/blob/main/src/app/(base)/blog/articles/%5Bslug%5D/BlogPageClient.jsx"
click node_blogdetails "https://github.com/lightinn/breval/blob/main/src/components/Blog/BlogDetails.js"
click node_mdx "https://github.com/lightinn/breval/blob/main/src/components/Blog/RenderMdx.js"
click node_projectroutes "https://github.com/lightinn/breval/tree/main/src/app/(base)/projects"
click node_projectservice "https://github.com/lightinn/breval/blob/main/src/services/projects.services.js"
click node_projectdetail "https://github.com/lightinn/breval/blob/main/src/app/(base)/projects/%5Bid%5D/ProjectDetailClient.jsx"
click node_locale "https://github.com/lightinn/breval/blob/main/src/lib/get-locale.js"
click node_dictionary "https://github.com/lightinn/breval/blob/main/src/lib/get-dictionary.js"
click node_dataurl "https://github.com/lightinn/breval/blob/main/src/services/dataurl.services.js"
click node_imagefallback "https://github.com/lightinn/breval/blob/main/src/components/Global/ImageWithFallback.js"
click node_ui "https://github.com/lightinn/breval/tree/main/src/components/ui"
click node_utils "https://github.com/lightinn/breval/blob/main/src/lib/utils.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_hero,node_about,node_journey,node_homeprojects,node_artist,node_experiments toneBlue
class node_blogroute,node_blogservice,node_bloglist,node_blogdetail,node_blogdetails,node_mdx toneAmber
class node_projectroutes,node_projectservice,node_projectdetail,node_cms,node_request toneMint
class node_locale,node_dictionary,node_dataurl,node_imagefallback,node_ui,node_utils toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio site

- [Home route](https://github.com/lightinn/breval/blob/main/src/app/(base)/page.jsx): `src/app/(base)/page.jsx`
- [Hero section](https://github.com/lightinn/breval/blob/main/src/components/Home/hero.jsx): `src/components/Home/hero.jsx`
- [About section](https://github.com/lightinn/breval/blob/main/src/components/Home/about.jsx): `src/components/Home/about.jsx`
- [Journey section](https://github.com/lightinn/breval/blob/main/src/components/Home/journey.jsx): `src/components/Home/journey.jsx`
- [Featured projects](https://github.com/lightinn/breval/blob/main/src/components/Home/projects.jsx): `src/components/Home/projects.jsx`
- [Artist profile](https://github.com/lightinn/breval/blob/main/src/app/(base)/artist/page.jsx): `src/app/(base)/artist/page.jsx`
- [Art experiments](https://github.com/lightinn/breval/tree/main/src/app/(art)/experiment): `src/app/(art)/experiment`

### Blog publishing

- [Blog route](https://github.com/lightinn/breval/blob/main/src/app/(base)/blog/page.jsx): `src/app/(base)/blog/page.jsx`
- [Blog API service](https://github.com/lightinn/breval/blob/main/src/services/blog.services.js): `src/services/blog.services.js`
- [Blog listing](https://github.com/lightinn/breval/blob/main/src/app/(base)/blog/BlogClient.jsx): `src/app/(base)/blog/BlogClient.jsx`
- [Article detail](https://github.com/lightinn/breval/blob/main/src/app/(base)/blog/articles/%5Bslug%5D/BlogPageClient.jsx): `src/app/(base)/blog/articles/[slug]/BlogPageClient.jsx`
- [Article details](https://github.com/lightinn/breval/blob/main/src/components/Blog/BlogDetails.js): `src/components/Blog/BlogDetails.js`
- [MDX renderer](https://github.com/lightinn/breval/blob/main/src/components/Blog/RenderMdx.js): `src/components/Blog/RenderMdx.js`

### Project catalog

- [Project routes](https://github.com/lightinn/breval/tree/main/src/app/(base)/projects): `src/app/(base)/projects`
- [Project service](https://github.com/lightinn/breval/blob/main/src/services/projects.services.js): `src/services/projects.services.js`
- [Project detail](https://github.com/lightinn/breval/blob/main/src/app/(base)/projects/%5Bid%5D/ProjectDetailClient.jsx): `src/app/(base)/projects/[id]/ProjectDetailClient.jsx`

### Shared runtime

- [Locale resolver](https://github.com/lightinn/breval/blob/main/src/lib/get-locale.js): `src/lib/get-locale.js`
- [Dictionary loader](https://github.com/lightinn/breval/blob/main/src/lib/get-dictionary.js): `src/lib/get-dictionary.js`
- [Placeholder images](https://github.com/lightinn/breval/blob/main/src/services/dataurl.services.js): `src/services/dataurl.services.js`
- [Image fallback](https://github.com/lightinn/breval/blob/main/src/components/Global/ImageWithFallback.js): `src/components/Global/ImageWithFallback.js`
- [UI primitives](https://github.com/lightinn/breval/tree/main/src/components/ui): `src/components/ui`
- [Class utilities](https://github.com/lightinn/breval/blob/main/src/lib/utils.js): `src/lib/utils.js`

### Other components

- **Visitor**
- **Strapi API**
- **HTTP request**

## Connections

- Visitor → Home route: opens
- Home route → Locale resolver: resolves locale (evidence: `src/app/(base)/page.jsx`)
- Home route → Dictionary loader: loads translations (evidence: `src/app/(base)/page.jsx`)
- Home route → Hero section: renders (evidence: `src/app/(base)/page.jsx`)
- Home route → About section: renders (evidence: `src/app/(base)/page.jsx`)
- Home route → Journey section: renders (evidence: `src/app/(base)/page.jsx`)
- Home route → Featured projects: renders (evidence: `src/app/(base)/page.jsx`)
- Visitor → Blog route: opens
- Blog route → Blog API service: loads posts (evidence: `src/app/(base)/blog/page.jsx`)
- Blog route → Blog listing: renders (evidence: `src/app/(base)/blog/page.jsx`)
- Blog listing → Article detail: links articles (evidence: `src/app/(base)/blog/BlogClient.jsx`)
- Visitor → Article detail: opens article
- Article detail → Article details: renders details (evidence: `src/app/(base)/blog/articles/[slug]/BlogPageClient.jsx`)
- Article detail → MDX renderer: renders content (evidence: `src/app/(base)/blog/articles/[slug]/BlogPageClient.jsx`)
- Article details → Article detail: updates view count (evidence: `src/components/Blog/BlogDetails.js`)
- Visitor → Project routes: opens
- Project routes → Project service: loads project data
- Project service → Locale resolver: resolves locale (evidence: `src/services/projects.services.js`)
- Project service → Strapi API: fetches projects (evidence: `src/services/projects.services.js`)
- Visitor → Project detail: opens project
- Project detail → Placeholder images: creates image placeholder (evidence: `src/app/(base)/projects/[id]/ProjectDetailClient.jsx`)
- Project detail → Image fallback: renders images (evidence: `src/app/(base)/projects/[id]/ProjectDetailClient.jsx`)
- Featured projects → Project service: loads featured data (evidence: `src/components/Home/projects.jsx`)
- HTTP request → Locale resolver: provides headers (evidence: `src/lib/get-locale.js`)
- Artist profile → Image fallback: renders images (evidence: `src/app/(base)/artist/page.jsx`)
- Blog listing → UI primitives: uses primitives (evidence: `src/app/(base)/blog/BlogClient.jsx`)
- Article detail → UI primitives: uses primitives (evidence: `src/app/(base)/blog/articles/[slug]/BlogPageClient.jsx`)
- Project detail → UI primitives: uses primitives (evidence: `src/app/(base)/projects/[id]/ProjectDetailClient.jsx`)
- UI primitives → Class utilities: merges classes (evidence: `src/components/ui/button.tsx`)
