# 6ems9/portfolio-space architecture

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

- Interactive diagram: https://gitdiagram.com/6ems9/portfolio-space
- Repository: https://github.com/6ems9/portfolio-space

## Overview

This is a small Next.js portfolio page whose visible experience is a Three.js animated solar-system background. The browser requests the home route; the route renders the scene, which builds and animates stars, the sun, planets, and orbits, and responds to mouse movement and resizing. The page’s portfolio content is commented out. This map reflects the supplied source excerpts; no additional runtime capabilities are documented in the README.

Main entry points: [`components/SolarSystem.tsx`](https://github.com/6ems9/portfolio-space/blob/main/components/SolarSystem.tsx) (Solar system), [`app/page.tsx`](https://github.com/6ems9/portfolio-space/blob/main/app/page.tsx) (Home route), [`app/layout.tsx`](https://github.com/6ems9/portfolio-space/blob/main/app/layout.tsx) (Root layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web app"]
  node_home["Home route<br/>[page.tsx]"]
  node_layout["Root layout<br/>[layout.tsx]"]
end

subgraph group_scene["3D scene"]
  node_solar["Solar system<br/>[SolarSystem.tsx]"]
  node_three["Three.js"]
end

node_browser(("Browser"))

node_browser -->|"requests route"| node_home
node_layout -->|"wraps route"| node_home
node_home -->|"renders"| node_solar
node_solar -->|"builds and renders"| node_three
node_browser -->|"mouse and resize events"| node_solar
node_solar -->|"appends canvas"| node_browser

click node_home "https://github.com/6ems9/portfolio-space/blob/main/app/page.tsx"
click node_layout "https://github.com/6ems9/portfolio-space/blob/main/app/layout.tsx"
click node_solar "https://github.com/6ems9/portfolio-space/blob/main/components/SolarSystem.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_home,node_layout,node_browser toneBlue
class node_solar,node_three toneAmber
```

## Components

### Web app

- [Home route](https://github.com/6ems9/portfolio-space/blob/main/app/page.tsx): `app/page.tsx`
- [Root layout](https://github.com/6ems9/portfolio-space/blob/main/app/layout.tsx): `app/layout.tsx`

### 3D scene

- [Solar system](https://github.com/6ems9/portfolio-space/blob/main/components/SolarSystem.tsx): `components/SolarSystem.tsx`
- **Three.js**

### Other components

- **Browser**

## Connections

- Browser → Home route: requests route
- Root layout → Home route: wraps route
- Home route → Solar system: renders
- Solar system → Three.js: builds and renders
- Browser → Solar system: mouse and resize events
- Solar system → Browser: appends canvas
