# old-proton-yogi/vebservice architecture

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

- Interactive diagram: https://gitdiagram.com/old-proton-yogi/vebservice
- Repository: https://github.com/old-proton-yogi/vebservice

## Overview

This is a Swedish-language digital-services storefront: visitors explore service categories and offering details, then can proceed to an order page or contact page. The React app routes those pages; the Express server exposes ping and demo endpoints. The sampled order/contact excerpts do not establish backend submission or persistence, so no such workflow is shown. The graph preserves the indexed service and information pages; unsampled pages are connected only where the app’s route declarations support it.

Main entry points: [`client/App.tsx`](https://github.com/old-proton-yogi/vebservice/blob/main/client/App.tsx) (React app), [`client/pages/services/JobbKarjar.tsx`](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/JobbKarjar.tsx) (Career services), [`client/pages/services/CVSkrivning.tsx`](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/CVSkrivning.tsx) (CV writing), [`client/pages/Order.tsx`](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Order.tsx) (Order page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Website and routing"]
  node_app["React app<br/>[App.tsx]"]
  node_home["Home<br/>[Index.tsx]"]
  node_about["About<br/>[About.tsx]"]
  node_pricing["Pricing<br/>[Pricing.tsx]"]
  node_portfolio["Portfolio<br/>[Portfolio.tsx]"]
  node_order["Order page<br/>[Order.tsx]"]
  node_contact["Contact page<br/>[Contact.tsx]"]
  node_notfound["Not found<br/>[NotFound.tsx]"]
end

subgraph group_offerings["Service offerings"]
  node_services["Services<br/>[Services.tsx]"]
  node_career["Career services<br/>[JobbKarjar.tsx]"]
  node_cv["CV writing<br/>[CVSkrivning.tsx]"]
  node_linkedin["LinkedIn optimization"]
  node_copywriting["Copywriting"]
  node_design["Design services"]
  node_ai["AI content<br/>[AIContent.tsx]"]
  node_documents["Document services<br/>[Dokument.tsx]"]
  node_smallbusiness["Small business<br/>[Smaforetag.tsx]"]
end

subgraph group_api["API runtime"]
  node_server["Express API<br/>[index.ts]"]
  node_demo["Demo handler<br/>[demo.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_services
node_app -->|"routes to"| node_career
node_app -->|"routes to"| node_copywriting
node_app -->|"routes to"| node_design
node_app -->|"routes to"| node_ai
node_app -->|"routes to"| node_documents
node_app -->|"routes to"| node_smallbusiness
node_app -->|"routes to"| node_cv
node_app -->|"routes to"| node_linkedin
node_app -->|"routes to"| node_pricing
node_app -->|"routes to"| node_portfolio
node_app -->|"routes to"| node_order
node_app -->|"routes to"| node_contact
node_app -->|"fallback route"| node_notfound
node_services -->|"links to"| node_career
node_career -->|"links to"| node_cv
node_cv -->|"links to order"| node_order
node_linkedin -->|"links to order"| node_order
node_server -->|"dispatches"| node_demo

click node_app "https://github.com/old-proton-yogi/vebservice/blob/main/client/App.tsx"
click node_home "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Index.tsx"
click node_about "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/About.tsx"
click node_services "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Services.tsx"
click node_career "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/JobbKarjar.tsx"
click node_cv "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/CVSkrivning.tsx"
click node_linkedin "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/LinkedInOptimering.tsx"
click node_copywriting "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/TextCopywriting.tsx"
click node_design "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/DesignPresentation.tsx"
click node_ai "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/AIContent.tsx"
click node_documents "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/Dokument.tsx"
click node_smallbusiness "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/Smaforetag.tsx"
click node_pricing "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Pricing.tsx"
click node_portfolio "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Portfolio.tsx"
click node_order "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Order.tsx"
click node_contact "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Contact.tsx"
click node_notfound "https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/NotFound.tsx"
click node_server "https://github.com/old-proton-yogi/vebservice/blob/main/server/index.ts"
click node_demo "https://github.com/old-proton-yogi/vebservice/blob/main/server/routes/demo.ts"

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_app,node_home,node_about,node_pricing,node_portfolio,node_order,node_contact,node_notfound toneBlue
class node_services,node_career,node_cv,node_linkedin,node_copywriting,node_design,node_ai,node_documents,node_smallbusiness toneAmber
class node_server,node_demo toneMint
class node_visitor toneIndigo
```

## Components

### Website and routing

- [React app](https://github.com/old-proton-yogi/vebservice/blob/main/client/App.tsx): `client/App.tsx`
- [Home](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Index.tsx): `client/pages/Index.tsx`
- [About](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/About.tsx): `client/pages/About.tsx`
- [Pricing](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Pricing.tsx): `client/pages/Pricing.tsx`
- [Portfolio](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Portfolio.tsx): `client/pages/Portfolio.tsx`
- [Order page](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Order.tsx): `client/pages/Order.tsx`
- [Contact page](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Contact.tsx): `client/pages/Contact.tsx`
- [Not found](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/NotFound.tsx): `client/pages/NotFound.tsx`

### Service offerings

- [Services](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/Services.tsx): `client/pages/Services.tsx`
- [Career services](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/JobbKarjar.tsx): `client/pages/services/JobbKarjar.tsx`
- [CV writing](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/CVSkrivning.tsx): `client/pages/services/CVSkrivning.tsx`
- [LinkedIn optimization](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/LinkedInOptimering.tsx): `client/pages/services/LinkedInOptimering.tsx`
- [Copywriting](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/TextCopywriting.tsx): `client/pages/services/TextCopywriting.tsx`
- [Design services](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/DesignPresentation.tsx): `client/pages/services/DesignPresentation.tsx`
- [AI content](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/AIContent.tsx): `client/pages/services/AIContent.tsx`
- [Document services](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/Dokument.tsx): `client/pages/services/Dokument.tsx`
- [Small business](https://github.com/old-proton-yogi/vebservice/blob/main/client/pages/services/Smaforetag.tsx): `client/pages/services/Smaforetag.tsx`

### API runtime

- [Express API](https://github.com/old-proton-yogi/vebservice/blob/main/server/index.ts): `server/index.ts`
- [Demo handler](https://github.com/old-proton-yogi/vebservice/blob/main/server/routes/demo.ts): `server/routes/demo.ts`

### Other components

- **Visitor**

## Connections

- Visitor → React app: opens
- React app → Home: routes to (evidence: `client/App.tsx`)
- React app → About: routes to (evidence: `client/App.tsx`)
- React app → Services: routes to (evidence: `client/App.tsx`)
- React app → Career services: routes to (evidence: `client/App.tsx`)
- React app → Copywriting: routes to (evidence: `client/App.tsx`)
- React app → Design services: routes to (evidence: `client/App.tsx`)
- React app → AI content: routes to (evidence: `client/App.tsx`)
- React app → Document services: routes to (evidence: `client/App.tsx`)
- React app → Small business: routes to (evidence: `client/App.tsx`)
- React app → CV writing: routes to (evidence: `client/App.tsx`)
- React app → LinkedIn optimization: routes to (evidence: `client/App.tsx`)
- React app → Pricing: routes to (evidence: `client/App.tsx`)
- React app → Portfolio: routes to (evidence: `client/App.tsx`)
- React app → Order page: routes to (evidence: `client/App.tsx`)
- React app → Contact page: routes to (evidence: `client/App.tsx`)
- React app → Not found: fallback route (evidence: `client/App.tsx`)
- Services → Career services: links to (evidence: `client/pages/Services.tsx`)
- Career services → CV writing: links to (evidence: `client/pages/services/JobbKarjar.tsx`)
- CV writing → Order page: links to order (evidence: `client/pages/services/CVSkrivning.tsx`)
- LinkedIn optimization → Order page: links to order (evidence: `client/pages/services/LinkedInOptimering.tsx`)
- Express API → Demo handler: dispatches (evidence: `server/index.ts`)
