# arambuuu/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/arambuuu/portfolio
- Repository: https://github.com/arambuuu/portfolio

## Overview

Arambuuu is a personal creative portfolio with a public-facing project and gallery experience, plus an owner CMS for maintaining content and receiving inquiries. Visitors browse and filter portfolio work, open project or gallery details, and can submit a contact message; the browser loads Supabase-backed content when configured and otherwise uses bundled seed data. The CMS supports authentication, project/gallery management and ImageKit uploads. The excerpts establish key browser-to-service calls, but omit some wiring and most HTML, so unsampled relationships are not asserted.

Main entry points: [`js/app.js`](https://github.com/arambuuu/portfolio/blob/main/js/app.js) (Portfolio data loading), [`index.html`](https://github.com/arambuuu/portfolio/blob/main/index.html) (Portfolio interface), [`api/imagekit-auth.js`](https://github.com/arambuuu/portfolio/blob/main/api/imagekit-auth.js) (Upload signature endpoint), [`js/config.js`](https://github.com/arambuuu/portfolio/blob/main/js/config.js) (Runtime configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio experience"]
  node_site["Portfolio interface<br/>[index.html]"]
  node_portfolio_ui["Browse and detail views<br/>[app.js]"]
  node_contact["Contact form<br/>[app.js]"]
end

subgraph group_content["Content and data"]
  node_config["Runtime configuration<br/>[config.js]"]
  node_seed["Seed portfolio data<br/>[seed-data.js]"]
  node_portfolio_data["Portfolio data loading<br/>[app.js]"]
  node_projects[("Projects and gallery<br/>[schema.sql]")]
  node_messages[("Contact messages<br/>[schema.sql]")]
end

subgraph group_cms["Owner CMS"]
  node_cms["CMS workspace<br/>[app.js]"]
  node_auth["Admin authentication<br/>[app.js]"]
  node_media_upload["Media upload flow<br/>[app.js]"]
  node_auth_signer["Upload signature endpoint<br/>[imagekit-auth.js]"]
end

subgraph group_services["External services"]
  node_supabase[("Supabase")]
  node_imagekit["ImageKit"]
end

node_visitor(("Visitor"))
node_admin(("Owner"))

node_visitor -->|"visits"| node_site
node_site -.->|"renders"| node_portfolio_ui
node_portfolio_ui -->|"loads content"| node_portfolio_data
node_portfolio_data -->|"reads settings"| node_config
node_portfolio_data -->|"requests content"| node_supabase
node_portfolio_data -.->|"falls back to"| node_seed
node_portfolio_data -.->|"reads"| node_projects
node_portfolio_ui -->|"resolves images"| node_config
node_contact -->|"submits message"| node_supabase
node_contact -.->|"writes"| node_messages
node_admin -.->|"manages content"| node_cms
node_cms -.->|"uses"| node_auth
node_cms -->|"updates records"| node_supabase
node_cms -.->|"uploads media"| node_media_upload
node_media_upload -.->|"requests signature"| node_auth_signer
node_auth_signer -->|"verifies session"| node_supabase
node_media_upload -.->|"uploads file"| node_imagekit

click node_site "https://github.com/arambuuu/portfolio/blob/main/index.html"
click node_portfolio_ui "https://github.com/arambuuu/portfolio/blob/main/js/app.js"
click node_contact "https://github.com/arambuuu/portfolio/blob/main/js/app.js"
click node_config "https://github.com/arambuuu/portfolio/blob/main/js/config.js"
click node_seed "https://github.com/arambuuu/portfolio/blob/main/js/seed-data.js"
click node_portfolio_data "https://github.com/arambuuu/portfolio/blob/main/js/app.js"
click node_projects "https://github.com/arambuuu/portfolio/blob/main/supabase/schema.sql"
click node_messages "https://github.com/arambuuu/portfolio/blob/main/supabase/schema.sql"
click node_cms "https://github.com/arambuuu/portfolio/blob/main/js/app.js"
click node_auth "https://github.com/arambuuu/portfolio/blob/main/js/app.js"
click node_media_upload "https://github.com/arambuuu/portfolio/blob/main/js/app.js"
click node_auth_signer "https://github.com/arambuuu/portfolio/blob/main/api/imagekit-auth.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_site,node_portfolio_ui,node_contact toneBlue
class node_config,node_seed,node_portfolio_data,node_projects,node_messages toneAmber
class node_cms,node_auth,node_media_upload,node_auth_signer toneMint
class node_supabase,node_imagekit toneRose
class node_visitor,node_admin toneIndigo
```

## Components

### Portfolio experience

- [Portfolio interface](https://github.com/arambuuu/portfolio/blob/main/index.html): `index.html`
- [Browse and detail views](https://github.com/arambuuu/portfolio/blob/main/js/app.js): `js/app.js`
- [Contact form](https://github.com/arambuuu/portfolio/blob/main/js/app.js): `js/app.js`

### Content and data

- [Runtime configuration](https://github.com/arambuuu/portfolio/blob/main/js/config.js): `js/config.js`
- [Seed portfolio data](https://github.com/arambuuu/portfolio/blob/main/js/seed-data.js): `js/seed-data.js`
- [Portfolio data loading](https://github.com/arambuuu/portfolio/blob/main/js/app.js): `js/app.js`
- [Projects and gallery](https://github.com/arambuuu/portfolio/blob/main/supabase/schema.sql): `supabase/schema.sql`
- [Contact messages](https://github.com/arambuuu/portfolio/blob/main/supabase/schema.sql): `supabase/schema.sql`

### Owner CMS

- [CMS workspace](https://github.com/arambuuu/portfolio/blob/main/js/app.js): `js/app.js`
- [Admin authentication](https://github.com/arambuuu/portfolio/blob/main/js/app.js): `js/app.js`
- [Media upload flow](https://github.com/arambuuu/portfolio/blob/main/js/app.js): `js/app.js`
- [Upload signature endpoint](https://github.com/arambuuu/portfolio/blob/main/api/imagekit-auth.js): `api/imagekit-auth.js`

### External services

- **Supabase**
- **ImageKit**

### Other components

- **Visitor**
- **Owner**

## Connections

- Visitor → Portfolio interface: visits
- Portfolio interface → Browse and detail views: renders
- Browse and detail views → Portfolio data loading: loads content (evidence: `js/app.js`)
- Portfolio data loading → Runtime configuration: reads settings (evidence: `js/app.js`)
- Portfolio data loading → Supabase: requests content (evidence: `js/app.js`)
- Portfolio data loading → Seed portfolio data: falls back to (evidence: `js/app.js`)
- Portfolio data loading → Projects and gallery: reads
- Browse and detail views → Runtime configuration: resolves images (evidence: `js/app.js`)
- Contact form → Supabase: submits message (evidence: `js/app.js`)
- Contact form → Contact messages: writes
- Owner → CMS workspace: manages content
- CMS workspace → Admin authentication: uses (evidence: `js/app.js`)
- CMS workspace → Supabase: updates records (evidence: `js/app.js`)
- CMS workspace → Media upload flow: uploads media (evidence: `js/app.js`)
- Media upload flow → Upload signature endpoint: requests signature
- Upload signature endpoint → Supabase: verifies session (evidence: `api/imagekit-auth.js`)
- Media upload flow → ImageKit: uploads file
