# monoartiam99/veilux architecture

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

- Interactive diagram: https://gitdiagram.com/monoartiam99/veilux
- Repository: https://github.com/monoartiam99/veilux

## Overview

Veilux is a React code-review web app with a marketing site surrounding its review interface. A user enters code, chooses a review type, and starts an audit; the Reviewer component calls the Gemini-backed service and displays the structured response. The app also presents feature, pricing, company, contact, and sign-in surfaces. Authentication shown in the sampled code is a local UI flow, not a demonstrated identity-provider integration. Relationships reflect the entry-point and component wiring shown in excerpts and the source index; unsampled component behavior is not inferred.

Main entry points: [`App.tsx`](https://github.com/monoartiam99/veilux/blob/main/App.tsx) (App Shell), [`components/Reviewer.tsx`](https://github.com/monoartiam99/veilux/blob/main/components/Reviewer.tsx) (Code Reviewer), [`services/geminiService.ts`](https://github.com/monoartiam99/veilux/blob/main/services/geminiService.ts) (Gemini Review Service), [`types.ts`](https://github.com/monoartiam99/veilux/blob/main/types.ts) (Review Types)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["App Shell"]
  node_entry["React Entry<br/>[index.tsx]"]
  node_app["App Shell<br/>[App.tsx]"]
  node_background["3D Background<br/>[Background3D.tsx]"]
end

subgraph group_review["Code Review"]
  node_reviewer["Code Reviewer<br/>[Reviewer.tsx]"]
  node_reviewtypes["Review Types<br/>[types.ts]"]
  node_geminiservice["Gemini Review Service<br/>[geminiService.ts]"]
end

subgraph group_marketing["Product Site"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_hero["Landing Hero<br/>[Hero.tsx]"]
  node_features["Features<br/>[Features.tsx]"]
  node_about["About Us<br/>[AboutUs.tsx]"]
  node_pricing["Pricing<br/>[Pricing.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_account["Account and Contact"]
  node_contact["Contact Form<br/>[Contact.tsx]"]
  node_authmodal["Sign-in Modal<br/>[AuthModal.tsx]"]
end

node_visitor(("Visitor"))
node_gemini["Google Gemini API"]
node_browserstorage[("Browser Local Storage")]

node_entry -->|"mounts"| node_app
node_visitor -->|"uses"| node_app
node_app -->|"renders"| node_background
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_features
node_app -->|"renders"| node_about
node_app -->|"renders"| node_pricing
node_app -->|"renders"| node_reviewer
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_authmodal
node_visitor -->|"enters code"| node_reviewer
node_reviewer -->|"requests review"| node_geminiservice
node_reviewer -->|"uses types"| node_reviewtypes
node_geminiservice -->|"uses type"| node_reviewtypes
node_geminiservice -->|"requests analysis"| node_gemini
node_reviewer -->|"reads draft"| node_browserstorage

click node_entry "https://github.com/monoartiam99/veilux/blob/main/index.tsx"
click node_app "https://github.com/monoartiam99/veilux/blob/main/App.tsx"
click node_background "https://github.com/monoartiam99/veilux/blob/main/components/Background3D.tsx"
click node_reviewer "https://github.com/monoartiam99/veilux/blob/main/components/Reviewer.tsx"
click node_reviewtypes "https://github.com/monoartiam99/veilux/blob/main/types.ts"
click node_geminiservice "https://github.com/monoartiam99/veilux/blob/main/services/geminiService.ts"
click node_navbar "https://github.com/monoartiam99/veilux/blob/main/components/Navbar.tsx"
click node_hero "https://github.com/monoartiam99/veilux/blob/main/components/Hero.tsx"
click node_features "https://github.com/monoartiam99/veilux/blob/main/components/Features.tsx"
click node_about "https://github.com/monoartiam99/veilux/blob/main/components/AboutUs.tsx"
click node_pricing "https://github.com/monoartiam99/veilux/blob/main/components/Pricing.tsx"
click node_footer "https://github.com/monoartiam99/veilux/blob/main/components/Footer.tsx"
click node_contact "https://github.com/monoartiam99/veilux/blob/main/components/Contact.tsx"
click node_authmodal "https://github.com/monoartiam99/veilux/blob/main/components/AuthModal.tsx"

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_background toneBlue
class node_reviewer,node_reviewtypes,node_geminiservice,node_browserstorage toneAmber
class node_navbar,node_hero,node_features,node_about,node_pricing,node_footer,node_gemini toneMint
class node_contact,node_authmodal toneRose
class node_visitor toneIndigo
```

## Components

### App Shell

- [React Entry](https://github.com/monoartiam99/veilux/blob/main/index.tsx): `index.tsx`
- [App Shell](https://github.com/monoartiam99/veilux/blob/main/App.tsx): `App.tsx`
- [3D Background](https://github.com/monoartiam99/veilux/blob/main/components/Background3D.tsx): `components/Background3D.tsx`

### Code Review

- [Code Reviewer](https://github.com/monoartiam99/veilux/blob/main/components/Reviewer.tsx): `components/Reviewer.tsx`
- [Review Types](https://github.com/monoartiam99/veilux/blob/main/types.ts): `types.ts`
- [Gemini Review Service](https://github.com/monoartiam99/veilux/blob/main/services/geminiService.ts): `services/geminiService.ts`

### Product Site

- [Navigation](https://github.com/monoartiam99/veilux/blob/main/components/Navbar.tsx): `components/Navbar.tsx`
- [Landing Hero](https://github.com/monoartiam99/veilux/blob/main/components/Hero.tsx): `components/Hero.tsx`
- [Features](https://github.com/monoartiam99/veilux/blob/main/components/Features.tsx): `components/Features.tsx`
- [About Us](https://github.com/monoartiam99/veilux/blob/main/components/AboutUs.tsx): `components/AboutUs.tsx`
- [Pricing](https://github.com/monoartiam99/veilux/blob/main/components/Pricing.tsx): `components/Pricing.tsx`
- [Footer](https://github.com/monoartiam99/veilux/blob/main/components/Footer.tsx): `components/Footer.tsx`

### Account and Contact

- [Contact Form](https://github.com/monoartiam99/veilux/blob/main/components/Contact.tsx): `components/Contact.tsx`
- [Sign-in Modal](https://github.com/monoartiam99/veilux/blob/main/components/AuthModal.tsx): `components/AuthModal.tsx`

### Other components

- **Visitor**
- **Google Gemini API**
- **Browser Local Storage**

## Connections

- React Entry → App Shell: mounts (evidence: `index.tsx`)
- Visitor → App Shell: uses (evidence: `App.tsx`)
- App Shell → 3D Background: renders (evidence: `App.tsx`)
- App Shell → Navigation: renders (evidence: `App.tsx`)
- App Shell → Landing Hero: renders (evidence: `App.tsx`)
- App Shell → Features: renders (evidence: `App.tsx`)
- App Shell → About Us: renders (evidence: `App.tsx`)
- App Shell → Pricing: renders (evidence: `App.tsx`)
- App Shell → Code Reviewer: renders (evidence: `App.tsx`)
- App Shell → Footer: renders (evidence: `App.tsx`)
- App Shell → Contact Form: renders (evidence: `App.tsx`)
- App Shell → Sign-in Modal: renders (evidence: `App.tsx`)
- Visitor → Code Reviewer: enters code (evidence: `components/Reviewer.tsx`)
- Code Reviewer → Gemini Review Service: requests review (evidence: `components/Reviewer.tsx`)
- Code Reviewer → Review Types: uses types (evidence: `components/Reviewer.tsx`)
- Gemini Review Service → Review Types: uses type (evidence: `services/geminiService.ts`)
- Gemini Review Service → Google Gemini API: requests analysis (evidence: `services/geminiService.ts`)
- Code Reviewer → Browser Local Storage: reads draft (evidence: `components/Reviewer.tsx`)
