# ouko-dev/jay-ouko-website architecture

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

- Interactive diagram: https://gitdiagram.com/ouko-dev/jay-ouko-website
- Repository: https://github.com/ouko-dev/jay-ouko-website

## Overview

The README describes a Kenyan freelancing and digital-skills opportunity platform, while the available source excerpts show a Jay Ouko portfolio website and a separate AI-assistant edge function. The visible website behavior includes portfolio filtering, local chatbot replies, reviews, contact and hiring interactions; the edge function handles AI requests through OpenAI. The excerpts do not establish how the page is wired to the edge function or document the platform’s broader opportunity workflows, so those relationships are not inferred.

Main entry points: [`index.html`](https://github.com/ouko-dev/jay-ouko-website/blob/main/index.html) (Website page), [`index.ts`](https://github.com/ouko-dev/jay-ouko-website/blob/main/index.ts) (AI edge function), [`app.js`](https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js) (Navigation and display)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website experience"]
  node_website["Website page<br/>[index.html]"]
  node_navigation["Navigation and display<br/>[app.js]"]
  node_portfolio["Portfolio filtering<br/>[app.js]"]
  node_services["Services interactions<br/>[app.js]"]
end

subgraph group_engagement["Visitor interactions"]
  node_localchat["Local chatbot<br/>[app.js]"]
  node_reviews["Review submission<br/>[app.js]"]
  node_contact["Contact enquiry<br/>[app.js]"]
  node_hiring["Hiring links<br/>[app.js]"]
end

subgraph group_assistant["AI assistant"]
  node_aiassistant["AI edge function<br/>[index.ts]"]
end

node_visitor(("Visitor"))
node_openai["OpenAI Responses API"]

node_visitor -->|"visits"| node_website
node_website -->|"uses interactions"| node_navigation
node_website -->|"filters projects"| node_portfolio
node_website -->|"handles hover"| node_services
node_website -->|"opens chatbot"| node_localchat
node_website -->|"submits review"| node_reviews
node_website -->|"submits enquiry"| node_contact
node_website -->|"handles clicks"| node_hiring
node_visitor -->|"sends question"| node_aiassistant
node_aiassistant -->|"requests answer"| node_openai
node_openai -->|"returns response"| node_aiassistant

click node_website "https://github.com/ouko-dev/jay-ouko-website/blob/main/index.html"
click node_navigation "https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js"
click node_portfolio "https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js"
click node_services "https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js"
click node_localchat "https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js"
click node_reviews "https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js"
click node_contact "https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js"
click node_hiring "https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js"
click node_aiassistant "https://github.com/ouko-dev/jay-ouko-website/blob/main/index.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_website,node_navigation,node_portfolio,node_services toneBlue
class node_localchat,node_reviews,node_contact,node_hiring toneAmber
class node_aiassistant,node_openai toneMint
class node_visitor toneIndigo
```

## Components

### Website experience

- [Website page](https://github.com/ouko-dev/jay-ouko-website/blob/main/index.html): `index.html`
- [Navigation and display](https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js): `app.js`
- [Portfolio filtering](https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js): `app.js`
- [Services interactions](https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js): `app.js`

### Visitor interactions

- [Local chatbot](https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js): `app.js`
- [Review submission](https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js): `app.js`
- [Contact enquiry](https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js): `app.js`
- [Hiring links](https://github.com/ouko-dev/jay-ouko-website/blob/main/app.js): `app.js`

### AI assistant

- [AI edge function](https://github.com/ouko-dev/jay-ouko-website/blob/main/index.ts): `index.ts`

### Other components

- **Visitor**
- **OpenAI Responses API**

## Connections

- Visitor → Website page: visits (evidence: `README.md`)
- Website page → Navigation and display: uses interactions (evidence: `app.js`)
- Website page → Portfolio filtering: filters projects (evidence: `app.js`)
- Website page → Services interactions: handles hover (evidence: `app.js`)
- Website page → Local chatbot: opens chatbot (evidence: `app.js`)
- Website page → Review submission: submits review (evidence: `app.js`)
- Website page → Contact enquiry: submits enquiry (evidence: `app.js`)
- Website page → Hiring links: handles clicks (evidence: `app.js`)
- Visitor → AI edge function: sends question (evidence: `index.ts`)
- AI edge function → OpenAI Responses API: requests answer (evidence: `index.ts`)
- OpenAI Responses API → AI edge function: returns response (evidence: `index.ts`)
