# ashemag/model-x-studio architecture

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

- Interactive diagram: https://gitdiagram.com/ashemag/model-x-studio
- Repository: https://github.com/ashemag/model-x-studio

## Overview

Model X Studio is an interactive educational 3D explorer: users inspect the vehicle, select systems or individual mesh pieces, read explanations, isolate geometry, and progressively explode the model. The page coordinates selection and controls; the Three.js scene loads and renders the model, handles picking, and applies layout behavior. The README also documents platform entry points, but those are deployment concerns rather than product runtime. Evidence is limited to the README and sampled excerpts/source-index references; unsampled scene and UI behavior is not inferred beyond documented capabilities.

Main entry points: [`app/page.tsx`](https://github.com/ashemag/model-x-studio/blob/main/app/page.tsx) (Studio interface), [`app/vehicle-scene.tsx`](https://github.com/ashemag/model-x-studio/blob/main/app/vehicle-scene.tsx) (Interactive 3D scene), [`app/parts.ts`](https://github.com/ashemag/model-x-studio/blob/main/app/parts.ts) (Descriptions and details), [`app/pointer-tap.ts`](https://github.com/ashemag/model-x-studio/blob/main/app/pointer-tap.ts) (Tap recognition)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Explorer experience"]
  node_explorer["Studio interface<br/>[page.tsx]"]
  node_components["System and piece selection<br/>[page.tsx]"]
  node_inspection["Descriptions and details<br/>[parts.ts]"]
  node_manifest["Piece manifest<br/>[page.tsx]"]
end

subgraph group_scene["3D vehicle scene"]
  node_sceneview["Interactive 3D scene<br/>[vehicle-scene.tsx]"]
  node_model["Model X geometry<br/>[vehicle-scene.tsx]"]
  node_tap["Tap recognition<br/>[pointer-tap.ts]"]
  node_explosion["Exploded layout"]
end

subgraph group_domain["Vehicle knowledge"]
  node_systems["Vehicle systems<br/>[parts.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"uses"| node_explorer
node_explorer -->|"renders"| node_sceneview
node_explorer -->|"presents"| node_components
node_explorer -->|"reads details"| node_inspection
node_explorer -->|"fetches manifest"| node_manifest
node_sceneview -->|"loads model"| node_model
node_sceneview -->|"filters taps"| node_tap
node_sceneview -->|"uses layout"| node_explosion
node_components -->|"lists systems"| node_systems
node_explorer -->|"controls view"| node_sceneview
node_inspection -->|"describes"| node_systems

click node_explorer "https://github.com/ashemag/model-x-studio/blob/main/app/page.tsx"
click node_components "https://github.com/ashemag/model-x-studio/blob/main/app/page.tsx"
click node_inspection "https://github.com/ashemag/model-x-studio/blob/main/app/parts.ts"
click node_sceneview "https://github.com/ashemag/model-x-studio/blob/main/app/vehicle-scene.tsx"
click node_model "https://github.com/ashemag/model-x-studio/blob/main/app/vehicle-scene.tsx"
click node_tap "https://github.com/ashemag/model-x-studio/blob/main/app/pointer-tap.ts"
click node_explosion "https://github.com/ashemag/model-x-studio/blob/main/app/explosion-layout.ts"
click node_manifest "https://github.com/ashemag/model-x-studio/blob/main/app/page.tsx"
click node_systems "https://github.com/ashemag/model-x-studio/blob/main/app/parts.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_explorer,node_components,node_inspection,node_manifest toneBlue
class node_sceneview,node_model,node_tap,node_explosion toneAmber
class node_systems toneMint
class node_visitor toneIndigo
```

## Components

### Explorer experience

- [Studio interface](https://github.com/ashemag/model-x-studio/blob/main/app/page.tsx): `app/page.tsx`
- [System and piece selection](https://github.com/ashemag/model-x-studio/blob/main/app/page.tsx): `app/page.tsx`
- [Descriptions and details](https://github.com/ashemag/model-x-studio/blob/main/app/parts.ts): `app/parts.ts`
- [Piece manifest](https://github.com/ashemag/model-x-studio/blob/main/app/page.tsx): `app/page.tsx`

### 3D vehicle scene

- [Interactive 3D scene](https://github.com/ashemag/model-x-studio/blob/main/app/vehicle-scene.tsx): `app/vehicle-scene.tsx`
- [Model X geometry](https://github.com/ashemag/model-x-studio/blob/main/app/vehicle-scene.tsx): `app/vehicle-scene.tsx`
- [Tap recognition](https://github.com/ashemag/model-x-studio/blob/main/app/pointer-tap.ts): `app/pointer-tap.ts`
- [Exploded layout](https://github.com/ashemag/model-x-studio/blob/main/app/explosion-layout.ts): `app/explosion-layout.ts`

### Vehicle knowledge

- [Vehicle systems](https://github.com/ashemag/model-x-studio/blob/main/app/parts.ts): `app/parts.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Studio interface: uses
- Studio interface → Interactive 3D scene: renders (evidence: `app/page.tsx`)
- Studio interface → System and piece selection: presents (evidence: `app/page.tsx`)
- Studio interface → Descriptions and details: reads details (evidence: `app/page.tsx`)
- Studio interface → Piece manifest: fetches manifest (evidence: `app/page.tsx`)
- Interactive 3D scene → Model X geometry: loads model (evidence: `app/vehicle-scene.tsx`)
- Interactive 3D scene → Tap recognition: filters taps (evidence: `app/vehicle-scene.tsx`)
- Interactive 3D scene → Exploded layout: uses layout (evidence: `app/vehicle-scene.tsx`)
- System and piece selection → Vehicle systems: lists systems (evidence: `app/page.tsx`)
- Studio interface → Interactive 3D scene: controls view (evidence: `app/page.tsx`)
- Descriptions and details → Vehicle systems: describes (evidence: `app/parts.ts`)
